summaryrefslogtreecommitdiffstats
path: root/mysql-test/valgrind.supp
blob: 9127bb1f962f4b43e4f4e35c63fafd647864c2ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
# Copyright (c) 2005, 2015, Oracle and/or its affiliates.
# Copyright (c) 2008, 2022, MariaDB
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1335  USA

#
# Suppress some common (not fatal) errors in system libraries found by valgrind
#

{
   pthead_exit memory loss 1
   Memcheck:Leak
   fun:malloc
   fun:_dl_new_object
   fun:_dl_map_object_from_fd
}

{
   pthread_exit memory loss 2
   Memcheck:Leak
   fun:malloc
   fun:_dl_map_object
   fun:dl_open_worker
}

{
   pthread_exit memory loss 3
   Memcheck:Leak
   fun:malloc
   fun:_dl_map_object_deps
   fun:dl_open_worker
}

{
   pthread_exit memory loss 4
   Memcheck:Leak
   fun:calloc
   fun:_dl_check_map_versions
   fun:dl_open_worker
}

{
   pthread_exit memory loss 5
   Memcheck:Leak
   fun:calloc
   fun:_dl_new_object
   fun:_dl_map_object_from_fd
}

{
   pthread pthread_key_create
   Memcheck:Leak
   fun:malloc
   fun:*
   fun:*
   fun:pthread_key_create
   fun:my_thread_global_init
}

{
   pthread strstr uninit
   Memcheck:Cond
   fun:strstr
   obj:/lib/tls/libpthread.so.*
   obj:/lib/tls/libpthread.so.*
   fun:call_init
   fun:_dl_init
   obj:/lib/ld-*.so
}

{
   pthread strstr uninit
   Memcheck:Cond
   fun:strstr
   obj:/lib/tls/libpthread.so.*
   obj:/lib/tls/libpthread.so.*
   fun:call_init
   fun:_dl_init
   obj:/lib/ld-*.so
}

{  
   somewhere in ld.so, when loading mysqld
   Memcheck:Cond
   ...
   fun:dl_main
   fun:_dl_sysdep_start
   fun:_dl_start
}


#
# Warning from my_thread_init becasue mysqld dies before kill thread exists
#

{
   my_thread_init kill thread memory loss second
   Memcheck:Leak
   fun:calloc
   fun:my_thread_init
   fun:kill_server_thread
}


# Red Hat AS 4 32 bit
{
   dl_relocate_object
   Memcheck:Cond
   fun:_dl_relocate_object
}

#
# Leaks reported in _dl_* internal functions on Linux amd64 / glibc2.3.2.
#

{
   _dl_start invalid write8
   Memcheck:Addr8
   fun:_dl_start
}

{
   _dl_start invalid write4
   Memcheck:Addr4
   fun:_dl_start
}

{
   _dl_start/_dl_setup_hash invalid read8
   Memcheck:Addr8
   fun:_dl_setup_hash
   fun:_dl_start
}

{
   _dl_sysdep_start invalid write8
   Memcheck:Addr8
   fun:_dl_sysdep_start
}

{
   _dl_init invalid write8
   Memcheck:Addr8
   fun:_dl_init
}

{
   _dl_init invalid write4
   Memcheck:Addr4
   fun:_dl_init
}

{
   _dl_init/_dl_init invalid read8
   Memcheck:Addr8
   fun:_dl_debug_initialize
   fun:_dl_init
}

{
   _dl_init/_dl_debug_state invalid read8
   Memcheck:Addr8
   fun:_dl_debug_state
   fun:_dl_init
}

{
   init invalid write8
   Memcheck:Addr8
   fun:init
}

{
   fixup invalid write8
   Memcheck:Addr8
   fun:fixup
}

{
   fixup/_dl_lookup_versioned_symbol invalid read8
   Memcheck:Addr8
   fun:_dl_lookup_versioned_symbol
   fun:fixup
}

{
   _dl_runtime_resolve invalid read8
   Memcheck:Addr8
   fun:_dl_runtime_resolve
}

{
   __libc_start_main invalid write8
   Memcheck:Addr8
   fun:__libc_start_main
}

{
   __libc_start_main/__sigjmp_save invalid write4
   Memcheck:Addr4
   fun:__sigjmp_save
   fun:__libc_start_main
}

#
# dl_init reports leaked memory in memalign on OpenSuse 12.3

{
   memory "loss" from _dl_init
   Memcheck:Leak
   fun:memalign
   ...
   fun:call_init*
   fun:_dl_init
}

# This one is on OpenSuse 10.3 with gcc 5.4
{
   memory "loss" from _dl_init 2
   Memcheck:Leak
   fun:malloc
   ...
   fun:call_init*
   fun:_dl_init
}

