Assertion `(old_mh->m_key == key) || (old_mh->m_key == 0)' failed in mysys/my_malloc.c:80
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 |
Invalid
|
Undecided
|
Unassigned | |||
5.7 |
Fix Released
|
High
|
Laurynas Biveinis |
Bug Description
GDB info:
#0 0x00007f0e39bd6771 in pthread_kill () from /lib64/
#1 0x0000000001811888 in my_write_core (sig=6) at /sda/percona-
#2 0x0000000000e60b43 in handle_fatal_signal (sig=6) at /sda/percona-
#3 <signal handler called>
#4 0x00007f0e37d635d7 in raise () from /lib64/libc.so.6
#5 0x00007f0e37d64cc8 in abort () from /lib64/libc.so.6
#6 0x00007f0e37d5c546 in __assert_fail_base () from /lib64/libc.so.6
#7 0x00007f0e37d5c5f2 in __assert_fail () from /lib64/libc.so.6
#8 0x000000000180c103 in my_realloc (key=117, ptr=0x7f0dfd050110, size=128, flags=88) at /sda/percona-
#9 0x000000000153965f in alloc_and_
#10 0x0000000001539969 in intern_sys_var_ptr (thd=0x7f0dfd01
#11 0x000000000153a5a9 in sys_var_
#12 0x000000000153a674 in sys_var_
#13 0x000000000153d224 in sys_var_
#14 0x000000000144cd06 in sys_var::value_ptr (this=0x7f0e267
#15 0x000000000156fbac in get_one_
#16 0x00000000018e2fee in System_
#17 0x00000000018e2e4c in System_
#18 0x00000000018e2245 in PFS_system_
#19 0x0000000001915a86 in PFS_variable_
#20 0x000000000191549e in table_session_
#21 0x00000000018ae536 in ha_perfschema:
#22 0x0000000000eefab3 in handler:
#23 0x000000000143cc17 in init_read_record (info=0x7f0dfd1
#24 0x00000000014c2dfd in join_init_
#25 0x00000000014c005a in sub_select (join=0x7f0dfd1
#26 0x00000000014bf9ee in do_select (join=0x7f0dfd1
#27 0x00000000014bd96f in JOIN::exec (this=0x7f0dfd1
#28 0x000000000155955a in handle_query (thd=0x7f0dfd01
#29 0x000000000150e357 in execute_
#30 0x0000000001507751 in mysql_execute_
#31 0x000000000150f30e in mysql_parse (thd=0x7f0dfd01
#32 0x0000000001504325 in dispatch_command (thd=0x7f0dfd01
#33 0x000000000150323f in do_command (thd=0x7f0dfd01
#34 0x000000000163ab1b in handle_connection (arg=0x7f0e25ff
#35 0x00000000018b0fa4 in pfs_spawn_thread (arg=0x7f0e257f
#36 0x00007f0e39bd1df5 in start_thread () from /lib64/
#37 0x00007f0e37e241ad in clone () from /lib64/libc.so.6
Testcase
DROP DATABASE test;CREATE DATABASE test;USE test;
update performance_
SET STATEMENT myisam_
INSTALL PLUGIN example SONAME 'ha_example.so';# NOERROR
show session variables like 'log_error';
How to reproduce the issue :
$ vi 1452850231_mybase # STEP1: Update the base path in this file (usually the only change required!). If you use a non-binary distribution, please update SOURCE_DIR location also
$ ./1452850231_init # STEP2: Initializes the data dir
$ ./1452850231_start # STEP3: Starts mysqld
$ ./1452850231_cl # STEP4: To check mysqld is up
$ ./1452850231_
$ ./1452850231_run # OPTIONAL: Run the testcase with the mysql CLI (may not reproduce the issue, as the pquery binary was used for the original testcase reduction)
$ vi /dev/shm/
$ ./1452850231_gdb # OPTIONAL: Brings you to a gdb prompt with gdb attached to the used mysqld and attached to the generated core
$ ./1452850231_
tags: | added: qa57 set-statement |
Can you please provide the server error log (IIRC the bug bundles used to contain in the past?), and the CLI output? The expected errors, if any, for SET STATEMENT and INSTALL PLUGIN statements are interesting here.