Percona Server crashes upon startup after INSTALL PLUGIN

Bug #1213916 reported by Shlomi Noach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
New
Undecided
Unassigned

Bug Description

After installing an audit plugin via INSTALL plugin (installation good & working), a successful shutdown to the server is performed.
The next startup crashes with:

====
130819 15:34:49 mysqld_safe Starting mysqld daemon with databases from /home/snoach/sandboxes/55percona/data
12:34:49 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona Server better by reporting any
bugs at http://bugs.percona.com/

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 342989 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7fffb61c1590
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fffb61c46c0 thread_stack 0x40000
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(my_print_stacktrace+0x35)[0x7e7725]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(handle_fatal_signal+0x3f4)[0x6a2554]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7f0778be5cb0]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(my_hash_insert+0x25c)[0x7d01fc]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(_ZN7handler25update_global_table_statsEv+0x283)[0x6a9a13]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(_Z18close_thread_tableP3THDPP5TABLE+0x3a6)[0x548bd6]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(_Z19close_thread_tablesP3THD+0x170)[0x548fc0]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(_Z18close_mysql_tablesP3THD+0x18)[0x549048]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(_Z11plugin_initPiPPci+0x115c)[0x594b9c]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld[0x50cde8]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld(_Z11mysqld_mainiPPc+0x8d8)[0x50e018]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f07776bc76d]
/home/snoach/sandboxes/5.5.32-percona/bin/mysqld[0x503f49]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): Connection ID (thread ID): 0
Status: NOT_KILLED

====
This leads to:
===
  if (unlikely(opt_userstat))
  {
    table->file->update_global_table_stats();
    table->file->update_global_index_stats();
  }
===
where the crash occurs.

The plugin at hand is simple enough to be almost identical to the null_audit_plugin provided with source code.
===
When plugin is loaded with 'plugin_load=...' option in my.cnf all works well.
===
Tested with Percona Server 5.5.32 (plugin compiled with same version)

Tags: crash plugin
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

It's yet another occurrence of bug 1011047.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.