ha_partition::init_record_priority_queue(): Assertion `!m_ordered_rec_buffer' failed. | UNIV_DEBUG
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL patches by Codership |
New
|
Undecided
|
Unassigned | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
New
|
Undecided
|
Unassigned | |||
5.6 |
New
|
Undecided
|
Unassigned |
Bug Description
Test:
./gentest.pl --dsn=dbi:
Backtrace:
#0 __pthread_kill (threadid=
#1 0x0000000000a96afc in my_write_core (sig=6) at /home/teemu/
#2 0x0000000000727f17 in handle_fatal_signal (sig=6)
at /home/teemu/
#3 <signal handler called>
#4 0x00007fd73002a425 in __GI_raise (sig=<optimized out>) at ../nptl/
#5 0x00007fd73002db8b in __GI_abort () at abort.c:91
#6 0x00007fd7300230ee in __assert_fail_base (fmt=<optimized out>, assertion=0x10ce181 "!m_ordered_
file=0x10cce20 "/home/
function=
#7 0x00007fd730023192 in __GI___assert_fail (assertion=
file=0x10cce20 "/home/
function=
#8 0x0000000000df0b82 in ha_partition:
at /home/teemu/
#9 0x0000000000df0fc6 in ha_partition:
at /home/teemu/
#10 0x00000000006400ca in handler:
at /home/teemu/
#11 0x0000000000962033 in QUICK_RANGE_
at /home/teemu/
#12 0x000000000091f351 in find_all_keys (param=
buffpek_
at /home/teemu/
#13 0x000000000091dfe8 in filesort (thd=0x1efe200, table=0x7fd6a40
examined_
at /home/teemu/
#14 0x00000000007a9eee in create_sort_index (thd=0x1efe200, join=0x7fd6ac02
at /home/teemu/
#15 0x00000000007a7ab1 in st_join_
at /home/teemu/
#16 0x00000000007a75b6 in join_init_
at /home/teemu/
#17 0x00000000007a4ed1 in sub_select (join=0x7fd6ac0
at /home/teemu/
#18 0x00000000007a4908 in do_select (join=0x7fd6ac0
at /home/teemu/
#19 0x00000000007a28df in JOIN::exec (this=0x7fd6ac0
at /home/teemu/
#20 0x0000000000802dbd in mysql_execute_
at /home/teemu/
#21 0x00000000008030a2 in mysql_select (thd=0x1efe200, tables=
order=
select_
#22 0x00000000008011b2 in handle_select (thd=0x1efe200, result=
at /home/teemu/
#23 0x00000000007d5b99 in mysql_execute_
at /home/teemu/
#24 0x00000000007de5de in mysql_parse (thd=0x1efe200,
rawbuf=
parser_
#25 0x00000000007ddc3a in wsrep_mysql_parse (thd=0x1efe200,
rawbuf=
parser_
#26 0x00000000007d0252 in dispatch_command (command=COM_QUERY, thd=0x1efe200,
packet=
at /home/teemu/
#27 0x00000000007cee16 in do_command (thd=0x1efe200)
at /home/teemu/
#28 0x000000000079841b in do_handle_
at /home/teemu/
#29 0x0000000000797eb9 in handle_
at /home/teemu/
#30 0x00007fd730bcce9a in start_thread (arg=0x7fd71c1e
#31 0x00007fd7300e7ccd in clone () at ../sysdeps/
#32 0x0000000000000000 in ?? ()
(gdb) f 8
#8 0x0000000000df0b82 in ha_partition:
at /home/teemu/
4873 DBUG_ASSERT(
(gdb) p m_ordered_
$1 = (uchar *) 0x7fd6a40362c0 ""
summary: |
- mysqld: /home/teemu/codership/galera/bzr/codership- - mysql/5.6/sql/ha_partition.cc:4873: bool ha_partition::init_record_priority_queue(): Assertion `!m_ordered_rec_buffer' failed. |
summary: |
ha_partition::init_record_priority_queue(): Assertion - `!m_ordered_rec_buffer' failed. + `!m_ordered_rec_buffer' failed | UNIV_DEBUG |
summary: |
ha_partition::init_record_priority_queue(): Assertion - `!m_ordered_rec_buffer' failed | UNIV_DEBUG + `!m_ordered_rec_buffer' failed. | UNIV_DEBUG |
Was able to reproduce this again. Attach the general log, backtrace and error log.
Of special interest is:
DELETE FROM `table100_ innodb_ key_pk_ parts_2_ int_autoinc` WHERE `col_char_12_key` = 'i' ORDER BY `col_char_ 12`,`col_ char_12_ key`,`col_ int`,`col_ int_key` ,`pk` LIMIT 4 innodb_ key_pk_ parts_2_ int_autoinc` AS X SET `col_char_12` = 'l' ORDER BY `col_char_ 12`,`col_ char_12_ key`,`col_ int`,`col_ int_key` ,`pk` LIMIT 7
UPDATE `table100_
the first query caused the crash, so may be useful to reproduce
this issue. (concurrent delete with update).