codership / galera

Synchronous multi-master replication library
GNU General Public License v2.0
448 stars 176 forks source link

Valgrind possibly lost memory in galera::ist::Sender::send #331

Open philip-galera opened 9 years ago

philip-galera commented 9 years ago

To reproduce:

perl mysql-test-run.pl --suite galera_3nodes  --force --max-test-fail=100 --retry=0   --valgrind-mysqld --valgrind-option=--gen-suppressions=all --valgrind-option=--leak-check=full --valgrind-option=--show-reachable=yes --valgrind-option=--show-leak-kinds=all --testcase-timeout=100   galera_ist_gcache_rollover

Produces:

64 bytes in 2 blocks are still reachable in loss record 183 of 383
   at 0x4A06C50: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x96326AE: state_map_insert (gu_dbug.c:438)
   by 0x9632795: code_state (gu_dbug.c:487)
   by 0x963307D: _gu_db_keyword_ (gu_dbug.c:1349)
   by 0x9739F7B: galera::ist::Sender::send(long, long) (ist.cpp:634)
   by 0x973A394: run_async_sender (ist.cpp:713)
   by 0x3E90C07539: start_thread (in /usr/lib64/libpthread-2.20.90.so)
   by 0x3E905045FC: clone (in /usr/lib64/libc-2.20.90.so)

160 bytes in 2 blocks are still reachable in loss record 244 of 383
   at 0x4A06C50: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x9632759: code_state (gu_dbug.c:482)
   by 0x963307D: _gu_db_keyword_ (gu_dbug.c:1349)
   by 0x9739F7B: galera::ist::Sender::send(long, long) (ist.cpp:634)
   by 0x973A394: run_async_sender (ist.cpp:713)
   by 0x3E90C07539: start_thread (in /usr/lib64/libpthread-2.20.90.so)
   by 0x3E905045FC: clone (in /usr/lib64/libc-2.20.90.so)
philip-galera commented 9 years ago

Multiple suppressions added to mysql-test/valgrind.supp . Please remove when fixing this ticket.