#
#  dlclose can allocate memory for error message, the memory will be
#  freed by dlerror or other dl* function.
#
{
   memory "loss" from dlclose error messages
   Memcheck:Leak
   fun:*alloc
   ...
   fun:dlclose
}


#
#  dlsym can allocate memory for error message, the memory will be
#  freed by dlerror or other dl* function.
#
{
   memory "loss" from dlclose error messages
   Memcheck:Leak
   fun:*alloc
   ...
   fun:dlsym
}


{
   dlopen / ptread_cancel_init memory loss on Suse Linux 10.3 32/64 bit ver 1
   Memcheck:Leak
   fun:*alloc
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
   fun:_Unwind_ForcedUnwind
}

{
   dlopen / ptread_cancel_init memory loss on Suse Linux 10.3 32/64 bit ver 2
   Memcheck:Leak
   fun:*alloc
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
   fun:_Unwind_ForcedUnwind
}

{
   dlopen / ptread_cancel_init memory loss on Suse Linux 10.3 32/64 bit
   Memcheck:Leak
   fun:*alloc
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
   fun:_Unwind_ForcedUnwind
}


#
# Reading wrong addresses on SuSe Linux 10.3 32 bit
#

{
   Reading wrong data in libc_dlopen
   Memcheck:Addr4
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   obj:/lib*/ld-*.so
   obj:/lib*/libc-*.so
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
}

#
# These seem to be libc threading stuff, not related to MySQL code (allocations
# during pthread_exit()). Googling shows other projects also using these
# suppressions.
#
# Note that these all stem from pthread_exit() deeper in the call stack, but
# Valgrind only allows the top four calls in the suppressions.
#

{
   libc pthread_exit 1
   Memcheck:Leak
   fun:malloc
   fun:_dl_new_object
   fun:_dl_map_object_from_fd
   fun:_dl_map_object
}

{
   libc pthread_exit 2
   Memcheck:Leak
   fun:malloc
   fun:_dl_map_object
   fun:dl_open_worker
   fun:_dl_catch_error
}

{
   libc pthread_exit 3
   Memcheck:Leak
   fun:malloc
   fun:_dl_map_object_deps
   fun:dl_open_worker
   fun:_dl_catch_error
}

{
   libc pthread_exit 4
   Memcheck:Leak
   fun:calloc
   fun:_dl_check_map_versions
   fun:dl_open_worker
   fun:_dl_catch_error
}

{
   libc pthread_exit 5
   Memcheck:Leak
   fun:calloc
   fun:_dl_new_object
   fun:_dl_map_object_from_fd
   fun:_dl_map_object
}

{
   libc pthread_exit 6
   Memcheck:Leak
   fun:malloc
   fun:_dl_map_object
   fun:openaux
   fun:_dl_catch_error 
}

{
   libc pthread_exit 7
   Memcheck:Leak
   fun:malloc
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
}

{
   libc pthread_exit 8
   Memcheck:Leak
   fun:malloc
   fun:local_strdup
   fun:_dl_map_object
   fun:dl_open_worker
}

{
   libc pthread_exit 9
   Memcheck:Leak
   fun:malloc
   fun:local_strdup
   fun:_dl_map_object
   fun:openaux
   fun:_dl_catch_error 
}

{
   libc do_lookup_x
   Memcheck:Leak
   fun:calloc
   fun:do_lookup_x
   fun:_dl_lookup_symbol_x
   ...
   fun:_dl_catch_error 
}

#
# This is seen internally in the system libraries on 64-bit RHAS3.
#

{
   __lll_mutex_unlock_wake uninitialized
   Memcheck:Param
   futex(utime)
   fun:__lll_mutex_unlock_wake
}

#
# Warning when printing stack trace (to suppress some not needed warnings)
#

{
   vprintf on stacktrace
   Memcheck:Cond
   fun:vfprintf
   fun:uffered_vfprintf
   fun:vfprintf
   fun:fprintf
   fun:print_stacktrace
}

#
# Safe warnings, that may happen because of thread scheduling
#

{
   dbug initialization by kill_server
   Memcheck:Leak
   fun:malloc
   fun:DbugMalloc
   fun:code_state
   fun:_db_enter_
   fun:kill_server
}

{
   Aria checkpoint background thread not dying fast enough
   Memcheck:Leak
   fun:calloc
   fun:my_thread_init
   fun:ma_checkpoint_background
}

#
# Warning caused by small memory leak in threaded dlopen
#

{
   dlopen threaded memory leak
   Memcheck:Leak
   fun:calloc
   obj:*/libdl-*.so
   fun:dlopen*
}

