~drizzle-trunk/drizzle/development

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
#
# Suppress some common (not fatal) errors in system libraries found by valgrind
#

{
  dlopen memory leak
  Memcheck:Leak
  fun:*alloc
  ...
  fun:*dlopen*
  ...
}

{
  dlerror memory leak
  Memcheck:Leak
  fun:*alloc
  ...
  fun:*dlerror*
  ...
}

{
  dlclose memory leak
  Memcheck:Leak
  fun:*alloc
  ...
  fun:*dl_close*
  ...
}

{
  dlpreload memory leak
  Memcheck:Leak
  ...
  fun:do_preload
  fun:dl_main
  ...
}

{
  dl_main issue
  Memcheck:Cond
  ...
  fun:dl_main
  ...
}

# Masking an issue in system tzset call
{
  tzset() on debian reports issues
  Memcheck:Cond
  ...
  fun:tzset
  fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_
  ...
}
{
  tzset() on debian reports issues
  Memcheck:Addr8
  ...
  fun:tzset
  fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_
  ...
}
{
  tzset() on debian reports issues
  Memcheck:Addr4
  ...
  fun:tzset
  fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_
  ...
}
{
  tzset() on debian reports issues
  Memcheck:Addr8
  ...
  fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_
  fun:main
}
{
  tzset() on debian reports issues
  Memcheck:Addr4
  ...
  fun:_ZN8drizzled21init_common_variablesEPKciPPcPS1_
  fun:main
}



# Masking static allocation issues in InnoDB
{
   InnoDB Unclean Startup
   Memcheck:Cond
   ...
   fun:innobase_start_or_create_for_mysql
   ...
}

{
   InnoDB Unclean Startup
   Memcheck:Leak
   fun:*alloc
   ...
   fun:innobase_start_or_create_for_mysql
   ...
}

{
   InnoDB Unclean Startup
   Memcheck:Cond
   ...
   fun:srv_master_thread
   ...
}

{
   InnoDB Unclean Startup
   Memcheck:Leak
   fun:malloc
   ...
   fun:srv_master_thread
   ...
}

{
   InnoDB allocing out of its internal heap is always confusing to valgrind
   Memcheck:Leak
   ...
   fun:mem_heap_create_block
   ...
}

{
   InnoDB Insert Row
   Memcheck:Cond
   ...
   fun:row_insert_for_mysql
   ...
}
{
   InnoDB Insert Row
   Memcheck:Value4
   ...
   fun:row_insert_for_mysql
   ...
}
{
   InnoDB Insert Row
   Memcheck:Value8
   ...
   fun:row_insert_for_mysql
   ...
}
{
   InnoDB Insert Row
   Memcheck:Leak
   ...
   fun:row_insert_for_mysql
   ...
}
{
   InnoDB Insert Row
   Memcheck:Param
   ...
   fun:row_insert_for_mysql
   ...
}
{
   InnoDB Insert Row
   Memcheck:Param
   write(buf)
   ...
   fun:row_insert_for_mysql
   ...
}

{
   InnoDB Create Table
   Memcheck:Cond
   ...
   fun:row_create_table_for_mysql
   ...
}
{
   InnoDB Create Table
   Memcheck:Leak
   ...
   fun:row_create_table_for_mysql
   ...
}

{
   InnoDB Drop Table
   Memcheck:Cond
   ...
   fun:row_drop_table_for_mysql
   ...
}
{
   InnoDB Drop Table
   Memcheck:Leak
   ...
   fun:row_drop_table_for_mysql
   ...
}


{
   HailDB Inherited some issues from InnoDB
   Memcheck:Cond
   fun:rw_lock_x_lock_func
   ...
   fun:innobase_start_or_create
   fun:_ZL20embedded_innodb_initRN8drizzled6module7ContextE
   fun:_ZN8drizzled15plugin_finalizeERNS_6module8RegistryE
   fun:_ZN8drizzled22init_server_componentsERNS_6module8RegistryE
   fun:main
}

{
   HailDB Inherited some issues from InnoDB
   Memcheck:Cond
   fun:rw_lock_x_lock_func
   ...
}


# Masking Leaks in System Libraries
{
   libnss static allocation
   Memcheck:Leak
   ...
   fun:getpwnam
   ...
}

{
  Static buffer created on gcrypt library initialization. Not a leak.
  Memcheck:Leak
  fun:malloc
  ...
  obj:*libgcrypt.so.*
  fun:_ZL10initializeRN8drizzled6module7ContextE
  ...
}

