mysqld cleanup segfaults when rsync SST fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Fix Released
|
Low
|
Seppo Jaakola | ||
5.1 |
Fix Released
|
High
|
Alex Yurchenko | ||
5.5 |
Fix Released
|
Low
|
Seppo Jaakola |
Bug Description
From the codership mailing list:
I use ./mysql-galera -g gcomm:/
node successfully,
But when I use ./mysql-galera -g gcomm:/
second node, the mysqld coredump.
The bt output of gdb libexec/mysqld var/core is
(gdb) bt
#0 0x00000033d660b9b2 in pthread_kill () from /lib64/
#1 0x00000000005e2a56 in handle_segfault (sig=11) at mysqld.cc:2722
#2 <signal handler called>
#3 plugin_thdvar_init (thd=0x2e308f0) at sql_plugin.cc:664
#4 0x0000000002e32410 in ?? ()
#5 0x0000000002e308f0 in ?? ()
#6 0x0000000002e32410 in ?? ()
#7 0x0000000002e33328 in ?? ()
#8 0x00007fff02cf0e70 in ?? ()
#9 0x00000000005d1110 in THD::init (this=0x2e30de8) at sql_class.cc:984
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Error log:
111110 19:37:09 [ERROR] WSREP: Could not prepare state transfer request: failed to guess address to accept state transfer at. wsrep_sst_
111110 19:37:09 [ERROR] Aborting
...
111110 19:37:10 [Note] WSREP: rollbacker thread exiting
111110 19:37:11 [Note] WSREP: Some threads may fail to exit.
111110 19:37:11 InnoDB: Starting shutdown...
111110 19:37:11 - mysqld got signal 11 ;
The cause: thdvar_ init" cc:2540) , the value of system_ variables. table_plugin is "NULL", which leades to the
> When the server run in the function "plugin_
> (sql_plugin.
> global_
> crash.
> The same reason can lead to coredump in thdvar_ init(sql_ plugin. cc), acl_getroot( sql_acl. cc) and errors( hostname. cc).
> plugin_
> inc_host_