#
# Warning caused by small memory leak in _dl_init
#

{
   dl_init memory leak
   Memcheck:Leak
   fun:malloc
   obj:*/libstdc++.so*
   fun:call_init.part*
   fun:_dl_init
}

#
# In glibc (checked version 2.7), inet_ntoa allocates an 18-byte
# per-thread static buffer for the return value. That memory is freed
# at thread exit, however if called from the main thread, Valgrind
# does not see the free (test main.no-threads).
#
# Since inet_ntoa() does not allocate memory dynamically per-call, this
# suppression is safe.
#

{
   inet_ntoa thread local storage
   Memcheck:Leak
   fun:malloc
   fun:inet_ntoa
}


#
# Problem with glibc and gethostbyaddr_r
#

{
   libc_res_nsend: Conditional jump or move depends on uninitialised value
   Memcheck:Cond
   fun: __libc_res_nsend
   fun: __libc_res_nquery
   obj: /lib64/libnss_dns-*so)
   obj: /lib64/libnss_dns-*so)
   fun: gethostbyaddr_r
}

{
   memory "leak" in backtrace() of glibc 2.9 (not present in 2.13)
   Memcheck:Leak
   fun:malloc
   ...
   fun:pthread_once
   fun:backtrace
}

{
   memory leak in mysqld_exit
   Memcheck:Leak
   fun:malloc
   fun:_dl_close_worker
   fun:_dl_close
}

#
# Bug in Glibc 2.9: http://sourceware.org/bugzilla/show_bug.cgi?id=10391
# Fixed in latest Glibc, but suppressed here for running tests on hosts
# with older Glibc version.
#
{
   Glibc bug in __libc_res_nsend
   Memcheck:Cond
   fun:__libc_res_nsend
   fun:__libc_res_nquery
}

{
   buf_buddy_relocate peeking (space,page) in potentially free blocks
   Memcheck:Addr1
   fun:buf_buddy_relocate
}

{
   Bug 59875 Valgrind warning in buf0buddy.c
   Memcheck:Addr1
   fun:mach_read_from_4
   fun:buf_buddy_relocate
   fun:buf_buddy_free_low
   fun:buf_buddy_free
}

# Note the wildcard in the (mangled) function signatures of
# write_keys() and find_all_keys().
# They both return ha_rows, which is platform dependent.

{
   OpenSSL still reachable.
   Memcheck:Leak
   fun:*alloc
   fun:CRYPTO_malloc
   fun:sk_new
   obj:*libssl*
   fun:SSL_COMP_get_compression_methods
   fun:SSL_library_init
}

{
   OpenSSL still reachable.
   Memcheck:Leak
   fun:*alloc
   fun:CRYPTO_malloc
   fun:sk_new
   fun:SSL_COMP_get_compression_methods
   fun:SSL_library_init
}

{
   OpenSSL still reachable.
   Memcheck:Leak
   fun:*alloc
   fun:CRYPTO_malloc
   obj:*libssl*
   fun:SSL_COMP_get_compression_methods
   fun:SSL_library_init
}

{
   OpenSSL still reachable.
   Memcheck:Leak
   fun:*alloc
   fun:CRYPTO_malloc
   fun:sk_new
   fun:SSL_COMP_get_compression_methods
   fun:SSL_library_init
}

{
   libcrypto 2.2.1 leak
   Memcheck:Leak
   fun:malloc
   ...
   fun:ERR_get_state
}

{
  Problem with udf and libresolve
  Memcheck:Cond
   obj:*/libresolv*.so
   fun:__libc_res_nquery
   fun:_nss_dns_gethostbyaddr2_r
   fun:_nss_dns_gethostbyaddr_r
   fun:gethostbyaddr_r
}

#
# Detached threads may not complete deiniitialization by the time shutdown
# thread calls exit. This is unfortunate property of detached threads, which
# we currently can only ignore. Unfortunately there is no way to distinguish
# between false positives generated by detached threads and real memory leaks
# generated by not joined joinable threads. So we hide both cases.
#
# To avoid enumeration of the whole variety of possible traces we ignore all
# "possibly lost" blocks allocated by pthread_create (and it's callees).
#
{
   Detached threads memory loss
   Memcheck:Leak
   match-leak-kinds:possible
   ...
   fun:pthread_create*
}

{
   Memory Leak in loader and valgrind malloc
   Memcheck:Leak
   match-leak-kinds:reachable
   obj:*/vgpreload_memcheck*.so
   ...
   obj:*/ld-*.so
   ...
}

{
  ConnectSE: unixODBC SQLAllocEnv leaves some "still reachable" pointers
  Memcheck:Leak
   fun:malloc
   fun:strdup
   ...
   obj:*/libodbc.so*
   fun:_ZN7ODBConn10GetDriversEP7_qryres
}