{
   Static buffer in pcre. Not a leak.
   Memcheck:Leak
   fun:malloc
   fun:pcre_compile2
   ...
}

{
   azflush issue in libazio
   Memcheck:Param
   pwrite64(buf)
   ...
   fun:azflush
   ...
}
{
   azflush issue in libazio
   Memcheck:Cond
   fun:deflate
   ...
   fun:azflush
   ...
}

{
   azclose issue in libazio
   Memcheck:Param
   pwrite64(buf)
   ...
   fun:azclose
   ...
}
{
   azclose issue in libazio
   Memcheck:Cond
   fun:deflate
   ...
   fun:azclose
   ...
}

{
   azwrite_row issue in libazio
   Memcheck:Cond
   fun:memcpy
   ...
   fun:deflate
   fun:azwrite_row
   ...
}
{
   azwrite_row issue in libazio
   Memcheck:Value8
   fun:memcpy
   ...
   fun:deflate
   fun:azwrite_row
   ...
}
{
   azwrite_row issue in libazio
   Memcheck:Value4
   fun:memcpy
   ...
   fun:deflate
   fun:azwrite_row
   ...
}


{
   MyISAM pwrite issue. Teh Suck.
   Memcheck:Param
   pwrite64(buf)
   fun:pwrite64
   fun:_Z15key_cache_writePN8drizzled12st_key_cacheEiyiPhjji
   ...
}
{
   MyISAM pwrite issue. Teh Suck.
   Memcheck:Param
   pwrite64(buf)
   fun:pwrite64
   fun:_Z15key_cache_writePN8drizzled12st_key_cacheEimiPhjji
   ...
}
{
   MyISAM pwrite issue. Teh Suck.
   Memcheck:Param
   pwrite64(buf)
   ...
   fun:_Z15key_cache_writePN8drizzled12st_key_cacheEimiPhjji
  ...
}

# Things we don't like in Drizzle

{
   This whole codebase is going away, so suppress this annoyance.
   Memcheck:Cond
   fun:_ZN8drizzledL17construct_optionsEPNS_6memory4RootEPNS_6module6ModuleEPNS_6optionE
   fun:_ZN8drizzledL19test_plugin_optionsEPNS_6memory4RootEPNS_6module6ModuleEPiPPcRN5boost15program_options19options_descriptionE
   fun:_ZN8drizzledL16plugin_load_listERNS_6module8RegistryEPNS_6memory4RootEPiPPcRKSt3setISsSt4lessISsESaISsEERN5boost15program_options19options_descriptionEb
   fun:_ZN8drizzled11plugin_initERNS_6module8RegistryEPiPPcRN5boost15program_options19options_descriptionE
   fun:_ZN8drizzled22init_server_componentsERNS_6module8RegistryE
   fun:main
}


# https://bugs.launchpad.net/drizzle/+bug/582486
{
   Bug 582486 - Conditional jump or move depends on uninitialised value
   Memcheck:Value8
   ...
   fun:_ZN8drizzled10mysql_loadEPNS_7SessionEPNS_13file_exchangeEPNS_9TableListERNS_4ListINS_4ItemEEES9_S9_NS_15enum_duplicatesEb
   ...
}
{
   Bug 582486 - Conditional jump or move depends on uninitialised value
   Memcheck:Value4
   ...
   fun:_ZN8drizzled10mysql_loadEPNS_7SessionEPNS_13file_exchangeEPNS_9TableListERNS_4ListINS_4ItemEEES9_S9_NS_15enum_duplicatesEb
   ...
}
{
   Bug 582486 - Conditional jump or move depends on uninitialised value
   Memcheck:Cond
   ...
   fun:_ZN8drizzled10mysql_loadEPNS_7SessionEPNS_13file_exchangeEPNS_9TableListERNS_4ListINS_4ItemEEES9_S9_NS_15enum_duplicatesEb
   ...
}

# https://bugs.launchpad.net/drizzle/+bug/582495
{
   Bug 582495 - Syscall param write(buf) points to uninitialised byte(s)
   Memcheck:Param
   write(buf)
   ...
   fun:_ZN8drizzled8internal8my_writeEiPKhmi
   ...
   fun:_ZN8drizzled8filesortEPNS_7SessionEPNS_5TableEPNS_13st_sort_fieldEjPNS_9optimizer9SqlSelectEmbPm
   ...
}
{
   Bug 582495 - Syscall param write(buf) points to uninitialised byte(s)
   Memcheck:Param
   write(buf)
   ...
   fun:_ZN8drizzled8internal8my_writeEiPKhmi
   ...
   fun:_ZN8drizzled8filesortEPNS_7SessionEPNS_5TableEPNS_13st_sort_fieldEjPNS_9optimizer9SqlSelectEybPy
   ...
}

