memory leak in mysqlbinlog
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
||||
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Fix Released
|
Low
|
Laurynas Biveinis | |||
5.6 |
Fix Released
|
Low
|
Laurynas Biveinis | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This is a copy of https:/
rpl.rpl_
...
=======
==3018==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 88 byte(s) in 1 object(s) allocated from:
#0 0x7f573942c54a in malloc (/usr/lib/
#1 0x4b63a8 in my_malloc /home/laurynas/
#2 0x426229 in Log_event::operator new(unsigned long) /home/laurynas/
#3 0x426229 in Log_event:
#4 0x42d855 in dump_remote_
#5 0x42d855 in dump_log_entries /home/laurynas/
#6 0x42e8aa in main /home/laurynas/
#7 0x7f573853f82f in __libc_start_main (/lib/x86_
Indirect leak of 18 byte(s) in 1 object(s) allocated from:
#0 0x7f573942c54a in malloc (/usr/lib/
#1 0x4b63a8 in my_malloc /home/laurynas/
#2 0x4b6aa8 in my_strndup /home/laurynas/
#3 0x41dd7e in Rotate_
#4 0x426240 in Log_event:
#5 0x42d855 in dump_remote_
#6 0x42d855 in dump_log_entries /home/laurynas/
#7 0x42e8aa in main /home/laurynas/
#8 0x7f573853f82f in __libc_start_main (/lib/x86_
Fixed in 5.7 by
commit 6772eb52d666bfc
Author: Andrei Elkin <email address hidden>
Date: Fri Dec 11 17:14:06 2015 +0200
Bug#21697461 MEMORY LEAK IN MYSQLBINLOG
**Problem description**
At running mtr with a recently introduced --valgrind-clients
instances of not deallocated memory were revealed along the following
execution path:
Rotate_
The reason is turned down to be missed 'delete' for fake
(as defined by ev->when == 0) Rotate event
in case binlog is read from a running server (remote dumping).
**Fixed**
with calling the delete operator in proper places where
the fake Rotate event becomes out of interest at once after its reading,
that is its handling skips process_event().
That's done with care to clear the event's temp_buf.
tags: | added: asan ci upstream |
https:/ /github. com/percona/ percona- server/ pull/524, https:/ /github. com/percona/ percona- server/ pull/525, https:/ /github. com/percona/ percona- server/ pull/526