{
  ConnectSE: unixODBC SQLAllocEnv leaves some "still reachable" pointers
  Memcheck:Leak
   fun:calloc
   ...
   obj:*/libodbc.so*
   fun:_ZN7ODBConn10GetDriversEP7_qryres
}

{
  ConnectSE: unixODBC SQLAllocEnv leavs some "still reachable" pointers
  Memcheck:Leak
  fun:malloc
  fun:strdup
  ...
  obj:*/libodbc.so*
  fun:_ZN7ODBConn14GetDataSourcesEP7_qryres
}


{
  ConnectSE: unixODBC SQLAllocEnv leavs some "still reachable" pointers
  Memcheck:Leak
  fun:calloc
  ...
  obj:*/libodbc.so*
  fun:_ZN7ODBConn14GetDataSourcesEP7_qryres
}


{
  ConnectSE: unixODBC SQLDriverConnect leaves some "still reachable" pointers
  Memcheck:Leak
   fun:malloc
   fun:strdup
   ...
   obj:*/libodbc.so*
   fun:SQLDriverConnect
   fun:_ZN7ODBConn7ConnectEj
   fun:_ZN7ODBConn4OpenEPcj
   fun:_Z11ODBCColumnsP7_globalPcS1_S1_b
   fun:_ZL26connect_assisted_discoveryP10handlertonP3THDP11TABLE_SHAREP14HA_CREATE_INFO
}

{
  ConnectSE: unixODBC SQLDriverConnect leaves some "still reachable" pointers
  Memcheck:Leak
   fun:calloc
   ...
   obj:*/libodbc.so*
   fun:SQLDriverConnect
   fun:_ZN7ODBConn7ConnectEj
   fun:_ZN7ODBConn4OpenEPcj
   fun:_Z11ODBCColumnsP7_globalPcS1_S1_b
   fun:_ZL26connect_assisted_discoveryP10handlertonP3THDP11TABLE_SHAREP14HA_CREATE_INFO
}

{
  ConnectSE: unixODBC SQLDriverConnect leaves some "still reachable" pointers
  Memcheck:Leak
   fun:malloc
   ...
   obj:*/libodbc.so*
   fun:SQLDriverConnect
   fun:_ZN7ODBConn7ConnectEj
   fun:_ZN7ODBConn4OpenEPcj
   fun:_Z11ODBCColumnsP7_globalPcS1_S1_b
   fun:_ZL26connect_assisted_discoveryP10handlertonP3THDP11TABLE_SHAREP14HA_CREATE_INFO
}

{
  ConnectSE: unixODBC dlopen leaves some "still reachable"
  Memcheck:Leak
  fun:malloc
  fun:expand_dynamic_string_token
  ...
  obj:*/libltdl.so*
  ...
  obj:*/libodbc.so*
}

{
  Galera uses gcc __thread variables
  Memcheck:Leak
  fun:memalign
  fun:__tls_get_addr
}

{
  Mroonga: dlopen leaves some "still reachable"
  Memcheck:Leak
  fun:malloc
  ...
  fun:dl_open_worker
  fun:_dl_catch_error
  fun:_dl_open
  fun:dlopen_doit
  fun:_dl_catch_error
  fun:_dlerror_run
  fun:dlopen@@GLIBC_2.2.5
}

# 
# MDEV-11061: OpenSSL 0.9.8 problems
#

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   obj:*/libz.so*
   ...
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   obj:*/libz.so*
   ...
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   obj:*/libssl.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   obj:*/libssl.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   fun:memcpy
   obj:*/libcrypto.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   fun:memcpy
   obj:*/libcrypto.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   fun:is_overlap
   fun:memcpy
   obj:*/libcrypto.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   fun:memset
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   fun:memset
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Param
   write(buf)
   obj:*/libpthread-2.9.so*
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
  vasprintf in OpenSuse 12.3
  Memcheck:Leak
  fun:malloc
  fun:vasprintf
  fun:asprintf
  fun:dlerror
}

