Script started on Wed 02 Oct 2013 01:48:34 PM EST 13:48:34# ggo /usr/libexec/mysqld -a "--basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-networking --log-error=/var/lib/mysql/dwarfstar.err --pid-file=/var/run/mysql/mysql.pid" c spawn gdb -n GNU gdb (GDB) 7.5 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-slackware-linux". For bug reporting instructions, please see: . (gdb) file /usr/libexec/mysqld Reading symbols from /usr/libexec/mysqld...done. (gdb) set print null-stop (gdb) set print sevenbit-strings (gdb) set print elements 0 (gdb) set height 0 (gdb) set print pretty (gdb) set confirm off (gdb) set unwindonsignal on (gdb) b main Breakpoint 1 at 0x81b050a: file /tmp/mysql-5.6.14/sql/main.cc, line 25. (gdb) run --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-networking --log-error=/var/lib/mysql/dwarfstar.err --pid-file=/var/run/mysql/mysql.pid Starting program: /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-networking --log-error=/var/lib/mysql/dwarfstar.err --pid-file=/var/run/mysql/mysql.pid warning: Could not load shared library symbols for linux-gate.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Breakpoint 1, main (argc=8, argv=0xbfffeca4) at /tmp/mysql-5.6.14/sql/main.cc:25 25 return mysqld_main(argc, argv); (gdb) c Continuing. [New Thread 0xb7a69b40 (LWP 23668)] [Thread 0xb7a69b40 (LWP 23668) exited] Program received signal SIGSEGV, Segmentation fault. 0x08538acc in my_atomic_cas64 (set=4294986496, cmp=, a=0x8c2baa0 ) at /tmp/mysql-5.6.14/include/my_atomic.h:203 203 make_atomic_cas(64) (gdb) list 198 #ifdef MY_ATOMIC_HAS_8_16 199 make_atomic_cas(8) 200 make_atomic_cas(16) 201 #endif 202 make_atomic_cas(32) 203 make_atomic_cas(64) 204 make_atomic_cas(ptr) 205 206 #ifdef MY_ATOMIC_HAS_8_16 207 make_atomic_add(8) (gdb) bt #0 0x08538acc in my_atomic_cas64 (set=4294986496, cmp=, a=0x8c2baa0 ) at /tmp/mysql-5.6.14/include/my_atomic.h:203 #1 my_atomic_add64 (v=1, a=0x8c2baa0 ) at /tmp/mysql-5.6.14/include/my_atomic.h:211 #2 add_u64 (value=1, ptr=0x8c2baa0 ) at /tmp/mysql-5.6.14/storage/perfschema/pfs_atomic.h:142 #3 create_thread (klass=0x856099a , identity=0x8c6c980, processlist_id=0) at /tmp/mysql-5.6.14/storage/perfschema/pfs_instr.cc:899 #4 0x08758c2b in ?? () (gdb) up 3 #3 create_thread (klass=0x856099a , identity=0x8c6c980, processlist_id=0) at /tmp/mysql-5.6.14/storage/perfschema/pfs_instr.cc:899 899 PFS_atomic::add_u64(&thread_internal_id_counter, 1); (gdb) p pfs $1 = (PFS_thread *) 0xa3f0705c (gdb) p *pfs $2 = { = { m_instr_class_waits_stats = 0x1, m_instr_class_stages_stats = 0x0, m_instr_class_statements_stats = 0x0 }, members of PFS_thread: m_enabled = false, m_events_waits_current = 0x0, m_event_id = 0, m_lock = { m_version_state = 0 }, m_filename_hash_pins = 0x0, m_table_share_hash_pins = 0x0, m_setup_actor_hash_pins = 0x0, m_setup_object_hash_pins = 0x0, m_host_hash_pins = 0x0, m_user_hash_pins = 0x0, m_account_hash_pins = 0x0, m_digest_hash_pins = 0x0, m_thread_internal_id = 0, m_parent_thread_internal_id = 0, m_processlist_id = 0, m_class = 0x0, m_events_waits_stack = {{ = { m_thread_internal_id = 0, m_event_id = 0, m_end_event_id = 0, m_event_type = 0, m_nesting_event_id = 0, m_nesting_event_type = 0, m_class = 0x0, m_timer_start = 0, m_timer_end = 0, m_source_file = 0x0, m_source_line = 0 }, members of PFS_events_waits: m_wait_class = NO_WAIT_CLASS, m_thread = 0x0, m_object_type = (unknown: 0), m_weak_table_share = 0x0, m_weak_file = 0x0, m_weak_socket = 0x0, m_weak_version = 0, m_object_instance_addr = 0x0, m_operation = 0, m_number_of_bytes = 0, m_index = 0, m_flags = 0 }, { = { m_thread_internal_id = 0, m_event_id = 0, m_end_event_id = 0, m_event_type = 0, m_nesting_event_id = 0, m_nesting_event_type = 0, m_class = 0x0, m_timer_start = 0, m_timer_end = 0, m_source_file = 0x0, m_source_line = 0 }, members of PFS_events_waits: m_wait_class = NO_WAIT_CLASS, m_thread = 0x0, m_object_type = (unknown: 0), m_weak_table_share = 0x0, m_weak_file = 0x0, m_weak_socket = 0x0, m_weak_version = 0, m_object_instance_addr = 0x0, m_operation = 0, m_number_of_bytes = 0, m_index = 0, m_flags = 0 }, { = { m_thread_internal_id = 0, m_event_id = 0, m_end_event_id = 0, m_event_type = 0, m_nesting_event_id = 0, m_nesting_event_type = 0, m_class = 0x0, m_timer_start = 0, m_timer_end = 0, m_source_file = 0x0, m_source_line = 0 }, members of PFS_events_waits: m_wait_class = NO_WAIT_CLASS, m_thread = 0x0, m_object_type = (unknown: 0), m_weak_table_share = 0x0, m_weak_file = 0x0, m_weak_socket = 0x0, m_weak_version = 0, m_object_instance_addr = 0x0, m_operation = 0, m_number_of_bytes = 0, m_index = 0, m_flags = 0 }, { = { m_thread_internal_id = 0, m_event_id = 0, m_end_event_id = 0, m_event_type = 0, m_nesting_event_id = 0, m_nesting_event_type = 0, m_class = 0x0, m_timer_start = 0, m_timer_end = 0, m_source_file = 0x0, m_source_line = 0 }, members of PFS_events_waits: m_wait_class = NO_WAIT_CLASS, m_thread = 0x0, m_object_type = (unknown: 0), m_weak_table_share = 0x0, m_weak_file = 0x0, m_weak_socket = 0x0, m_weak_version = 0, m_object_instance_addr = 0x0, m_operation = 0, m_number_of_bytes = 0, m_index = 0, m_flags = 0 }, { = { m_thread_internal_id = 0, m_event_id = 0, m_end_event_id = 0, m_event_type = 0, m_nesting_event_id = 0, m_nesting_event_type = 0, m_class = 0x0, m_timer_start = 0, m_timer_end = 0, m_source_file = 0x0, m_source_line = 0 }, members of PFS_events_waits: m_wait_class = NO_WAIT_CLASS, m_thread = 0x0, m_object_type = (unknown: 0), m_weak_table_share = 0x0, m_weak_file = 0x0, m_weak_socket = 0x0, m_weak_version = 0, m_object_instance_addr = 0x0, m_operation = 0, m_number_of_bytes = 0, m_index = 0, m_flags = 0 }, { = { m_thread_internal_id = 0, m_event_id = 0, m_end_event_id = 0, m_event_type = 0, m_nesting_event_id = 0, m_nesting_event_type = 0, m_class = 0x0, m_timer_start = 0, m_timer_end = 0, m_source_file = 0x0, m_source_line = 0 }, members of PFS_events_waits: m_wait_class = NO_WAIT_CLASS, m_thread = 0x0, m_object_type = (unknown: 0), m_weak_table_share = 0x0, m_weak_file = 0x0, m_weak_socket = 0x0, m_weak_version = 0, m_object_instance_addr = 0xa3e95040, m_operation = 0, m_number_of_bytes = 0, m_index = 3072487488, m_flags = 0 }}, m_waits_history_full = false, m_waits_history_index = 2731180096, m_waits_history = 0x0, m_stages_history_full = false, m_stages_history_index = 0, m_stages_history = 0x0, m_statements_history_full = false, m_statements_history_index = 0, m_statements_history = 0x0, m_session_lock = { m_version_state = 0 }, m_username = "", m_username_length = 0, m_hostname = "", m_hostname_length = 0, m_dbname = "", m_dbname_length = 0, m_command = 0, m_start_time = 0, m_stmt_lock = { m_version_state = 0 }, m_stage = 0, m_processlist_info = "", m_processlist_info_length = 0, m_stage_current = { = { m_thread_internal_id = 0, m_event_id = 0, m_end_event_id = 0, m_event_type = 0, m_nesting_event_id = 0, m_nesting_event_type = 0, m_class = 0x0, m_timer_start = 2729971776, m_timer_end = 0, m_source_file = 0xa1f74040 "", m_source_line = 0 }, }, m_events_statements_count = 0, m_statement_stack = 0x0, m_host = 0x0, m_user = 0x0, m_account = 0x0, m_session_connect_attrs = 0x0, m_session_connect_attrs_length = 0, m_session_connect_attrs_cs = 0xa3a03ee0 } (gdb) info threads Id Target Id Frame * 1 Thread 0xb7a6b700 (LWP 23664) "mysqld" create_thread (klass=0x856099a , identity=0x8c6c980, processlist_id=0) at /tmp/mysql-5.6.14/storage/perfschema/pfs_instr.cc:899 (gdb) q 13:51:52# exit exit Script done on Wed 02 Oct 2013 01:51:54 PM EST