MDL_map::m_backup_log and m_binlog_lock are not deallocated

Bug #1285064 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Medium
Alexey Kopytov
5.1
Invalid
Undecided
Unassigned
5.5
Invalid
Undecided
Unassigned
5.6
Fix Released
Medium
Alexey Kopytov

Bug Description

$ ./mysql-test-run 1st --valgrind
...
608 bytes in 1 blocks are still reachable in loss record 263 of 364
   at 0x4C2AB7B: operator new(unsigned long, std::nothrow_t const&) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x711ED1: MDL_lock::create(MDL_key const*, MDL_map_partition*) (mdl.cc:1208)
   by 0x70D6BB: MDL_map::init() (mdl.cc:721)
   by 0x70D597: mdl_init() (mdl.cc:689)
   by 0x618EAB: init_server_components() (mysqld.cc:4692)
   by 0x61A8CE: mysqld_main(int, char**) (mysqld.cc:5586)
   by 0x60F46C: main (main.cc:25)

608 bytes in 1 blocks are still reachable in loss record 264 of 364
   at 0x4C2AB7B: operator new(unsigned long, std::nothrow_t const&) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x711ED1: MDL_lock::create(MDL_key const*, MDL_map_partition*) (mdl.cc:1208)
   by 0x70D6DA: MDL_map::init() (mdl.cc:722)
   by 0x70D597: mdl_init() (mdl.cc:689)
   by 0x618EAB: init_server_components() (mysqld.cc:4692)
   by 0x61A8CE: mysqld_main(int, char**) (mysqld.cc:5586)
   by 0x60F46C: main (main.cc:25)

...

This is caused by MDL_map::destroy missing MDL_lock::destroy calls for these two fields.

Related branches

tags: added: low-hanging-fruit
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1480

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.