Bug #53545 shutdown SEGVs if InnoDB is started with --innodb-use-sys-malloc=0
Submitted: 10 May 2010 17:01 Modified: 11 May 2010 15:32
Reporter: Mikhail Izioumtchenko Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: InnoDB Plugin storage engine Severity:S2 (Serious)
Version:1.0 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[10 May 2010 17:01] Mikhail Izioumtchenko
Description:
InnoDB coredumps in shutdown when started with --innodb-use-sys-malloc=0:

 #0  0x0000003c1ae0b9b2 in pthread_kill () from /lib64/libpthread.so.0
 #1  0x00000000009e34db in my_write_core (sig=11)
     at /spare2/mizioumt/ctc/mysql_src_c55/mysys/stacktrace.c:326
 #2  0x0000000000531b55 in handle_segfault (sig=11)
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/mysqld.cc:2786
 #3  <signal handler called>
 #4  0x00000000008a07a1 in ut_free (ptr=0x2aaaabc73030)
     at /spare2/mizioumt/ctc/mysql_src_c55/storage/innobase/ut/ut0mem.c:315
 #5  0x000000000091d7d0 in mem_pool_free (pool=0x88fe310)
     at /spare2/mizioumt/ctc/mysql_src_c55/storage/innobase/mem/mem0pool.c:276
 #6  0x000000000091bff2 in mem_close ()
     at /spare2/mizioumt/ctc/mysql_src_c55/storage/innobase/mem/mem0dbg.c:187
 #7  0x0000000000880db2 in innobase_shutdown_for_mysql ()
     at /spare2/mizioumt/ctc/mysql_src_c55/storage/innobase/srv/srv0start.c:2097
 #8  0x0000000000847ed3 in innobase_end (hton=0x88cac90, type=HA_PANIC_CLOSE)
     at /spare2/mizioumt/ctc/mysql_src_c55/storage/innobase/handler/ha_innodb.cc:2474
 #9  0x00000000006f53f2 in ha_finalize_handlerton (plugin=0x88fb590)
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/handler.cc:419
 #10 0x00000000005bd2e7 in plugin_deinitialize (plugin=0x88fb590,
     ref_check=true) at /spare2/mizioumt/ctc/mysql_src_c55/sql/sql_plugin.cc:866
 #11 0x00000000005bd79a in reap_plugins ()
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/sql_plugin.cc:954
 #12 0x00000000005bfba5 in plugin_shutdown ()
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/sql_plugin.cc:1641
 #13 0x00000000005307bb in clean_up (print_message=true)
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/mysqld.cc:1503
 #14 0x0000000000532013 in unireg_abort (exit_code=7)
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/mysqld.cc:1437
 #15 0x00000000005349df in init_server_components ()
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/mysqld.cc:4171
 #16 0x00000000005355d2 in mysqld_main (argc=50, argv=0x88c9f68)
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/mysqld.cc:4740
 #17 0x000000000052afa3 in main (argc=30, argv=0x7fff4eb2cff8)
     at /spare2/mizioumt/ctc/mysql_src_c55/sql/main.cc:24

pool->buf is bad

How to repeat:
start mysqld with --innodb-use-sys-malloc=0,
try normal shutdown
[11 May 2010 7:29] MySQL Verification Team
looks like bug #52546