{
   GitHub codership/galera#330
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:CRYPTO_malloc
   fun:sk_new
   obj:/usr/lib64/libssl.so.1.0.1e
   fun:SSL_COMP_get_compression_methods
   fun:SSL_library_init
   fun:_ZN4asio3ssl6detail12openssl_initILb1EE7do_initC1Ev
   fun:_ZN4asio3ssl6detail12openssl_initILb1EE7do_init8instanceEv
   fun:_ZN4asio3ssl6detail12openssl_initILb1EEC1Ev
   fun:_Z41__static_initialization_and_destruction_0ii.constprop.120
   fun:call_init.part.0
   fun:_dl_init
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:dlopen_doit
}
{
   GitHub codership/galera#330
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:CRYPTO_malloc
   fun:sk_new
   obj:/usr/lib64/libssl.so.1.0.1e
   fun:SSL_COMP_get_compression_methods
   fun:SSL_library_init
   fun:_ZN4asio3ssl6detail12openssl_initILb1EE7do_initC1Ev
   fun:_ZN4asio3ssl6detail12openssl_initILb1EE7do_init8instanceEv
   fun:_ZN4asio3ssl6detail12openssl_initILb1EEC1Ev
   fun:_Z41__static_initialization_and_destruction_0ii.constprop.120
   fun:call_init.part.0
   fun:_dl_init
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:dlopen_doit
}

{
   GitHub codership/mysql-wsrep#175
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:calloc
   fun:do_lookup_x
   fun:_dl_lookup_symbol_x
   fun:_dl_relocate_object
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:dlopen_doit
   fun:_dl_catch_error
   fun:_dlerror_run
   fun:dlopen@@GLIBC_2.2.5
   fun:wsrep_load
   fun:_Z10wsrep_initv
   fun:_Z18wsrep_init_startupb
   fun:_ZL22init_server_componentsv
   fun:_Z11mysqld_mainiPPc
}

{
   galera/mysql-wsrep#147
   Memcheck:Leak
   match-leak-kinds: possible
   fun:malloc
   fun:_ZNK6galera13ReplicatorSMM9stats_getEv
   fun:_ZL28export_wsrep_status_to_mysqlP3THD
   fun:_Z17wsrep_show_statusP3THDP17st_mysql_show_varPc
   fun:_ZL17show_status_arrayP3THDPKcP17st_mysql_show_var13enum_var_typeP17system_status_varS2_P5TABLEbP4Item
   fun:_Z11fill_statusP3THDP10TABLE_LISTP4Item
   fun:_ZL13do_fill_tableP3THDP10TABLE_LISTP13st_join_table
   fun:_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state
   fun:_ZN4JOIN14prepare_resultEPP4ListI4ItemE
   fun:_ZN4JOIN4execEv
   fun:_ZL20mysql_execute_selectP3THDP13st_select_lexb
   fun:_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_P10SQL_I_ListI8st_orderESB_S7_yP13select_resultP18st_select_lex_unitP13st_select_lex
   fun:_Z13handle_selectP3THDP13select_resultm
   fun:_ZL21execute_sqlcom_selectP3THDP10TABLE_LIST
   fun:_Z21mysql_execute_commandP3THD
   fun:_Z11mysql_parseP3THDPcjP12Parser_state
}

{
   codership/mysql-wsrep/issues#176
   Memcheck:Leak
   fun:_Z16wsrep_set_paramsRN6galera10ReplicatorEPKc
}

{
   codership/mysql-wsrep/issues#176
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:DbugMalloc
   fun:ListParse
   fun:_gu_db_push_
   fun:_Z16wsrep_set_paramsRN6galera10ReplicatorEPKc
   fun:galera_parameters_set
   fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
   fun:_ZN7sys_var6updateEP3THDP7set_var
   fun:_ZN7set_var6updateEP3THD
   fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
   fun:_Z21mysql_execute_commandP3THD
   fun:_Z11mysql_parseP3THDPcjP12Parser_state
   fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
   fun:_Z16dispatch_command19enum_server_commandP3THDPcj
   fun:_Z10do_commandP3THD
   fun:_Z24do_handle_one_connectionP3THD
}

{
   codership/mysql-wsrep/issues#176
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:state_map_insert
   fun:code_state
   fun:_gu_db_push_
   fun:_Z16wsrep_set_paramsRN6galera10ReplicatorEPKc
   fun:galera_parameters_set
   fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
   fun:_ZN7sys_var6updateEP3THDP7set_var
   fun:_ZN7set_var6updateEP3THD
   fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
   fun:_Z21mysql_execute_commandP3THD
   fun:_Z11mysql_parseP3THDPcjP12Parser_state
   fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
   fun:_Z16dispatch_command19enum_server_commandP3THDPcj
   fun:_Z10do_commandP3THD
   fun:_Z24do_handle_one_connectionP3THD
}

{
   codership/mysql-wsrep/issues#176
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:DbugMalloc
   fun:StrDup
   fun:ListParse
   fun:_gu_db_push_
   fun:_Z16wsrep_set_paramsRN6galera10ReplicatorEPKc
   fun:galera_parameters_set
   fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
   fun:_ZN7sys_var6updateEP3THDP7set_var
   fun:_ZN7set_var6updateEP3THD
   fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
   fun:_Z21mysql_execute_commandP3THD
   fun:_Z11mysql_parseP3THDPcjP12Parser_state
   fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
   fun:_Z16dispatch_command19enum_server_commandP3THDPcj
   fun:_Z10do_commandP3THD
}

