LeakSanitizer-enabled build fails to bootstrap server for MTR
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 |
Invalid
|
Undecided
|
Unassigned | |||
5.6 |
Fix Released
|
Medium
|
Laurynas Biveinis | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Copy of http://
[1 Jun 11:12] Laurynas Biveinis
Description:
If the server is built with AddressSanitizer support on a system where LeakSanitizer is enabled too, the resulting server will fail to bootstrap server for MTR
How to repeat:
cmake ... -DWITH_ASAN=ON ...
# Workaround http://
ASAN_OPTIONS=
...
$ ./mtr --debug-server 1st
...
Installing system database...
mysql-test-run: *** ERROR: Error executing mysqld --bootstrap
...
var/log/
=======
==4792==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 56 byte(s) in 1 object(s) allocated from:
#0 0x7ff89b72054a in malloc (/usr/lib/
#1 0x1479423 in ut_malloc_
#2 0x147b9eb in rbt_create(unsigned long, int (*)(void const*, void const*)) /home/laurynas/
#3 0x150e7c7 in buf_flush_
#4 0x1265654 in recv_sys_
#5 0x13fcf86 in innobase_
#6 0x11a0857 in innobase_init /home/laurynas/
#7 0x5b77ee in ha_initialize_
#8 0x9cbfd6 in plugin_initialize /home/laurynas/
#9 0x9d8f21 in plugin_init(int*, char**, int) /home/laurynas/
#10 0x59a8f0 in init_server_
#11 0x59a8f0 in mysqld_main(int, char**) /home/laurynas/
#12 0x57e50e in main /home/laurynas/
#13 0x7ff89a1e382f in __libc_start_main (/lib/x86_
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7ff89b72054a in malloc (/usr/lib/
#1 0x1479423 in ut_malloc_
#2 0x147ba2e in rbt_create(unsigned long, int (*)(void const*, void const*)) /home/laurynas/
#3 0x150e7c7 in buf_flush_
#4 0x1265654 in recv_sys_
#5 0x13fcf86 in innobase_
#6 0x11a0857 in innobase_init /home/laurynas/
#7 0x5b77ee in ha_initialize_
#8 0x9cbfd6 in plugin_initialize /home/laurynas/
#9 0x9d8f21 in plugin_init(int*, char**, int) /home/laurynas/
#10 0x59a8f0 in init_server_
#11 0x59a8f0 in mysqld_main(int, char**) /home/laurynas/
#12 0x57e50e in main /home/laurynas/
#13 0x7ff89a1e382f in __libc_start_main (/lib/x86_
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7ff89b72054a in malloc (/usr/lib/
#1 0x1479423 in ut_malloc_
#2 0x147bae9 in rbt_create(unsigned long, int (*)(void const*, void const*)) /home/laurynas/
#3 0x150e7c7 in buf_flush_
#4 0x1265654 in recv_sys_
#5 0x13fcf86 in innobase_
#6 0x11a0857 in innobase_init /home/laurynas/
#7 0x5b77ee in ha_initialize_
#8 0x9cbfd6 in plugin_initialize /home/laurynas/
#9 0x9d8f21 in plugin_init(int*, char**, int) /home/laurynas/
#10 0x59a8f0 in init_server_
#11 0x59a8f0 in mysqld_main(int, char**) /home/laurynas/
#12 0x57e50e in main /home/laurynas/
#13 0x7ff89a1e382f in __libc_start_main (/lib/x86_
SUMMARY: AddressSanitizer: 136 byte(s) leaked in 3 allocation(s).
[1 Jun 11:13] Laurynas Biveinis
A 5.6-only issue; 5.5 and 5.7 bootstrap OK
tags: | added: asan ci upstream |
https:/ /github. com/percona/ percona- server/ pull/677, https:/ /github. com/percona/ percona- server/ pull/678