Slide 20
Slide 20 text
gstackでスレッドのスタック取得
•
140577082132224 (0x7fdaa70b4700)を抜粋 (はみ出してます)
Thread 9 (Thread 0x7fdaa70b4700 (LWP 3499)):
#0 0x00007fdaa6c03a35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x000000000107111b in wait (this=0x7fc005af28f8) at /PATH/TO/mysql-5.7.27/storage/innobase/os/os0event.cc:171
#2 os_event::wait_low (this=0x7fc005af28f8, reset_sig_count=193) at /PATH/TO/mysql-5.7.27/storage/innobase/os/os0event.cc:358
#3 0x0000000001118259 in sync_array_wait_event (arr=0x7fda986fa7f8, cell=@0x7fdaa70b1cf8: 0x7fda98006018) at /PATH/TO/mysql-5.7.27/storage/…
#4 0x0000000001000d64 in TTASEventMutex::wait (this=0x7fdaa4b5a9d8, filename=0x1617ee0 "/PATH/TO/mysql-5.7.27/storage/inn…
#5 0x0000000001000edb in spin_and_try_lock (line=15015, filename=0x1617ee0 "/PATH/TO/mysql-5.7.27/storage/innobase/handler/ha_innodb.cc", th…
#6 enter (line=15015, filename=0x1617ee0 "/PATH/TO/mysql-5.7.27/storage/innobase/handler/ha_innodb.cc", max_delay=6, max_spins=30, this=0x7f…
#7 PolicyMutex >::enter (this=0x7fdaa4b5a9d8, n_spins=30, n_delay=6, name=0x1617ee0 "/PATH/TO/mysql-5.7.27…
#8 0x0000000000ff5aec in ha_innobase::get_foreign_key_list (this=0x7fbf3ac78030, thd=0x7fbf3c816000, f_key_list=0x7fdaa70b1e20) at /PATH/TO/my…
#9 0x0000000000c841ff in has_cascade_foreign_key (table=, thd=) at /PATH/TO/mysql-5.7.27/sql/rpl_handler.cc:343
#10 0x0000000000c84d80 in Trans_delegate::prepare_table_info (this=, thd=0x7fbf3c816000, table_info_list=@0x7fdaa70b1f78: 0x0, nu…
#11 0x0000000000c86038 in Trans_delegate::before_dml (this=0x1e770a0 , thd=, result=@0x7fdaa70b2...
#12 0x0000000000cc0af1 in run_before_dml_hook (thd=) at /PATH/TO/mysql-5.7.27/sql/sql_base.cc:5334
#13 0x0000000000e9aa4d in Sql_cmd_delete::mysql_delete (this=0x7fbf3c825fb8, thd=0x7fbf3c816000, limit=18446744073709551615) at /PATH/TO/m…
#14 0x0000000000e9c17f in Sql_cmd_delete::execute (this=0x7fbf3c825fb8, thd=0x7fbf3c816000) at /PATH/TO/mysql-5.7.27/sql/sql_delete.cc:1393
#15 0x0000000000d1c7cb in mysql_execute_command (thd=0x7fbf3c816000, first_level=true) at /PATH/TO/mysql-5.7.27/sql/sql_parse.cc:3606
#16 0x0000000000d20cdd in mysql_parse (thd=0x7fbf3c816000, parser_state=) at /PATH/TO/mysql-5.7.27/sql/sql_parse.cc:5570
#17 0x0000000000d21f05 in dispatch_command (thd=0x7fbf3c816000, com_data=0x7fdaa70b3da0, command=COM_QUERY) at /PATH/TO/mysql-5.7….
#18 0x0000000000d22de4 in do_command (thd=0x7fbf3c816000) at /PATH/TO/mysql-5.7.27/sql/sql_parse.cc:1025
#19 0x0000000000df4734 in handle_connection (arg=) at /PATH/TO/mysql-5.7.27/sql/conn_handler/connection_handler_per_thread.cc:306
#20 0x0000000000f71ea4 in pfs_spawn_thread (arg=0x7fdaa481be20) at /PATH/TO/mysql-5.7.27/storage/perfschema/pfs.cc:2190
#21 0x00007fdaa6bffea5 in start_thread () from /lib64/libpthread.so.0
#22 0x00007fdaa56b7b0d in clone () from /lib64/libc.so.6
(* /PATH/TOになっている部分は置換、⻑い⾏は…で省略) 20