{
   codership/mysql-wsrep/issues#176
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:code_state
   fun:_gu_db_push_
   fun:_Z16wsrep_set_paramsRN6galera10ReplicatorEPKc
   fun:galera_parameters_set
   fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
   fun:_ZN7sys_var6updateEP3THDP7set_var
   fun:_ZN7set_var6updateEP3THD
   fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
   fun:_Z21mysql_execute_commandP3THD
   fun:_Z11mysql_parseP3THDPcjP12Parser_state
   fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
   fun:_Z16dispatch_command19enum_server_commandP3THDPcj
   fun:_Z10do_commandP3THD
   fun:_Z24do_handle_one_connectionP3THD
   fun:handle_one_connection
}

{
   codership/mysql-wsrep/issues#176
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:DbugMalloc
   fun:PushState
   fun:_gu_db_push_
   fun:_Z16wsrep_set_paramsRN6galera10ReplicatorEPKc
   fun:galera_parameters_set
   fun:_Z29wsrep_provider_options_updateP7sys_varP3THD13enum_var_type
   fun:_ZN7sys_var6updateEP3THDP7set_var
   fun:_ZN7set_var6updateEP3THD
   fun:_Z17sql_set_variablesP3THDP4ListI12set_var_baseE
   fun:_Z21mysql_execute_commandP3THD
   fun:_Z11mysql_parseP3THDPcjP12Parser_state
   fun:_ZL17wsrep_mysql_parseP3THDPcjP12Parser_state
   fun:_Z16dispatch_command19enum_server_commandP3THDPcj
   fun:_Z10do_commandP3THD
   fun:_Z24do_handle_one_connectionP3THD
}

{
   codership/galera#331
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:state_map_insert
   fun:code_state
   fun:_gu_db_keyword_
   fun:_ZN6galera3ist6Sender4sendEll
   fun:run_async_sender
   fun:start_thread
   fun:clone
}

{
   codership/galera#331
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:code_state
   fun:_gu_db_keyword_
   fun:_ZN6galera3ist6Sender4sendEll
   fun:run_async_sender
   fun:start_thread
   fun:clone
}

{
   codership test wsrep_info.plugin
   Memcheck:Leak
   match-leak-kinds: possible
   fun:malloc
   fun:tls_get_addr_tail
}

{
   codership/galera
   Memcheck:Addr4
   fun:_ZN14Wsrep_thd_args11thread_typeEv
   fun:_Z15start_wsrep_THDPv
   fun:start_thread
   fun:clone
}

{
   codership/galera
   Memcheck:Leak
   match-leak-kinds: indirect
   fun:malloc
   fun:strdup
   fun:dummy_init
   fun:_ZN5wsrep18wsrep_provider_v26C1ERNS_12server_stateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_
   fun:_ZN5wsrep8provider13make_providerERNS_12server_stateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_
   fun:_ZN5wsrep12server_state13load_providerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_
   fun:_Z10wsrep_initv
}

{
   codership/galera
   Memcheck:Leak
   match-leak-kinds: indirect
   fun:malloc
   fun:wsrep_dummy_loader
   fun:wsrep_load
   fun:_ZN5wsrep18wsrep_provider_v26C1ERNS_12server_stateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_
   fun:_ZN5wsrep8provider13make_providerERNS_12server_stateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_
   fun:_ZN5wsrep12server_state13load_providerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_
   fun:_Z10wsrep_initv
}

{
   codership/galera
   Memcheck:Leak
   match-leak-kinds: indirect
   fun:malloc
   fun:wsrep_load
   fun:_ZN5wsrep18wsrep_provider_v26C1ERNS_12server_stateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_
   fun:_ZN5wsrep8provider13make_providerERNS_12server_stateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_
   fun:_ZN5wsrep12server_state13load_providerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_
   fun:_Z10wsrep_initv
}

{
   codership/galera
   Memcheck:Leak
   match-leak-kinds: definite
   fun:_Znwm
   fun:_ZN5wsrep8provider13make_providerERNS_12server_stateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_
   fun:_ZN5wsrep12server_state13load_providerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_
   fun:_Z10wsrep_initv
}

{
   MDEV-20378 wsrep_info.plugin
   Memcheck:Addr4
   fun:_ZN14Wsrep_thd_args11thread_typeEv
   fun:_Z15start_wsrep_THDPv
   fun:pfs_spawn_thread
   fun:start_thread
   fun:clone
}

