mysqltest memory leak on invalid replace_regex
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
|
Low
|
Laurynas Biveinis | |||
5.6 |
Fix Released
|
Low
|
Laurynas Biveinis | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
With LeakSanitizer-
main.mysqltest w2 [ fail ]
Test ended at 2016-05-23 07:10:28
CURRENT_TEST: main.mysqltest
sh: 1: illegal_command: not found
mysqltest: At line 2050: command "echo "--replace_regex a" | $MYSQL_TEST 2>&1" failed with wrong error: 23
which caused by
mysqltest: At line 1: Error parsing replace_regex "a"
=======
==23684==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 3072 byte(s) in 1 object(s) allocated from:
#0 0x7fdf8de5a54a in malloc (/usr/lib/
#1 0x48fc49 in my_malloc /home/laurynas/
#2 0x49146d in init_dynamic_array2 /home/laurynas/
#3 0x413b35 in init_replace_
#4 0x414c57 in do_get_
#5 0x426117 in main /home/laurynas/
#6 0x7fdf8d0d582f in __libc_start_main (/lib/x86_
SUMMARY: AddressSanitizer: 3072 byte(s) leaked in 1 allocation(s).
tags: | added: asan ci upstream |
https:/ /github. com/percona/ percona- server/ pull/579, https:/ /github. com/percona/ percona- server/ pull/580, https:/ /github. com/percona/ percona- server/ pull/581