Assertion `pending || ttp->thd' failed in sql/sql_timer.cc:193
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Invalid
|
Undecided
|
Unassigned | |||
5.5 |
Invalid
|
Undecided
|
Unassigned | |||
5.6 |
Triaged
|
High
|
Unassigned | |||
5.7 |
Triaged
|
High
|
Unassigned |
Bug Description
** Testcase
DROP DATABASE test;CREATE DATABASE test;USE test;
SET @@SESSION.
select get_lock(
SELECT table_name, table_rows, data_length, max_data_length, data_free FROM information_
To reproduce the issue we need to run multi thread pquery binary. The attached tarball gives the testcase as an exact match of our system, including some handy utilities
$ vi {epoch}_mybase # Update base path in this file (the only change
required!)
$ ./{epoch}_init # Initializes the data dir
$ ./{epoch}_start # Starts mysqld
$ ./{epoch}_cl # To check mysqld is up
$ ./{epoch}
output)
$ vi /dev/shm/
$ ./{epoch}_gdb # Brings you to a gdb prompt attached to correct
mysqld
& generated core
$ ./{epoch}
standard and full var gdb stack traces
etc.
PS : No extra star-up variable is required to reproduce this issue
*GDB info
#0 0x00007ff87208a771 in pthread_kill () from /lib64/
#1 0x0000000000ab97ca in my_write_core (sig=6) at /mnt/workspace/
#2 0x00000000007301a3 in handle_fatal_signal (sig=6) at /mnt/workspace/
#3 <signal handler called>
#4 0x00007ff870c8e5c9 in raise () from /lib64/libc.so.6
#5 0x00007ff870c8fcd8 in abort () from /lib64/libc.so.6
#6 0x00007ff870c87536 in __assert_fail_base () from /lib64/libc.so.6
#7 0x00007ff870c875e2 in __assert_fail () from /lib64/libc.so.6
#8 0x00000000008de7fb in reap_timer (ttp=0x7ff849c8
#9 0x00000000008de8a8 in thd_timer_reset (ttp=0x7ff849c8
#10 0x00000000007df113 in reset_statement
#11 0x00000000007ea882 in mysql_execute_
#12 0x00000000007edf41 in mysql_parse (thd=0x7ff8597d
#13 0x00000000007dfdb7 in dispatch_command (command=COM_QUERY, thd=0x7ff8597de000, packet=
#14 0x00000000007decd5 in do_command (thd=0x7ff8597d
#15 0x00000000007a6c4d in do_handle_
#16 0x00000000007a6755 in handle_
#17 0x0000000000dc9e6c in pfs_spawn_thread (arg=0x7ff86b74
#18 0x00007ff872085df3 in start_thread () from /lib64/
#19 0x00007ff870d4f1ad in clone () from /lib64/libc.so.6
no longer affects: | percona-server/5.5 |
no longer affects: | percona-server/5.1 |
You may have to wait up to 5 minutes after running ./{epoch} _run_pquery to get the crash.