# 
# MDEV-11061: OpenSSL 0.9.8 problems
#

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   obj:*/libz.so*
   ...
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   obj:*/libz.so*
   ...
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   obj:*/libssl.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   obj:*/libssl.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   fun:memcpy
   obj:*/libcrypto.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   fun:memcpy
   obj:*/libcrypto.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   fun:is_overlap
   fun:memcpy
   obj:*/libcrypto.so.0.9.8
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Cond
   fun:memset
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Value8
   fun:memset
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

{
   MDEV-11061: OpenSSL 0.9.8
   Memcheck:Param
   write(buf)
   obj:*/libpthread-2.9.so*
   obj:*/libcrypto.so.0.9.8
   ...
   obj:*/libssl.so.0.9.8
   ...
}

#
# OpenSSL 1.0.1k problems
#

{
   OPENSSL 1.0.1k crypto leak
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:CRYPTO_malloc
   ...
   fun:ENGINE_add
}

{
   OPENSSL 1.0.1k crypto leak
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:CRYPTO_malloc
   fun:ENGINE_new
}

#
# OpenSSL 1.0.1l problems
#

{
   OpenSSL 1.0.1l wrong jump
   Memcheck:Cond
   fun:bcmp
   obj:/usr/lib64/libcrypto.so*
   fun:FIPS_selftest
}

{
   OpenSSL 1.0.1l wrong jump 2
   Memcheck:Cond
   obj:/usr/lib64/libcrypto.so*
   fun:FIPS_mode_set
   obj:/usr/lib64/libcrypto.so*
}

#
# libmarias3 problems
#
{
   libmarias3 crypto
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   ...
   obj:/usr/lib64/libcrypto.so*
}

{
   OpenSSL 1.1.0i wrong jump
   Memcheck:Cond
   fun:bcmp
   fun:fips_rsa_encrypt_test
   ...   
   fun:OPENSSL_init_library
}

#
# libmarias3 problems
#
{
   libmarias3 curl
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   ...
   obj:/usr/lib64/libcrypto.so*
}

{
   libmarias3 libxml2
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:calloc
   fun:xmlGetGlobalState
   ...
   fun:s3_deinit_library
}

##
## The following is a copy of facebook/mysql-5.6 suppressions:
##

#
# RocksDB Storage Engine suppressions start
#

{
   Still reachable for once-per-process initializations
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZN7rocksdb16ThreadStatusUtil19NewColumnFamilyInfoEPKNS_2DBEPKNS_16ColumnFamilyDataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_3EnvE
   fun:_ZNK7rocksdb6DBImpl21NewThreadStatusCfInfoEPNS_16ColumnFamilyDataE
   fun:_ZN7rocksdb2DB4OpenERKNS_9DBOptionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_22ColumnFamilyDescriptorESaISD_EEPSC_IPNS_18ColumnFamilyHandleESaISJ_EEPPS0_
   fun:_ZN7rocksdb13TransactionDB4OpenERKNS_9DBOptionsERKNS_20TransactionDBOptionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_22ColumnFamilyDescriptorESaISG_EEPSF_IPNS_18ColumnFamilyHandleESaISM_EEPPS0_
   fun:_ZN7myrocksL17rocksdb_init_funcEPv
}


{
   Still reachable for once-per-process initializations 2
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZN7rocksdb16ThreadStatusUtil19NewColumnFamilyInfoEPKNS_2DBEPKNS_16ColumnFamilyDataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_3EnvE
   fun:_ZNK7rocksdb6DBImpl21NewThreadStatusCfInfoEPNS_16ColumnFamilyDataE
   fun:_ZN7rocksdb6DBImpl4OpenERKNS_9DBOptionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_22ColumnFamilyDescriptorESaISD_EEPSC_IPNS_18ColumnFamilyHandleESaISJ_EEPPNS_2DBEbb
   fun:_ZN7rocksdb13TransactionDB4OpenERKNS_9DBOptionsERKNS_20TransactionDBOptionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorINS_22ColumnFamilyDescriptorESaISG_EEPSF_IPNS_18ColumnFamilyHandleESaISM_EEPPS0_
#   fun:_ZN7myrocksL17rocksdb_init_funcEPv
#  ^ commenting the above out because we are hitting the --num-callers=16
#    limitation that MTR sets for valgrind
}

{
   Still reachable for once-per-process initializations 3
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZN7rocksdb16ThreadStatusUtil19NewColumnFamilyInfoEPKNS_2DBEPKNS_16ColumnFamilyDataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS_3EnvE
   fun:_ZNK7rocksdb6DBImpl21NewThreadStatusCfInfoEPNS_16ColumnFamilyDataE
   fun:_ZN7rocksdb6DBImpl22CreateColumnFamilyImplERKNS_19ColumnFamilyOptionsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPNS_18ColumnFamilyHandleE
}

