handle_fatal_signal (sig=11) in list_delete
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Invalid
|
Undecided
|
Unassigned | |||
5.6 |
Triaged
|
High
|
Unassigned | |||
5.7 |
Triaged
|
High
|
Unassigned |
Bug Description
+bt
#0 0x00007fa7b5b8a741 in __pthread_kill (threadid=
#1 0x000000000181182c in my_write_core (sig=11) at /git/PS-
#2 0x0000000000e609e3 in handle_fatal_signal (sig=11) at /git/PS-
#3 <signal handler called>
#4 0x00000000017f1a8c in list_delete (root=0x7fa6d04
#5 0x000000000153a275 in plugin_
#6 0x000000000153a90a in sys_var_
#7 0x000000000144c73d in sys_var::update (this=0x7fa7a8f
#8 0x000000000144cdda in sys_var:
#9 0x000000000144ddba in set_var::update (this=0x7fa6d04
#10 0x000000000144d662 in sql_set_variables (thd=0x7fa6d041
#11 0x0000000001509c69 in mysql_execute_
#12 0x000000000150f2ae in mysql_parse (thd=0x7fa6d041
#13 0x00000000015042c5 in dispatch_command (thd=0x7fa6d041
#14 0x00000000015031df in do_command (thd=0x7fa6d041
#15 0x000000000163aabf in handle_connection (arg=0x7fa701ff
#16 0x0000000001840094 in pfs_spawn_thread (arg=0x7fa701ea
#17 0x00007fa7b5b85dc5 in start_thread (arg=0x7fa7b617
#18 0x00007fa7b3fe421d in clone () at ../sysdeps/
DROP DATABASE test;CREATE DATABASE test;USE test;
create table user_stopword(value varchar(0)) engine=innodb;
set session innodb_
SET STATEMENT myisam_
SET SESSION innodb_
This is a 5.6 bug too (ASan build):
==23553==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000000510 at pc 0x00010d8aa06c bp 0x7000009351e0 sp 0x7000009351d8 var_memalloc_ session_ update( THD*, st_mysql_sys_var*, char**, char const*) sql_plugin.cc:3071 pluginvar: :session_ update( THD*, set_var*) sql_plugin.cc:3232 :update( THD*, set_var*) set_var.cc:197 :set_default( THD*, set_var*) set_var.cc:258 :update( THD*) set_var.cc:679 variables( THD*, List<set_ var_base> *) set_var.cc:579 command( THD*) sql_parse.cc:4178 command( enum_server_ command, THD*, char*, unsigned int) sql_parse.cc:1442 one_connection( THD*) sql_connect.cc:1541 one_connection sql_connect.cc:1444 system/ libsystem_ pthread. dylib+0x3c12) system/ libsystem_ pthread. dylib+0x3b8f) system/ libsystem_ pthread. dylib+0x1374)
READ of size 8 at 0x604000000510 thread T20
#0 0x10d8aa06b in list_delete list.c:47
#1 0x10d586b47 in plugin_
#2 0x10d5867ae in sys_var_
#3 0x10d355fe9 in sys_var:
#4 0x10d356a1b in sys_var:
#5 0x10d3580d1 in set_var:
#6 0x10d357877 in sql_set_
#7 0x10d5264a8 in mysql_execute_
#8 0x10d5203d4 in mysql_parse(THD*, char*, unsigned int, Parser_state*) sql_parse.cc:6973
#9 0x10d51aaee in dispatch_
#10 0x10d51ef34 in do_command(THD*) sql_parse.cc:1054
#11 0x10d45ac39 in do_handle_
#12 0x10d45a79c in handle_
#13 0x10de07093 in pfs_spawn_thread pfs.cc:1860
#14 0x7fff920ebc12 in _pthread_body (/usr/lib/
#15 0x7fff920ebb8f in _pthread_start (/usr/lib/
#16 0x7fff920e9374 in thread_start (/usr/lib/
0x604000000510 is located 0 bytes inside of 43-byte region [0x604000000510 ,0x60400000053b ) Xcode.app/ Contents/ Developer/ Toolchains/ XcodeDefault. xctoolchain/ usr/lib/ clang/7. 0.2/lib/ darwin/ libclang_ rt.asan_ osx_dynamic. dylib+0x42b49) var_memalloc_ free(system_ variables* ) sql_plugin.cc:3094 variables( system_ variables* , bool) sql_plugin.cc:4059 command( THD*) sql_parse.cc:5554 command( enum_server_ command, THD*, char*, unsigned int) sql_parse.cc:1442 one_connection( THD*) sql_connect.cc:1541 one_connection sql_connect.cc:1444 system/ libsystem_ pthread. dylib+0x3c12) system/ libsystem_ pthread. dylib+0x3b8f) system/ libsystem_ pthread. dylib+0x1374)
freed by thread T20 here:
#0 0x10f82fb49 in wrap_free (/Applications/
#1 0x10d8e3a09 in my_free my_malloc.c:140
#2 0x10d5880ef in plugin_
#3 0x10d587f83 in free_system_
#4 0x10d5242b3 in mysql_execute_
#5 0x10d5203d4 in mysql_parse(THD*, char*, unsigned int, Parser_state*) sql_parse.cc:6973
#6 0x10d51aaee in dispatch_
#7 0x10d51ef34 in do_command(THD*) sql_parse.cc:1054
#8 0x10d45ac39 in do_handle_
#9 0x10d45a79c in handle_
#10 0x10de07093 in pfs_spawn_thread pfs.cc:1860
#11 0x7fff920ebc12 in _pthread_body (/usr/lib/
#12 0x7fff920ebb8f in _pthread_start (/usr/lib/
#13 0x7fff920e9374 in thread_start (/usr/lib/
previously allocated by thread T20 here: Xcode.app/ Contents/ Developer/ Toolchains/ XcodeDefault. xctoolchain/ usr/lib/ clang/7. 0.2/lib/ darwin/ libclang_ rt.asan_ osx_dynamic. dylib+0x42980) var_memalloc_ session_ update( THD*, st_mysql_sys_...
#0 0x10f82f980 in wrap_malloc (/Applications/
#1 0x10d8e3264 in my_malloc my_malloc.c:38
#2 0x10d5869ed in plugin_