Assertion failure on set_eof_status from ha_show_status

Bug #1043620 reported by Raghavendra D Prabhu on 2012-08-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.7
5.1
Undecided
Unassigned
5.5
High
Unassigned
5.6
Undecided
Unassigned
5.7
High
Unassigned

Bug Description

While testing for bug 1040735, I hit the assertion on a UNIV_DEBUG enabled binary:

===========================================
mysqld: /media/Vone/percona-server/origin/Percona-Server/sql/sql_error.cc:387: void Diagnostics_area::set_eof_status(THD*): Assertion `! is_set()' failed.
16:38:30 UTC - mysqld got signal 6 ;
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=67108864
read_buffer_size=131072
max_used_connections=168
max_threads=10000
thread_count=53
connection_count=53
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 21948348 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x4605c40
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 = 7f20d7efae68 thread_stack 0x40000
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(my_print_stacktrace+0x2e)[0x7d7195]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(handle_fatal_signal+0x2f1)[0x6ad0a1]
/lib/libpthread.so.0(+0xf170)[0x7f2144bd1170]
/lib/libc.so.6(gsignal+0x35)[0x7f2143188fa5]
/lib/libc.so.6(abort+0x148)[0x7f214318a428]
/lib/libc.so.6(+0x2e002)[0x7f2143182002]
/lib/libc.so.6(+0x2e0b2)[0x7f21431820b2]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(_ZN16Diagnostics_area14set_eof_statusEP3THD+0x5a)[0x57b16c]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(_Z14ha_show_statusP3THDP10handlerton12ha_stat_type+0x41c)[0x6b5894]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(_Z21mysql_execute_commandP3THD+0xe9b)[0x595bfa]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x223)[0x59c7ea]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x7dd)[0x59d28a]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(_Z10do_commandP3THD+0x282)[0x59e75f]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(_Z24do_handle_one_connectionP3THD+0x10c)[0x648061]
/media/Vone/percona-server/raghu/Percona-Server/sql/mysqld(handle_one_connection+0x52)[0x648157]
/lib/libpthread.so.0(+0x7e0f)[0x7f2144bc9e0f]
/lib/libc.so.6(clone+0x6d)[0x7f214323804d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f20d8008010): is an invalid pointer
Connection ID (thread ID): 14220
Status: KILL_CONNECTION

You may download the Percona Server operations manual by visiting
http://www.percona.com/software/percona-server/. You may find information
in the manual which will help you identify the cause of the crash.
=================================================

It seemed to have hit:

DBUG_ASSERT(! is_set()); in my_eof

called from

if (!result)
    my_eof(thd); in ha_show_status.

There are couple of related upstream bugs (some of them fixed)

 http://bugs.mysql.com/bug.php?id=49765
http://bugs.mysql.com/47459
http://bugs.mysql.com/36135
http://bugs.mysql.com/bug.php?id=54401

but they are hit under different contexts.

Also, not sure if related to https://bugs.launchpad.net/bugs/1040735 but I disabled the assertion temporarily since I was hitting it consistently to look for point where 1040735 was failing.

Raghu, Stewart -

Do you have a repeatable testcase for this?

Laurynas Biveinis <email address hidden> writes:
> Raghu, Stewart -
>
> Do you have a repeatable testcase for this?

I got it to hit with a mysqlslap worload as well as one repeatedly
running some DDL and SHOW INNODB STATUS (the C test case for MySQL bug
6
.... )

--
Stewart Smith

I hit it under similar circumstance -- when running sysbench and C test case http://bugs.mysql.com/file.php?id=17153 of bug 60682 (with around 50 threads (needs to be changed in source), the test case runs 'show engine innodb status' a lot).

Needs to be re-verified

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

Other bug subscribers