{
   Still reachable for once-per-process initializations
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZN7rocksdb19ThreadStatusUpdater14RegisterThreadENS_12ThreadStatus10ThreadTypeEm
   fun:_ZN7rocksdb16ThreadStatusUtil14RegisterThreadEPKNS_3EnvENS_12ThreadStatus10ThreadTypeE
   fun:_ZN7rocksdb14ThreadPoolImpl4Impl15BGThreadWrapperEPv
   ...
}

{
   Still reachable for once-per-process initializations
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZN7rocksdb14ThreadLocalPtr14InitSingletonsEv
   fun:_ZN7rocksdb3Env7DefaultEv
   fun:_ZN7rocksdb9DBOptionsC1Ev
   ...
   fun:_ZN7myrocksL27rdb_init_rocksdb_db_optionsEv
}

{
   Still reachable for once-per-process initializations
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZN7rocksdb12_GLOBAL__N_18PosixEnv*
   fun:_ZN7rocksdb3Env7DefaultEv
   fun:_ZN7rocksdb9DBOptionsC1Ev
   ...
   fun:_ZN7myrocksL27rdb_init_rocksdb_db_optionsEv
}

{
   Still reachable for thread local storage initialization (SetHandle)
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZNSt13unordered_mapIjPFvPvESt4hashIjESt8equal_toIjESaISt4pairIKjS2_EEEixERS8_
   fun:_ZN7rocksdb14ThreadLocalPtr10StaticMeta10SetHandlerEjPFvPvE
   fun:_ZN7rocksdb14ThreadLocalPtrC1EPFvPvE
   ...
}

{
   Still reachable for thread local storage initialization (ReclaimId)
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_ZN7rocksdb10autovectorIjLm8EE9push_backERKj
   fun:_ZN7rocksdb14ThreadLocalPtr10StaticMeta9ReclaimIdEj
   fun:_ZN7rocksdb14ThreadLocalPtrD1Ev
   ...
}

{
   Static initialization
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:_Z41__static_initialization_and_destruction_0ii
   ...
}

{
   From rocksdb.mariadb_plugin.test
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:calloc
   fun:__cxa_thread_atexit_impl
   fun:__tls_init
   fun:_ZTWN7rocksdb12perf_contextE
   fun:_ZN7rocksdb17InstrumentedMutex4LockEv
   ...
   fun:_ZNSt10unique_ptrIN7rocksdb9DBOptionsESt14default_deleteIS1_EED1Ev
   fun:__run_exit_handlers
}

##
## RocksDB Storage Engine suppressions end
##

#
# wolfSSL problems, to be removed after fixed by wolfSSL team
#

{
   WolfSSL_accept
   Memcheck:Cond
   ...
   fun:wolfSSL_accept
}

{
   WolfSSL_connect
   Memcheck:Cond
   ...
   fun:wolfSSL_connect
}

{
   WolfSSL send param
   Memcheck:Param
   socketcall.sendto(msg)
   fun:send
   ...
   fun:wolfSSL_connect
}

#
# Temporary suppressions to be able to run all tests in 10.5 with --valgrind
#

#
# InnoDB errors
#

{
   InnoDB encryption
   Memcheck:Addr2
   fun:memmove
   fun:wolfSSL_EVP_CipherUpdate
}

{
   InnoDB row_in_step
   Memcheck:Cond
   fun:_Z12row_ins_stepP9que_thr_t
   ...
   fun:_ZN11ha_innobase10update_rowEPKhS1_
}

{
  InnoDB leak
  Memcheck:Leak
  match-leak-kinds: indirect,definite
  fun:malloc
  fun:_Z26mem_heap_create_block_funcP16mem_block_info_tmPKcjm
  ...
  fun:_ZN11ha_innobase10delete_rowEPKh
}

{
  InnoDB leak
  Memcheck:Leak
  match-leak-kinds: indirect,definite
  fun:malloc
  fun:_Z26mem_heap_create_block_funcP16mem_block_info_tmPKcjm
  ...
  fun:_ZN7handler13ha_update_rowEPKhS1_
}

#
# Optimizer
#

{
   innodb_fts.fulltext_misc
   Memcheck:Param
   write(buf)
   fun:write
   fun:my_write
   fun:inline_mysql_file_write
   fun:_my_b_cache_write
   fun:my_b_flush_io_cache
   fun:end_io_cache
   ...
   fun:_Z11mysql_unionP3THDP3LEXP13select_resultP18st_select_lex_unitm
}