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
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
34 pthread allocate_tls memory loss
43 pthead_exit memory loss 1
47 fun:_dl_map_object_from_fd
51 pthread_exit memory loss 2
59 pthread_exit memory loss 3
62 fun:_dl_map_object_deps
67 pthread_exit memory loss 4
70 fun:_dl_check_map_versions
75 pthread_exit memory loss 5
79 fun:_dl_map_object_from_fd
83 pthread allocate_dtv memory loss
87 fun:_dl_allocate_tls_storage
88 fun:__GI__dl_allocate_tls
93 pthread allocate_dtv memory loss second
102 pthread memalign memory loss
105 fun:_dl_allocate_tls_storage
106 fun:__GI__dl_allocate_tls
111 pthread pthread_key_create
116 fun:pthread_key_create
117 fun:my_thread_global_init
121 pthread strstr uninit
124 obj:/lib/tls/libpthread.so.*
125 obj:/lib/tls/libpthread.so.*
132 pthread strstr uninit
135 obj:/lib/tls/libpthread.so.*
136 obj:/lib/tls/libpthread.so.*
143 strlen/_dl_init_paths/dl_main/_dl_sysdep_start(Cond)
162 # Warnings in libz becasue it works with aligned memory(?)
267 # Warning from my_thread_init becasue mysqld dies before kill thread exists
271 my_thread_init kill thread memory loss second
275 fun:kill_server_thread
279 # Red Hat AS 4 32 bit
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
295 fun:kill_server_thread
299 # Leaks reported in _dl_* internal functions on Linux amd64 / glibc2.3.2.
303 _dl_start invalid write8
309 _dl_start invalid write4
315 _dl_start/_dl_setup_hash invalid read8
322 _dl_sysdep_start invalid write8
328 _dl_init invalid write8
334 _dl_init invalid write4
340 _dl_init/_dl_init invalid read8
342 fun:_dl_debug_initialize
347 _dl_init/_dl_debug_state invalid read8
366 fixup/_dl_lookup_versioned_symbol invalid read8
368 fun:_dl_lookup_versioned_symbol
373 _dl_runtime_resolve invalid read8
375 fun:_dl_runtime_resolve
379 __libc_start_main invalid write8
381 fun:__libc_start_main
385 __libc_start_main/__sigjmp_save invalid write4
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
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.
405 fun:_dl_map_object_from_fd
422 fun:_dl_map_object_deps
431 fun:_dl_check_map_versions
441 fun:_dl_map_object_from_fd
473 # This is seen internally in the system libraries on 64-bit RHAS3.
477 __lll_mutex_unlock_wake uninitialized
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).
491 socketcall.sendto(msg)
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
511 # Safe warnings, that may happen because of thread scheduling
515 dbug initialization by kill_server
525 # Warning caused by small memory leak in threaded dlopen
529 dlopen threaded memory leak
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
552 fun:__libc_dlopen_mode
553 fun:pthread_cancel_init
554 fun:_Unwind_ForcedUnwind
557 fun:nptl_pthread_exit_hack_handler
563 Mem loss within nptl_pthread_exit_hack_handler 2
572 fun:__libc_dlopen_mode
573 fun:pthread_cancel_init
574 fun:_Unwind_ForcedUnwind
577 fun:nptl_pthread_exit_hack_handler
583 Mem loss within nptl_pthread_exit_hack_handler 3
592 fun:__libc_dlopen_mode
593 fun:pthread_cancel_init
594 fun:_Unwind_ForcedUnwind
597 fun:nptl_pthread_exit_hack_handler
603 Mem loss within nptl_pthread_exit_hack_handler 4
614 fun:__libc_dlopen_mode
615 fun:pthread_cancel_init
616 fun:_Unwind_ForcedUnwind
619 fun:nptl_pthread_exit_hack_handler
624 Mem loss within nptl_pthread_exit_hack_handler 5
635 fun:__libc_dlopen_mode
636 fun:pthread_cancel_init
637 fun:_Unwind_ForcedUnwind
640 fun:nptl_pthread_exit_hack_handler
644 # suppressions for glibc 2.6.1 64 bit
647 Mem loss within nptl_pthread_exit_hack_handler 6
659 fun:__libc_dlopen_mode
660 fun:pthread_cancel_init
661 fun:_Unwind_ForcedUnwind
664 fun:nptl_pthread_exit_hack_handler
668 Mem loss within nptl_pthread_exit_hack_handler 7
678 fun:__libc_dlopen_mode
679 fun:pthread_cancel_init
680 fun:_Unwind_ForcedUnwind
683 fun:nptl_pthread_exit_hack_handler
689 Mem loss within nptl_pthread_exit_hack_handler 8
699 fun:__libc_dlopen_mode
700 fun:pthread_cancel_init
701 fun:_Unwind_ForcedUnwind
704 fun:nptl_pthread_exit_hack_handler
710 Mem loss within nptl_pthread_exit_hack_handler 8
722 fun:__libc_dlopen_mode
723 fun:pthread_cancel_init
724 fun:_Unwind_ForcedUnwind
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.
743 buf_buddy_relocate peeking (space,page) in potentially free blocks
745 fun:buf_buddy_relocate
749 Bug 59874 Valgrind warning in InnoDB compression code
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
760 fun:row_insert_for_mysql
764 In page0zip.c we have already checked that the memory is initialized before calling 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
779 fun:row_insert_for_mysql
783 Bug 59875 Valgrind warning in buf0buddy.c
786 fun:buf_buddy_relocate
787 fun:buf_buddy_free_low
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
804 fun:my_b_flush_io_cache
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
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
828 fun:my_b_flush_io_cache
829 fun:_Z8filesortP3THDP8st_tableP13st_sort_fieldjP10SQL_SELECTybPy