MDL_map::m_backup_log and m_binlog_lock are not deallocated

Bug #1285064 reported by Laurynas Biveinis on 2014-02-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.6
5.1
Undecided
Unassigned
5.5
Undecided
Unassigned
5.6
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

lp:~akopytov/percona-server/bug1285064
Alexey Kopytov (community): Approve on 2014-02-26
tags: added: low-hanging-fruit
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers