We're updating the issue view to help you get more done. 

handle_fatal_signal (sig=11) in safe_mutex_assert_owner

Description

+bt
#0 0x00007f9248274741 in __pthread_kill (threadid=<optimized out>, signo=11) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:61
#1 0x0000000001845fb8 in my_write_core (sig=11) at /git/PS-5.7_dbg/mysys/stacktrace.c:247
#2 0x0000000000e7d01b in handle_fatal_signal (sig=11) at /git/PS-5.7_dbg/sql/signal_handler.cc:223
#3 <signal handler called>
#4 0x0000000000f96f7e in safe_mutex_assert_owner (mp=0xd98) at /git/PS-5.7_dbg/include/thr_mutex.h:146
#5 0x0000000000fb6f62 in user_var_entry::assert_locked (this=0x7f91ff058040) at /git/PS-5.7_dbg/sql/sql_class.h:5486
#6 0x00000000014bcab6 in user_var_entry::destroy (this=0x7f91ff058040) at /git/PS-5.7_dbg/sql/sql_class.h:5572
#7 0x00000000014ae2be in free_user_var (entry=0x7f91ff058040) at /git/PS-5.7_dbg/sql/sql_class.cc:243
#8 0x00000000018242ae in my_hash_free_elements (hash=0x7f91ff0192c8) at /git/PS-5.7_dbg/mysys/hash.c:150
#9 0x00000000018243e2 in my_hash_free (hash=0x7f91ff0192c8) at /git/PS-5.7_dbg/mysys/hash.c:181
#10 0x00000000014b265c in THD::cleanup (this=0x7f91ff019000) at /git/PS-5.7_dbg/sql/sql_class.cc:1930
#11 0x00000000014b29a9 in THD::release_resources (this=0x7f91ff019000) at /git/PS-5.7_dbg/sql/sql_class.cc:2006
#12 0x000000000164e905 in handle_connection (arg=0x7f921cbf7610) at /git/PS-5.7_dbg/sql/conn_handler/connection_handler_per_thread.cc:320
#13 0x0000000001874bf0 in pfs_spawn_thread (arg=0x7f923c391320) at /git/PS-5.7_dbg/storage/perfschema/pfs.cc:2188
#14 0x00007f924826fdc5 in start_thread (arg=0x7f924875d700) at pthread_create.c:308
#15 0x00007f92466ccced in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

The attached tarball (1475827574_bug_bundle.tar.gz) gives the testcase as an exact match of our system, including some handy utilities

$ vi 1475827574_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
$ ./1475827574_init # STEP2: Initializes the data dir
$ ./1475827574_start # STEP3: Starts mysqld
$ ./1475827574_cl # STEP4: To check mysqld is up
$ ./1475827574_run_pquery # STEP5: Run the testcase with the pquery binary
$ ./1475827574_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/1475827574/error.log.out # STEP6: Verify the error log
$ ./1475827574_gdb # OPTIONAL: Brings you to a gdb prompt with gdb attached to the used mysqld and attached to the generated core
$ ./1475827574_parse_core # OPTIONAL: Creates 1475827574_STD.gdb and 1475827574_FULL.gdb; standard and full variables gdb stack traces

Environment

None

Status

Assignee

Unassigned

Reporter

roel.vandepaar

Labels

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Freshdesk Tickets

None

Affects versions

Percona-Server-5.7.17-11

Priority

Major