Allocator/deallocator mismatch in User_var_log_event::print
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Fix Released
|
Medium
|
Laurynas Biveinis | |||
5.6 |
Invalid
|
Medium
|
Unassigned | |||
5.7 |
Invalid
|
Medium
|
Unassigned |
Bug Description
It shows up as an Address Sanitizer error on rpl_mdev382, binlog_
rpl.rpl_mdev382 'stmt' w4 [ fail ]
...
Test ended at 2016-05-23 06:37:22
CURRENT_TEST: rpl.rpl_mdev382
=======
==25558==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 203 byte(s) in 1 object(s) allocated from:
#0 0x7f40cb9c054a in malloc (/usr/lib/
#1 0x49798b in my_malloc /mnt/workspace/
#2 0x417ea1 in User_var_
#3 0x42d4a1 in process_
#4 0x42f52d in dump_local_
#5 0x42f52d in dump_log_entries /mnt/workspace/
#6 0x42fc89 in main /mnt/workspace/
#7 0x7f40ca1f582f in __libc_start_main (/lib/x86_
SUMMARY: AddressSanitizer: 203 byte(s) leaked in 1 allocation(s).
mysqltest: At line 171: command "$MYSQL_BINLOG --short-form --start-
This is caused by
void User_var_
{
...
hex_str= (char *)my_malloc(
...
my_
...
}
my_afree should be my_free. This bug is a Percona merge regresion.
tags: | added: asan merge-regression |
https:/ /github. com/percona/ percona- server/ pull/562, https:/ /github. com/percona/ percona- server/ pull/563, https:/ /github. com/percona/ percona- server/ pull/564