enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #05607
[Bug 1603978] [NEW] LeakSanitizer-enabled build fails to bootstrap server for MTR
Public bug reported:
Copy of http://bugs.mysql.com/bug.php?id=81674:
[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://bugs.mysql.com/bug.php?id=80014
ASAN_OPTIONS="detect_leaks=0" make -j5
...
$ ./mtr --debug-server 1st
...
Installing system database...
mysql-test-run: *** ERROR: Error executing mysqld --bootstrap
...
var/log/bootstrap.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/x86_64-linux-gnu/libasan.so.2+0x9854a)
#1 0x1479423 in ut_malloc_low(unsigned long, unsigned long) /home/laurynas/mysql-server/storage/innobase/ut/ut0mem.cc:104
#2 0x147b9eb in rbt_create(unsigned long, int (*)(void const*, void const*)) /home/laurynas/mysql-server/storage/innobase/ut/ut0rbt.cc:802
#3 0x150e7c7 in buf_flush_init_flush_rbt() /home/laurynas/mysql-server/storage/innobase/buf/buf0flu.cc:309
#4 0x1265654 in recv_sys_init(unsigned long) /home/laurynas/mysql-server/storage/innobase/log/log0recv.cc:394
#5 0x13fcf86 in innobase_start_or_create_for_mysql() /home/laurynas/mysql-server/storage/innobase/srv/srv0start.cc:2087
#6 0x11a0857 in innobase_init /home/laurynas/mysql-server/storage/innobase/handler/ha_innodb.cc:3428
#7 0x5b77ee in ha_initialize_handlerton(st_plugin_int*) /home/laurynas/mysql-server/sql/handler.cc:662
#8 0x9cbfd6 in plugin_initialize /home/laurynas/mysql-server/sql/sql_plugin.cc:1137
#9 0x9d8f21 in plugin_init(int*, char**, int) /home/laurynas/mysql-server/sql/sql_plugin.cc:1431
#10 0x59a8f0 in init_server_components /home/laurynas/mysql-server/sql/mysqld.cc:4866
#11 0x59a8f0 in mysqld_main(int, char**) /home/laurynas/mysql-server/sql/mysqld.cc:5463
#12 0x57e50e in main /home/laurynas/mysql-server/sql/main.cc:25
#13 0x7ff89a1e382f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7ff89b72054a in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9854a)
#1 0x1479423 in ut_malloc_low(unsigned long, unsigned long) /home/laurynas/mysql-server/storage/innobase/ut/ut0mem.cc:104
#2 0x147ba2e in rbt_create(unsigned long, int (*)(void const*, void const*)) /home/laurynas/mysql-server/storage/innobase/ut/ut0rbt.cc:808
#3 0x150e7c7 in buf_flush_init_flush_rbt() /home/laurynas/mysql-server/storage/innobase/buf/buf0flu.cc:309
#4 0x1265654 in recv_sys_init(unsigned long) /home/laurynas/mysql-server/storage/innobase/log/log0recv.cc:394
#5 0x13fcf86 in innobase_start_or_create_for_mysql() /home/laurynas/mysql-server/storage/innobase/srv/srv0start.cc:2087
#6 0x11a0857 in innobase_init /home/laurynas/mysql-server/storage/innobase/handler/ha_innodb.cc:3428
#7 0x5b77ee in ha_initialize_handlerton(st_plugin_int*) /home/laurynas/mysql-server/sql/handler.cc:662
#8 0x9cbfd6 in plugin_initialize /home/laurynas/mysql-server/sql/sql_plugin.cc:1137
#9 0x9d8f21 in plugin_init(int*, char**, int) /home/laurynas/mysql-server/sql/sql_plugin.cc:1431
#10 0x59a8f0 in init_server_components /home/laurynas/mysql-server/sql/mysqld.cc:4866
#11 0x59a8f0 in mysqld_main(int, char**) /home/laurynas/mysql-server/sql/mysqld.cc:5463
#12 0x57e50e in main /home/laurynas/mysql-server/sql/main.cc:25
#13 0x7ff89a1e382f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x7ff89b72054a in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9854a)
#1 0x1479423 in ut_malloc_low(unsigned long, unsigned long) /home/laurynas/mysql-server/storage/innobase/ut/ut0mem.cc:104
#2 0x147bae9 in rbt_create(unsigned long, int (*)(void const*, void const*)) /home/laurynas/mysql-server/storage/innobase/ut/ut0rbt.cc:816
#3 0x150e7c7 in buf_flush_init_flush_rbt() /home/laurynas/mysql-server/storage/innobase/buf/buf0flu.cc:309
#4 0x1265654 in recv_sys_init(unsigned long) /home/laurynas/mysql-server/storage/innobase/log/log0recv.cc:394
#5 0x13fcf86 in innobase_start_or_create_for_mysql() /home/laurynas/mysql-server/storage/innobase/srv/srv0start.cc:2087
#6 0x11a0857 in innobase_init /home/laurynas/mysql-server/storage/innobase/handler/ha_innodb.cc:3428
#7 0x5b77ee in ha_initialize_handlerton(st_plugin_int*) /home/laurynas/mysql-server/sql/handler.cc:662
#8 0x9cbfd6 in plugin_initialize /home/laurynas/mysql-server/sql/sql_plugin.cc:1137
#9 0x9d8f21 in plugin_init(int*, char**, int) /home/laurynas/mysql-server/sql/sql_plugin.cc:1431
#10 0x59a8f0 in init_server_components /home/laurynas/mysql-server/sql/mysqld.cc:4866
#11 0x59a8f0 in mysqld_main(int, char**) /home/laurynas/mysql-server/sql/mysqld.cc:5463
#12 0x57e50e in main /home/laurynas/mysql-server/sql/main.cc:25
#13 0x7ff89a1e382f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
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
** Affects: mysql-server
Importance: Unknown
Status: Unknown
** Affects: percona-server
Importance: Undecided
Status: Invalid
** Affects: percona-server/5.5
Importance: Undecided
Status: Invalid
** Affects: percona-server/5.6
Importance: Medium
Assignee: Laurynas Biveinis (laurynas-biveinis)
Status: In Progress
** Affects: percona-server/5.7
Importance: Undecided
Status: Invalid
** Tags: asan ci upstream
** Also affects: percona-server/5.5
Importance: Undecided
Status: New
** Also affects: percona-server/5.6
Importance: Undecided
Status: New
** Also affects: percona-server/5.7
Importance: Undecided
Status: New
** Changed in: percona-server/5.6
Assignee: (unassigned) => Laurynas Biveinis (laurynas-biveinis)
** Changed in: percona-server/5.6
Importance: Undecided => Medium
** Changed in: percona-server/5.6
Status: New => In Progress
** Changed in: percona-server/5.5
Status: New => Invalid
** Changed in: percona-server/5.7
Status: New => Invalid
** Tags added: asan ci upstream
** Bug watch added: MySQL Bug System #81674
http://bugs.mysql.com/bug.php?id=81674
** Also affects: mysql-server via
http://bugs.mysql.com/bug.php?id=81674
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to MySQL.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1603978
Title:
LeakSanitizer-enabled build fails to bootstrap server for MTR
To manage notifications about this bug go to:
https://bugs.launchpad.net/mysql-server/+bug/1603978/+subscriptions
Follow ups