← Back to team overview

percona-discussion team mailing list archive

[Bug 375023] [NEW] mysqld crashes when trying to load xtradb plugin at runtime

 

Public bug reported:

i am building stock mysql-5.1.34 and xtradb-plugin-1.0.3-5  with
mysql-5.1.34 as a dynamic plugin (ha_innodb.so) . i am not using --with-
debug while configuring.

built went fine .. and i have "ignore-builtin-innodb" in .cnf file to
completely ignore builtin innodb ..

when trying to start server with having ha_innodb.so in plugin
directory, it throws coredump

and the backtrace here ..

(gdb) info stack
#0  0x00000000008bd426 in trx_roll_savepoint_free ()
#1  0x00000000008bd4b0 in trx_roll_savepoints_free ()
#2  0x0000002a9fdba6f6 in trx_commit_off_kernel () from /usr/lib64/mysql/plugin/ha_innodb.so
#3  0x0000002a9fdbb1c9 in trx_sig_start_handle () from /usr/lib64/mysql/plugin/ha_innodb.so
#4  0x0000002a9fd76017 in que_thr_dec_refer_count () from  /usr/lib64/mysql/plugin/ha_innodb.so
#5  0x0000002a9fd7653b in que_run_threads () from /usr/lib64/mysql/plugin/ha_innodb.so
#6  0x0000002a9fd76d07 in que_eval_sql () from  /usr/lib64/mysql/plugin/ha_innodb.so
#7  0x0000002a9fd822bf in row_merge_drop_temp_indexes () from  /usr/lib64/mysql/plugin/ha_innodb.so
#8  0x0000002a9fd51933 in recv_recovery_from_checkpoint_finish () from  /usr/lib64/mysql/plugin/ha_innodb.so
#9  0x0000002a9fda4a53 in innobase_start_or_create_for_mysql () from / usr/lib64/mysql/plugin/ha_innodb.so
#10 0x0000002a9fdc600c in innobase_init () from /usr/lib64/mysql/plugin/ha_innodb.so
#11 0x000000000073e2c0 in ha_initialize_handlerton ()
#12 0x00000000007cd6a9 in plugin_initialize ()
#13 0x00000000007cdcda in plugin_init ()
#14 0x00000000006367d6 in init_server_components ()
#15 0x0000000000636fab in main ()


Breakpoint 1, 0x00000000008bd490 in trx_roll_savepoints_free ()
(gdb) info frame
Stack level 0, frame at 0x7fbfff8fd0:
 rip = 0x8bd490 in trx_roll_savepoints_free; saved rip 0x2a9fdba6f6
 called by frame at 0x7fbfff9500
 Arglist at 0x7fbfff8fc0, args: 
 Locals at 0x7fbfff8fc0, Previous frame's sp is 0x7fbfff8fd0
 Saved registers:
  rip at 0x7fbfff8fc8
(gdb) info args
No symbol table info available.
(gdb) next
Single stepping until exit from function trx_roll_savepoints_free, 
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x00000000008bd426 in trx_roll_savepoint_free ()


to debug this, i built all the binaries again with --with-debug and when trying to start server, it starts very fine without any error .. very strange .. 

so i have no clue how to debug this ..

please let me know if i need to provide more information to debug this
..

** Affects: percona-xtradb
     Importance: Undecided
         Status: New

-- 
mysqld crashes when trying to load xtradb plugin at runtime
https://bugs.launchpad.net/bugs/375023
You received this bug notification because you are a member of Percona
developers, which is the registrant for Percona-XtraDB.

Status in Percona XtraDB Storage Engine for MySQL: New

Bug description:
i am building stock mysql-5.1.34 and xtradb-plugin-1.0.3-5  with mysql-5.1.34 as a dynamic plugin (ha_innodb.so) . i am not using --with-debug while configuring.

built went fine .. and i have "ignore-builtin-innodb" in .cnf file to completely ignore builtin innodb .. 

when trying to start server with having ha_innodb.so in plugin directory, it throws coredump

and the backtrace here .. 

(gdb) info stack
#0  0x00000000008bd426 in trx_roll_savepoint_free ()
#1  0x00000000008bd4b0 in trx_roll_savepoints_free ()
#2  0x0000002a9fdba6f6 in trx_commit_off_kernel () from /usr/lib64/mysql/plugin/ha_innodb.so
#3  0x0000002a9fdbb1c9 in trx_sig_start_handle () from /usr/lib64/mysql/plugin/ha_innodb.so
#4  0x0000002a9fd76017 in que_thr_dec_refer_count () from  /usr/lib64/mysql/plugin/ha_innodb.so
#5  0x0000002a9fd7653b in que_run_threads () from /usr/lib64/mysql/plugin/ha_innodb.so
#6  0x0000002a9fd76d07 in que_eval_sql () from  /usr/lib64/mysql/plugin/ha_innodb.so
#7  0x0000002a9fd822bf in row_merge_drop_temp_indexes () from  /usr/lib64/mysql/plugin/ha_innodb.so
#8  0x0000002a9fd51933 in recv_recovery_from_checkpoint_finish () from  /usr/lib64/mysql/plugin/ha_innodb.so
#9  0x0000002a9fda4a53 in innobase_start_or_create_for_mysql () from / usr/lib64/mysql/plugin/ha_innodb.so
#10 0x0000002a9fdc600c in innobase_init () from /usr/lib64/mysql/plugin/ha_innodb.so
#11 0x000000000073e2c0 in ha_initialize_handlerton ()
#12 0x00000000007cd6a9 in plugin_initialize ()
#13 0x00000000007cdcda in plugin_init ()
#14 0x00000000006367d6 in init_server_components ()
#15 0x0000000000636fab in main ()


Breakpoint 1, 0x00000000008bd490 in trx_roll_savepoints_free ()
(gdb) info frame
Stack level 0, frame at 0x7fbfff8fd0:
 rip = 0x8bd490 in trx_roll_savepoints_free; saved rip 0x2a9fdba6f6
 called by frame at 0x7fbfff9500
 Arglist at 0x7fbfff8fc0, args: 
 Locals at 0x7fbfff8fc0, Previous frame's sp is 0x7fbfff8fd0
 Saved registers:
  rip at 0x7fbfff8fc8
(gdb) info args
No symbol table info available.
(gdb) next
Single stepping until exit from function trx_roll_savepoints_free, 
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x00000000008bd426 in trx_roll_savepoint_free ()


to debug this, i built all the binaries again with --with-debug and when trying to start server, it starts very fine without any error .. very strange .. 

so i have no clue how to debug this .. 

please let me know if i need to provide more information to debug this ..



Follow ups

References