mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / valgrind.supp
blobe2fdc727da5b1d78f556d6cbb557460771e049da
1 # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Library General Public
5 # License as published by the Free Software Foundation; version 2
6 # of the License.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Library General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 # Suppress some common (not fatal) errors in system libraries found by valgrind
22 # Pthread doesn't free all thread specific memory before program exists
25    pthread allocate_tls memory loss
26    Memcheck:Leak
27    fun:calloc
28    fun:_dl_allocate_tls
29    fun:allocate_stack
30    fun:pthread_create*
34    pthread allocate_tls memory loss
35    Memcheck:Leak
36    fun:calloc
37    fun:_dl_allocate_tls
38    fun:pthread_create*
43    pthead_exit memory loss 1
44    Memcheck:Leak
45    fun:malloc
46    fun:_dl_new_object
47    fun:_dl_map_object_from_fd
51    pthread_exit memory loss 2
52    Memcheck:Leak
53    fun:malloc
54    fun:_dl_map_object
55    fun:dl_open_worker
59    pthread_exit memory loss 3
60    Memcheck:Leak
61    fun:malloc
62    fun:_dl_map_object_deps
63    fun:dl_open_worker
67    pthread_exit memory loss 4
68    Memcheck:Leak
69    fun:calloc
70    fun:_dl_check_map_versions
71    fun:dl_open_worker
75    pthread_exit memory loss 5
76    Memcheck:Leak
77    fun:calloc
78    fun:_dl_new_object
79    fun:_dl_map_object_from_fd
83    pthread allocate_dtv memory loss
84    Memcheck:Leak
85    fun:calloc
86    fun:allocate_dtv
87    fun:_dl_allocate_tls_storage
88    fun:__GI__dl_allocate_tls
89    fun:pthread_create
93    pthread allocate_dtv memory loss second
94    Memcheck:Leak
95    fun:calloc
96    fun:allocate_dtv
97    fun:_dl_allocate_tls
98    fun:pthread_create*
102    pthread memalign memory loss
103    Memcheck:Leak
104    fun:memalign
105    fun:_dl_allocate_tls_storage
106    fun:__GI__dl_allocate_tls
107    fun:pthread_create
111    pthread pthread_key_create
112    Memcheck:Leak
113    fun:malloc
114    fun:*
115    fun:*
116    fun:pthread_key_create
117    fun:my_thread_global_init
121    pthread strstr uninit
122    Memcheck:Cond
123    fun:strstr
124    obj:/lib/tls/libpthread.so.*
125    obj:/lib/tls/libpthread.so.*
126    fun:call_init
127    fun:_dl_init
128    obj:/lib/ld-*.so
132    pthread strstr uninit
133    Memcheck:Cond
134    fun:strstr
135    obj:/lib/tls/libpthread.so.*
136    obj:/lib/tls/libpthread.so.*
137    fun:call_init
138    fun:_dl_init
139    obj:/lib/ld-*.so
142 {  
143    strlen/_dl_init_paths/dl_main/_dl_sysdep_start(Cond)
144    Memcheck:Cond
145    fun:strlen
146    fun:_dl_init_paths
147    fun:dl_main
148    fun:_dl_sysdep_start
152    pthread errno
153    Memcheck:Leak
154    fun:calloc
155    fun:_dlerror_run
156    fun:dlsym
157    fun:__errno_location
162 # Warnings in libz becasue it works with aligned memory(?)
166    libz tr_flush_block
167    Memcheck:Cond
168    fun:_tr_flush_block
169    fun:deflate_slow
170    fun:deflate
171    fun:do_flush
172    fun:gzclose
176    libz tr_flush_block2
177    Memcheck:Cond
178    fun:_tr_flush_block
179    fun:deflate_slow
180    fun:deflate
181    fun:compress2
185    libz longest_match
186    Memcheck:Cond
187    fun:longest_match
188    fun:deflate_slow
189    fun:deflate
190    fun:do_flush
194    libz longest_match2
195    Memcheck:Cond
196    fun:longest_match
197    fun:deflate_slow
198    fun:deflate
199    fun:compress2
203    libz longest_match 3
204    Memcheck:Cond
205    fun:longest_match
206    fun:deflate_slow
207    fun:deflate
208    fun:gzclose
212    libz longest_match 4 
213    Memcheck:Cond
214    fun:longest_match
215    fun:deflate_slow
216    fun:deflate
217    fun:gzflush
221    libz longest_match3
222    Memcheck:Cond
223    fun:longest_match
224    fun:deflate_slow
225    fun:deflate
226    fun:azflush
230    libz longest_match3
231    Memcheck:Cond
232    fun:longest_match
233    fun:deflate_slow
234    fun:deflate
235    fun:azclose
239    libz deflate
240    Memcheck:Cond
241    obj:*/libz.so.*
242    obj:*/libz.so.*
243    fun:deflate
244    fun:compress2
248    libz deflate2
249    Memcheck:Cond
250    obj:*/libz.so.*
251    obj:*/libz.so.*
252    fun:deflate
253    obj:*/libz.so.*
254    fun:gzflush
258    libz deflate3
259    Memcheck:Cond
260    obj:*/libz.so.*
261    obj:*/libz.so.*
262    fun:deflate
263    fun:do_flush
267 # Warning from my_thread_init becasue mysqld dies before kill thread exists
271    my_thread_init kill thread memory loss second
272    Memcheck:Leak
273    fun:calloc
274    fun:my_thread_init
275    fun:kill_server_thread
279 # Red Hat AS 4 32 bit
281    dl_relocate_object
282    Memcheck:Cond
283    fun:_dl_relocate_object
287 # Warning from my_thread_init becasue mysqld dies before kill thread exists
291    my_thread_init kill thread memory loss second
292    Memcheck:Leak
293    fun:calloc
294    fun:my_thread_init
295    fun:kill_server_thread
299 # Leaks reported in _dl_* internal functions on Linux amd64 / glibc2.3.2.
303    _dl_start invalid write8
304    Memcheck:Addr8
305    fun:_dl_start
309    _dl_start invalid write4
310    Memcheck:Addr4
311    fun:_dl_start
315    _dl_start/_dl_setup_hash invalid read8
316    Memcheck:Addr8
317    fun:_dl_setup_hash
318    fun:_dl_start
322    _dl_sysdep_start invalid write8
323    Memcheck:Addr8
324    fun:_dl_sysdep_start
328    _dl_init invalid write8
329    Memcheck:Addr8
330    fun:_dl_init
334    _dl_init invalid write4
335    Memcheck:Addr4
336    fun:_dl_init
340    _dl_init/_dl_init invalid read8
341    Memcheck:Addr8
342    fun:_dl_debug_initialize
343    fun:_dl_init
347    _dl_init/_dl_debug_state invalid read8
348    Memcheck:Addr8
349    fun:_dl_debug_state
350    fun:_dl_init
354    init invalid write8
355    Memcheck:Addr8
356    fun:init
360    fixup invalid write8
361    Memcheck:Addr8
362    fun:fixup
366    fixup/_dl_lookup_versioned_symbol invalid read8
367    Memcheck:Addr8
368    fun:_dl_lookup_versioned_symbol
369    fun:fixup
373    _dl_runtime_resolve invalid read8
374    Memcheck:Addr8
375    fun:_dl_runtime_resolve
379    __libc_start_main invalid write8
380    Memcheck:Addr8
381    fun:__libc_start_main
385    __libc_start_main/__sigjmp_save invalid write4
386    Memcheck:Addr4
387    fun:__sigjmp_save
388    fun:__libc_start_main
392 # These seem to be libc threading stuff, not related to MySQL code (allocations
393 # during pthread_exit()). Googling shows other projects also using these
394 # suppressions.
396 # Note that these all stem from pthread_exit() deeper in the call stack, but
397 # Valgrind only allows the top four calls in the suppressions.
401    libc pthread_exit 1
402    Memcheck:Leak
403    fun:malloc
404    fun:_dl_new_object
405    fun:_dl_map_object_from_fd
406    fun:_dl_map_object
410    libc pthread_exit 2
411    Memcheck:Leak
412    fun:malloc
413    fun:_dl_map_object
414    fun:dl_open_worker
415    fun:_dl_catch_error
419    libc pthread_exit 3
420    Memcheck:Leak
421    fun:malloc
422    fun:_dl_map_object_deps
423    fun:dl_open_worker
424    fun:_dl_catch_error
428    libc pthread_exit 4
429    Memcheck:Leak
430    fun:calloc
431    fun:_dl_check_map_versions
432    fun:dl_open_worker
433    fun:_dl_catch_error
437    libc pthread_exit 5
438    Memcheck:Leak
439    fun:calloc
440    fun:_dl_new_object
441    fun:_dl_map_object_from_fd
442    fun:_dl_map_object
446    libc pthread_exit 6
447    Memcheck:Leak
448    fun:malloc
449    fun:_dl_map_object
450    fun:openaux
451    fun:_dl_catch_error 
455    libc pthread_exit 7
456    Memcheck:Leak
457    fun:malloc
458    fun:dl_open_worker
459    fun:_dl_catch_error
460    fun:_dl_open
464    libc pthread_exit 8
465    Memcheck:Leak
466    fun:malloc
467    fun:local_strdup
468    fun:_dl_map_object
469    fun:dl_open_worker
473 # This is seen internally in the system libraries on 64-bit RHAS3.
477    __lll_mutex_unlock_wake uninitialized
478    Memcheck:Param
479    futex(utime)
480    fun:__lll_mutex_unlock_wake
484 # BUG#19940: NDB sends uninitialized parts of field buffers across the wire.
485 # This is "works as designed"; the uninitialized part is not used at the
486 # other end (but Valgrind cannot see this).
489    bug19940
490    Memcheck:Param
491    socketcall.sendto(msg)
492    fun:send
493    fun:_ZN15TCP_Transporter6doSendEv
494    fun:_ZN19TransporterRegistry11performSendEv
495    fun:_ZN19TransporterRegistry14forceSendCheckEi
497 # Warning when printing stack trace (to suppress some not needed warnings)
501    vprintf on stacktrace
502    Memcheck:Cond
503    fun:vfprintf
504    fun:uffered_vfprintf
505    fun:vfprintf
506    fun:fprintf
507    fun:print_stacktrace
511 # Safe warnings, that may happen because of thread scheduling
515    dbug initialization by kill_server
516    Memcheck:Leak
517    fun:malloc
518    fun:DbugMalloc
519    fun:code_state
520    fun:_db_enter_
521    fun:kill_server
525 # Warning caused by small memory leak in threaded dlopen
529    dlopen threaded memory leak
530    Memcheck:Leak
531    fun:calloc
532    obj:*/libdl-*.so
533    fun:dlopen*
537 # BUG#45630
538 # Suppress valgrind failures within nptl_pthread_exit_hack_handler on Ubuntu 9.04, x86 (but not amd64)
542    Mem loss within nptl_pthread_exit_hack_handler 1
543    Memcheck:Leak
544    fun:malloc
545    obj:*/ld-*.so
546    obj:*/ld-*.so
547    obj:*/ld-*.so
548    obj:*/ld-*.so
549    obj:*/ld-*.so
550    obj:*/libc-*.so
551    obj:*/ld-*.so
552    fun:__libc_dlopen_mode
553    fun:pthread_cancel_init
554    fun:_Unwind_ForcedUnwind
555    fun:__pthread_unwind
556    fun:pthread_exit
557    fun:nptl_pthread_exit_hack_handler
558    fun:start_thread
559    fun:clone
563    Mem loss within nptl_pthread_exit_hack_handler 2
564    Memcheck:Leak
565    fun:malloc
566    obj:*/ld-*.so
567    obj:*/ld-*.so
568    obj:*/ld-*.so
569    obj:*/ld-*.so
570    obj:*/libc-*.so
571    obj:*/ld-*.so
572    fun:__libc_dlopen_mode
573    fun:pthread_cancel_init
574    fun:_Unwind_ForcedUnwind
575    fun:__pthread_unwind
576    fun:pthread_exit
577    fun:nptl_pthread_exit_hack_handler
578    fun:start_thread
579    fun:clone
583    Mem loss within nptl_pthread_exit_hack_handler 3
584    Memcheck:Leak
585    fun:calloc
586    obj:*/ld-*.so
587    obj:*/ld-*.so
588    obj:*/ld-*.so
589    obj:*/ld-*.so
590    obj:*/libc-*.so
591    obj:*/ld-*.so
592    fun:__libc_dlopen_mode
593    fun:pthread_cancel_init
594    fun:_Unwind_ForcedUnwind
595    fun:__pthread_unwind
596    fun:pthread_exit
597    fun:nptl_pthread_exit_hack_handler
598    fun:start_thread
599    fun:clone
603    Mem loss within nptl_pthread_exit_hack_handler 4
604    Memcheck:Leak
605    fun:malloc
606    obj:*/ld-*.so
607    obj:*/ld-*.so
608    obj:*/ld-*.so
609    obj:*/ld-*.so
610    obj:*/ld-*.so
611    obj:*/ld-*.so
612    obj:*/libc-*.so
613    obj:*/ld-*.so
614    fun:__libc_dlopen_mode
615    fun:pthread_cancel_init
616    fun:_Unwind_ForcedUnwind
617    fun:__pthread_unwind
618    fun:pthread_exit
619    fun:nptl_pthread_exit_hack_handler
620    fun:start_thread
624    Mem loss within nptl_pthread_exit_hack_handler 5
625    Memcheck:Leak
626    fun:calloc
627    obj:*/ld-*.so
628    obj:*/ld-*.so
629    obj:*/ld-*.so
630    obj:*/ld-*.so
631    obj:*/ld-*.so
632    obj:*/ld-*.so
633    obj:*/libc-*.so
634    obj:*/ld-*.so
635    fun:__libc_dlopen_mode
636    fun:pthread_cancel_init
637    fun:_Unwind_ForcedUnwind
638    fun:__pthread_unwind
639    fun:pthread_exit
640    fun:nptl_pthread_exit_hack_handler
641    fun:start_thread
644 # suppressions for glibc 2.6.1 64 bit
647    Mem loss within nptl_pthread_exit_hack_handler 6
648    Memcheck:Leak
649    fun:malloc
650    obj:*/ld-*.so
651    obj:*/ld-*.so
652    obj:*/ld-*.so
653    obj:*/ld-*.so
654    obj:*/ld-*.so
655    obj:*/ld-*.so
656    obj:*/libc-*.so
657    obj:*/ld-*.so
658    obj:*/libc-*.so
659    fun:__libc_dlopen_mode
660    fun:pthread_cancel_init
661    fun:_Unwind_ForcedUnwind
662    fun:__pthread_unwind
663    fun:pthread_exit
664    fun:nptl_pthread_exit_hack_handler
668    Mem loss within nptl_pthread_exit_hack_handler 7
669    Memcheck:Leak
670    fun:malloc
671    obj:*/ld-*.so
672    obj:*/ld-*.so
673    obj:*/ld-*.so
674    obj:*/ld-*.so
675    obj:*/libc-*.so
676    obj:*/ld-*.so
677    obj:*/libc-*.so
678    fun:__libc_dlopen_mode
679    fun:pthread_cancel_init
680    fun:_Unwind_ForcedUnwind
681    fun:__pthread_unwind
682    fun:pthread_exit
683    fun:nptl_pthread_exit_hack_handler
684    fun:start_thread
685    fun:clone
689    Mem loss within nptl_pthread_exit_hack_handler 8
690    Memcheck:Leak
691    fun:calloc
692    obj:*/ld-*.so
693    obj:*/ld-*.so
694    obj:*/ld-*.so
695    obj:*/ld-*.so
696    obj:*/libc-*.so
697    obj:*/ld-*.so
698    obj:*/libc-*.so
699    fun:__libc_dlopen_mode
700    fun:pthread_cancel_init
701    fun:_Unwind_ForcedUnwind
702    fun:__pthread_unwind
703    fun:pthread_exit
704    fun:nptl_pthread_exit_hack_handler
705    fun:start_thread
706    fun:clone
710    Mem loss within nptl_pthread_exit_hack_handler 8
711    Memcheck:Leak
712    fun:calloc
713    obj:*/ld-*.so
714    obj:*/ld-*.so
715    obj:*/ld-*.so
716    obj:*/ld-*.so
717    obj:*/ld-*.so
718    obj:*/ld-*.so
719    obj:*/libc-*.so
720    obj:*/ld-*.so
721    obj:*/libc-*.so
722    fun:__libc_dlopen_mode
723    fun:pthread_cancel_init
724    fun:_Unwind_ForcedUnwind
725    fun:__pthread_unwind
726    fun:pthread_exit
727    fun:nptl_pthread_exit_hack_handler
731 # Pthread doesn't free all thread specific memory before program exists
734    pthread allocate_tls memory loss in 2.6.1.
735    Memcheck:Leak 
736    fun:calloc
737    obj:*/ld-*.so
738    fun:_dl_allocate_tls
739    fun:pthread_create*
743    buf_buddy_relocate peeking (space,page) in potentially free blocks
744    Memcheck:Addr1
745    fun:buf_buddy_relocate
749    Bug 59874 Valgrind warning in InnoDB compression code
750    Memcheck:Cond
751    fun:*
752    fun:*
753    fun:deflate
754    fun:btr_store_big_rec_extern_fields_func
755    fun:row_ins_index_entry_low
756    fun:row_ins_index_entry
757    fun:row_ins_index_entry_step
758    fun:row_ins
759    fun:row_ins_step
760    fun:row_insert_for_mysql
764    In page0zip.c we have already checked that the memory is initialized before calling deflate()
765    Memcheck:Cond
766    fun:*
767    fun:*
768    fun:deflate
769    fun:page_zip_compress
770    fun:page_cur_insert_rec_zip_reorg
771    fun:page_cur_insert_rec_zip
772    fun:page_cur_tuple_insert
773    fun:btr_cur_optimistic_insert
774    fun:row_ins_index_entry_low
775    fun:row_ins_index_entry
776    fun:row_ins_index_entry_step
777    fun:row_ins
778    fun:row_ins_step
779    fun:row_insert_for_mysql
783    Bug 59875 Valgrind warning in buf0buddy.c
784    Memcheck:Addr1
785    fun:mach_read_from_4
786    fun:buf_buddy_relocate
787    fun:buf_buddy_free_low
788    fun:buf_buddy_free
789    fun:buf_LRU_block_remove_hashed_page
790    fun:buf_LRU_invalidate_tablespace
791    fun:fil_delete_tablespace
792    fun:row_drop_table_for_mysql
795 # Note the wildcard in the (mangled) function signatures of
796 # write_keys() and find_all_keys().
797 # They both return ha_rows, which is platform dependent.
799    Bug#12856915 VALGRIND FAILURE IN FILESORT/CREATE_SORT_INDEX / one
800    Memcheck:Param
801    write(buf)
802    obj:*/libpthread*.so
803    fun:my_write
804    fun:my_b_flush_io_cache
805    fun:_my_b_write
806    fun:_Z*10write_keysP13st_sort_paramPPhjP11st_io_cacheS4_
807    fun:_Z*13find_all_keysP13st_sort_paramP10SQL_SELECTPPhP11st_io_cacheS6_S6_
808    fun:_Z8filesortP3THDP8st_tableP13st_sort_fieldjP10SQL_SELECTybPy
812    Bug#12856915 VALGRIND FAILURE IN FILESORT/CREATE_SORT_INDEX / two
813    Memcheck:Param
814    write(buf)
815    obj:*/libpthread*.so
816    fun:my_write
817    fun:my_b_flush_io_cache
818    fun:_Z15merge_many_buffP13st_sort_paramPhP10st_buffpekPjP11st_io_cache
819    fun:_Z8filesortP3THDP8st_tableP13st_sort_fieldjP10SQL_SELECTybPy
823    Bug#12856915 VALGRIND FAILURE IN FILESORT/CREATE_SORT_INDEX / three
824    Memcheck:Param
825    write(buf)
826    obj:*/libpthread*.so
827    fun:my_write
828    fun:my_b_flush_io_cache
829    fun:_Z8filesortP3THDP8st_tableP13st_sort_fieldjP10SQL_SELECTybPy