# https://bugs.launchpad.net/drizzle/+bug/582498
{
   Bug 582498 - Invalid read of size 8
   Memcheck:Addr8
   fun:_Z8hp_panicN8drizzled17ha_panic_functionE
   fun:_ZN10HeapEngineD0Ev
   ...
}
{
   Bug 582498 - Invalid read of size 4
   Memcheck:Addr4
   fun:_Z8hp_panicN8drizzled17ha_panic_functionE
   fun:_ZN10HeapEngineD0Ev
   ...
}

# https://bugs.launchpad.net/drizzle/+bug/582526
{
   Possibly lack of deallocation of a thread
   Memcheck:Leak
   fun:calloc
   ...
   fun:pthread_create*
   fun:_Z34initTransactionLogBackgroundWorkerv
   ...
}

# Issues with boost::thread
{
  Boost::thread issues. Not a problem - static init issues.
  Memcheck:Leak
  ...
  fun:_ZN5boost6detail16add_new_tss_nodeEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPv
  fun:_ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb
  fun:_ZN8drizzled8internal14my_thread_initEv
  fun:_ZN8drizzled8internal21my_thread_global_initEv
  fun:_ZN8drizzled8internal7my_initEv
  fun:main
}

{
  Boost::thread issues. Not a problem - static init issues.
  Memcheck:Leak
  fun:_Znwm
  fun:_ZNSt8_Rb_treeIPKvSt4pairIKS1_N5boost6detail13tss_data_nodeEESt10_Select1stIS7_ESt4lessIS1_ESaIS7_EE10_M_insert_EPKSt18_Rb_tree_node_baseSG_RKS7_
  fun:_ZN5boost6detail16add_new_tss_nodeEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPv
  fun:_ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb
  fun:_ZN5boost19thread_specific_ptrIN8drizzled8internal16st_my_thread_varEED1Ev
  ...
}
{
  Boost::thread issues. Not a problem - static init issues.
  Memcheck:Leak
  ...
  fun:_ZN5boost6detail23get_current_thread_dataEv
  fun:_ZN5boost6detail13find_tss_dataEPKv
  fun:_ZN5boost6detail12get_tss_dataEPKv
  fun:_ZN8drizzled8internal14my_thread_initEv
  fun:_ZN8drizzled8internal21my_thread_global_initEv
  fun:_ZN8drizzled8internal7my_initEv
  ...
}
{
  Boost::thread issues. Not a problem - static init issues.
  Memcheck:Leak
  ...
  fun:_ZN5boost19thread_specific_ptrIPN8drizzled6memory4RootEED1Ev
  fun:__run_exit_handlers
  fun:exit
  ...
}
{
  Boost::thread issues. Not a problem - static init issues.
  Memcheck:Leak
  ...
  fun:_ZN5boost19thread_specific_ptr*
  fun:__run_exit_handlers
  fun:exit
  ...
}
{
  Boost::thread issues. Not a problem - static init issues.
  Memcheck:Leak
  fun:_Znwm
  ...
  fun:_ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb
   fun:_ZN8drizzled8internal14my_thread_initEv
   fun:_ZN8drizzled8internal21my_thread_global_initEv
   fun:_ZN8drizzled8internal7my_initEv
   fun:main
}
{
  Boost::thread issues. Not a problem - static init issues.
   Memcheck:Leak
   fun:_Znwj
   ...
   fun:_ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb
   fun:_ZN8drizzled8internal14my_thread_initEv
   fun:_ZN8drizzled8internal21my_thread_global_initEv
   fun:_ZN8drizzled8internal7my_initEv
   fun:main
}
{
  Boost::thread issues. Not a problem - static init issues.
   Memcheck:Leak
   fun:_Znwm
   fun:_ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb
   fun:_ZN8drizzled7Session12storeGlobalsEv
   fun:_ZN8drizzled21drizzle_rm_tmp_tablesEv
   fun:main
}
{
  Boost::thread issues. Not a problem - static init issues.
   Memcheck:Leak
   fun:_Znwj
   fun:_ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb
   fun:_ZN8drizzled7Session12storeGlobalsEv
   fun:_ZN8drizzled21drizzle_rm_tmp_tablesEv
   fun:main
}