Percona XtraDB Cluster - HA scalable solution for MySQL

ha_innodb.cc:5713: void wsrep_innobase_mysql_sort(int, uint, unsigned char*, unsigned int): Assertion `tmp_length == str_length' failed.

Reported by Raghavendra D Prabhu on 2013-10-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Status tracked in 5.6
5.6
Undecided
Teemu Ollakka
Percona XtraDB Cluster
Status tracked in Trunk
5.6
Undecided
Unassigned
Trunk
Undecided
Unassigned

Bug Description

mysqld: /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/storage/innobase/handler/ha_innodb.cc:5713: void wsrep_innobase_mysql_sort(int, uint, unsigned char*, unsigned int): Assertion `tmp_length == str_length' failed.
21:29:02 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=8388608
read_buffer_size=131072
max_used_connections=13
max_threads=153
thread_count=13
connection_count=13
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 69219 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x3726ca0
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 = 7eff7847aed8 thread_stack 0x40000
/pxc56/bin/mysqld(my_print_stacktrace+0x2c)[0x946ae8]
/pxc56/bin/mysqld(handle_fatal_signal+0x304)[0x6da084]
/usr/lib/libpthread.so.0(+0xf870)[0x7eff8ce5a870]
/usr/lib/libc.so.6(gsignal+0x39)[0x7eff8b1e83d9]
/usr/lib/libc.so.6(abort+0x148)[0x7eff8b1e97d8]
/usr/lib/libc.so.6(+0x2e506)[0x7eff8b1e1506]
/usr/lib/libc.so.6(+0x2e5b2)[0x7eff8b1e15b2]
/pxc56/bin/mysqld[0x969db8]
/pxc56/bin/mysqld[0x96b27e]
/pxc56/bin/mysqld(_ZN11ha_innobase17wsrep_append_keysEP3THDbPKhS3_+0x3b4)[0x96cdd6]
/pxc56/bin/mysqld[0x97488f]
/pxc56/bin/mysqld(_ZN7handler12ha_write_rowEPh+0x13d)[0x64a4a3]
/pxc56/bin/mysqld(_Z12write_recordP3THDP5TABLEP9COPY_INFOS4_+0x606)[0x73f691]
/pxc56/bin/mysqld(_Z12mysql_insertP3THDP10TABLE_LISTR4ListI4ItemERS3_IS5_ES6_S6_15enum_duplicatesb+0xb93)[0x744f76]
/pxc56/bin/mysqld(_Z21mysql_execute_commandP3THD+0x2441)[0x759367]
/pxc56/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x6f5)[0x75d8a2]
/pxc56/bin/mysqld[0x75deee]
/pxc56/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xb27)[0x75ee41]
/pxc56/bin/mysqld(_Z10do_commandP3THD+0x50e)[0x7603b3]
/pxc56/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x128)[0x72c5c3]
/pxc56/bin/mysqld(handle_one_connection+0x20)[0x72c6eb]
/usr/lib/libpthread.so.0(+0x80a2)[0x7eff8ce530a2]
/usr/lib/libc.so.6(clone+0x6d)[0x7eff8b29843d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7eff2c0e8d20): REPLACE INTO `table100_innodb_int_autoinc` ( `col_char_12_key` ) VALUES ( 1 )
Connection ID (thread ID): 11
Status: NOT_KILLED

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.
Writing a core file

Download full text (4.5 KiB)

Backtrace:

(gdb) bt
#0 0x00007eff8ce580b1 in pthread_kill () from /usr/lib/libpthread.so.0
#1 0x000000000094630f in my_write_core (sig=6) at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/mysys/stacktrace.c:422
#2 0x00000000006da228 in handle_fatal_signal (sig=6) at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/sql/signal_handler.cc:254
#3 <signal handler called>
#4 0x00007eff8b1e83d9 in raise () from /usr/lib/libc.so.6
#5 0x00007eff8b1e97d8 in abort () from /usr/lib/libc.so.6
#6 0x00007eff8b1e1506 in __assert_fail_base () from /usr/lib/libc.so.6
#7 0x00007eff8b1e15b2 in __assert_fail () from /usr/lib/libc.so.6
#8 0x0000000000969db8 in wsrep_innobase_mysql_sort (mysql_type=mysql_type@entry=254, charset_number=<optimized out>, str=str@entry=0x7eff78475e70 "1", ' ' <repeats 11 times>, str_length=str_length@entry=12)
    at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/storage/innobase/handler/ha_innodb.cc:5713
#9 0x000000000096b27e in wsrep_store_key_val_for_row (table=0x7eff2c0f4fa0, keynr=keynr@entry=2, buff=0x7eff78476f42 "", buff@entry=0x7eff78476f41 "", buff_len=37,
    record=record@entry=0x7eff2c0fc8f0 "\367", ' ' <repeats 36 times>, key_is_null=key_is_null@entry=0x7eff78476b18)
    at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/storage/innobase/handler/ha_innodb.cc:6499
#10 0x000000000096cdd6 in ha_innobase::wsrep_append_keys (this=this@entry=0x7eff2c129400, thd=0x3726ca0, shared=shared@entry=false, record0=record0@entry=0x7eff2c0fc8f0 "\367", ' ' <repeats 36 times>,
    record1=record1@entry=0x0) at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/storage/innobase/handler/ha_innodb.cc:9780
#11 0x000000000097488f in ha_innobase::write_row (this=0x7eff2c129400, record=0x7eff2c0fc8f0 "\367", ' ' <repeats 36 times>)
    at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/storage/innobase/handler/ha_innodb.cc:7652
#12 0x000000000064a4a3 in handler::ha_write_row (this=0x7eff2c129400, buf=0x7eff2c0fc8f0 "\367", ' ' <repeats 36 times>) at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/sql/handler.cc:7557
#13 0x000000000073f691 in write_record (thd=thd@entry=0x3726ca0, table=table@entry=0x7eff2c0f4fa0, info=info@entry=0x7eff784791e0, update=update@entry=0x7eff78479260)
    at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/sql/sql_insert.cc:1672
#14 0x0000000000744f76 in mysql_insert (thd=thd@entry=0x3726ca0, table_list=0x7eff2c0e8ea0, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_REPLACE, ignore=false)
    at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/sql/sql_insert.cc:1073
#15 0x0000000000759367 in mysql_execute_command (thd=thd@entry=0x3726ca0) at /media/Tintin/Work/code/percona-xtradb-cluster/pxc56/Percona-Server/sql/sql_parse.cc:4054
#16 0x000000000075d8a2 in mysql_parse (thd=thd@entry=0x3726ca0, rawbuf=rawbuf@entry=0x7eff2c0e8d20 "REPLACE INTO `table100_innodb_int_autoinc` ( `col_char_12_key` ) VALUES ( 1 )", length=length@entry=77,
    parser_state=parser_state@entry=0x7eff7847a820) at /media/Tintin/Work...

Read more...

vardir

thread apply all bt and thread apply all bt full.

This is with foreign key grammar.

Teemu Ollakka (teemu-ollakka) wrote :

Potential fix pushed in lp:codership-mysql/5.6 rev 3971

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

Other bug subscribers