mysql> create table test.cindy(id int); (gdb) b trx_undo_assign_undo Breakpoint 1 at 0x788be0: file trx/trx0undo.c, line 1775. (gdb) b trx_undo_set_state_at_prepare Breakpoint 2 at 0x785590: file trx/trx0undo.c, line 1903. (gdb) b trx_undo_set_state_at_finish Breakpoint 3 at 0x785400: file trx/trx0undo.c, line 1837. (gdb) c Continuing. [Switching to Thread 0x5ac86940 (LWP 1046)] Breakpoint 1, trx_undo_assign_undo (trx=0x2aaad40811e8, type=1) at trx/trx0undo.c:1775 1775 trx/trx0undo.c: No such file or directory. in trx/trx0undo.c (gdb) bt #0 trx_undo_assign_undo (trx=0x2aaad40811e8, type=1) at trx/trx0undo.c:1775 #1 0x000000000077a94f in trx_undo_report_row_operation (flags=<value optimized out>, op_type=1, thr=<value optimized out>, index=0xfaa7408, clust_entry=0x2aaaec085d18, update=0x0, cmpl_info=0, rec=0x0, roll_ptr=0x5ac819c0) at trx/trx0rec.c:1185 #2 0x00000000007a4ec9 in btr_cur_ins_lock_and_undo (flags=0, cursor=0x5ac827e0, entry=0x2aaaec085d18, rec=0x5ac82878, big_rec=0x5ac82870, n_ext=0, thr=0x2aaaec04fa50, mtr=0x5ac81f40) at btr/btr0cur.c:967 #3 btr_cur_optimistic_insert (flags=0, cursor=0x5ac827e0, entry=0x2aaaec085d18, rec=0x5ac82878, big_rec=0x5ac82870, n_ext=0, thr=0x2aaaec04fa50, mtr=0x5ac81f40) at btr/btr0cur.c:1171 #4 0x000000000074b24c in row_ins_index_entry_low (mode=2, index=0xfaa7408, entry=0x2aaaec085d18, n_ext=0, thr=0x2aaaec04fa50) at row/row0ins.c:2069 #5 0x000000000074bbb7 in row_ins_index_entry (index=0xfaa7408, entry=0x2aaaec085d18, n_ext=0, foreign=<value optimized out>, thr=0x2aaaec04fa50) at row/row0ins.c:2148 #6 0x000000000074be72 in row_ins_index_entry_step (thr=0x2aaaec04fa50) at row/row0ins.c:2233 #7 row_ins (thr=0x2aaaec04fa50) at row/row0ins.c:2365 #8 row_ins_step (thr=0x2aaaec04fa50) at row/row0ins.c:2475 #9 0x0000000000743478 in que_thr_step (thr=0x2aaaec04fa50) at que/que0que.c:1229 #10 que_run_threads_low (thr=0x2aaaec04fa50) at que/que0que.c:1315 #11 que_run_threads (thr=0x2aaaec04fa50) at que/que0que.c:1352 #12 0x0000000000756ad2 in row_create_table_for_mysql (table=0x2aaaec020258, trx=0x2aaad40811e8) at row/row0mysql.c:1894 #13 0x0000000000701daf in create_table_def (this=<value optimized out>, name=<value optimized out>, form=0x5ac82f40, create_info=0x5ac850c0) at handler/ha_innodb.cc:6247 #14 ha_innobase::create (this=<value optimized out>, name=<value optimized out>, form=0x5ac82f40, create_info=0x5ac850c0) at handler/ha_innodb.cc:6856 #15 0x0000000000665a82 in ha_create_table (thd=<value optimized out>, path=<value optimized out>, db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, update_create_info=false) at handler.cc:3610 #16 0x000000000062f559 in rea_create_table (thd=0x2aaae01e4b50, path=0x5ac84030 "./test/cindy", db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, create_fields=..., keys=0, key_info=0x2aaaec009f00, file=0x2aaaec009d10) at unireg.cc:415 #17 0x000000000067663a in mysql_create_table_no_lock (thd=0x2aaae01e4b50, db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, alter_info=0x5ac851a0, internal_tmp_table=false, select_field_count=0) at sql_table.cc:3961 #18 0x0000000000676771 in mysql_create_table (thd=0x2aaae01e4b50, db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, alter_info=0x5ac851a0, internal_tmp_table=false, select_field_count=0) at sql_table.cc:4058 #19 0x000000000059ad77 in mysql_execute_command (thd=0x2aaae01e4b50) at sql_parse.cc:2778 #20 0x000000000059b117 in mysql_parse (thd=0x2aaae01e4b50, inBuf=0x2aaaec009780 "create table test.cindy(id int)", length=31, found_semicolon=0x5ac86080) at sql_parse.cc:6021 #21 0x000000000059d056 in dispatch_command (command=COM_QUERY, thd=0x2aaae01e4b50, packet=0x2aaae00f4241 "create table test.cindy(id int)", packet_length=<value optimized out>) at sql_parse.cc:1232 #22 0x000000000059da46 in do_command (thd=0x2aaae01e4b50) at sql_parse.cc:874 #23 0x0000000000590288 in handle_one_connection (arg=<value optimized out>) at sql_connect.cc:1153 #24 0x000000330600673d in start_thread () from /lib64/libpthread.so.0 #25 0x00000033054d3d1d in clone () from /lib64/libc.so.6 (gdb) (gdb) c Continuing. Breakpoint 3, trx_undo_set_state_at_finish (rseg=0xfaabf38, trx=0x2aaad40811e8, undo=0x2aaae4110308, mtr=0x5ac82510) at trx/trx0undo.c:1837 1837 in trx/trx0undo.c (gdb) bt #0 trx_undo_set_state_at_finish (rseg=0xfaabf38, trx=0x2aaad40811e8, undo=0x2aaae4110308, mtr=0x5ac82510) at trx/trx0undo.c:1837 #1 0x0000000000783fbb in trx_commit_off_kernel (trx=0x2aaad40811e8) at trx/trx0trx.c:877 #2 0x0000000000784d2a in trx_commit_for_mysql (trx=0x2aaad40811e8) at trx/trx0trx.c:1729 #3 0x0000000000701ee2 in ha_innobase::create (this=<value optimized out>, name=<value optimized out>, form=0x5ac82f40, create_info=0x5ac850c0) at handler/ha_innodb.cc:6909 #4 0x0000000000665a82 in ha_create_table (thd=<value optimized out>, path=<value optimized out>, db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, update_create_info=false) at handler.cc:3610 #5 0x000000000062f559 in rea_create_table (thd=0x2aaae01e4b50, path=0x5ac84030 "./test/cindy", db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, create_fields=..., keys=0, key_info=0x2aaaec009f00, file=0x2aaaec009d10) at unireg.cc:415 #6 0x000000000067663a in mysql_create_table_no_lock (thd=0x2aaae01e4b50, db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, alter_info=0x5ac851a0, internal_tmp_table=false, select_field_count=0) at sql_table.cc:3961 #7 0x0000000000676771 in mysql_create_table (thd=0x2aaae01e4b50, db=0x2aaaec009828 "test", table_name=0x2aaaec009830 "cindy", create_info=0x5ac850c0, alter_info=0x5ac851a0, internal_tmp_table=false, select_field_count=0) at sql_table.cc:4058 #8 0x000000000059ad77 in mysql_execute_command (thd=0x2aaae01e4b50) at sql_parse.cc:2778 #9 0x000000000059b117 in mysql_parse (thd=0x2aaae01e4b50, inBuf=0x2aaaec009780 "create table test.cindy(id int)", length=31, found_semicolon=0x5ac86080) at sql_parse.cc:6021 #10 0x000000000059d056 in dispatch_command (command=COM_QUERY, thd=0x2aaae01e4b50, packet=0x2aaae00f4241 "create table test.cindy(id int)", packet_length=<value optimized out>) at sql_parse.cc:1232 #11 0x000000000059da46 in do_command (thd=0x2aaae01e4b50) at sql_parse.cc:874 #12 0x0000000000590288 in handle_one_connection (arg=<value optimized out>) at sql_connect.cc:1153 #13 0x000000330600673d in start_thread () from /lib64/libpthread.so.0 #14 0x00000033054d3d1d in clone () from /lib64/libc.so.6 (gdb) mysql> select * from test.cindy; +------+ | id | +------+ | 123 | +------+ 1 row in set (0.00 sec) mysql> update test.cindy set id=122 where id=123; Breakpoint 1, trx_undo_assign_undo (trx=0x10ad6778, type=2) at trx/trx0undo.c:1775 1775 in trx/trx0undo.c (gdb) print *trx $1 = {magic_n = 91118598, op_info = 0x947f26 "updating or deleting", is_purge = 0, is_recovered = 0, conc_state = 1, que_state = 0, isolation_level = 2, check_foreigns = 1, check_unique_secondary = 1, support_xa = 1, flush_log_later = 0, must_flush_log_later = 0, dict_operation = 0, duplicates = 0, active_trans = 1, has_search_latch = 0, declared_to_be_inside_innodb = 0, handling_signals = 0, dict_operation_lock_mode = 0, start_time = 1293482428, id = {high = 0, low = 20444561}, xid = {formatID = 1, gtrid_length = 24, bqual_length = 0, data = "MySQLXid/001/000/000/000/000/000/000/000/234#d/002", '/000' <repeats 107 times>}, no = {high = 4294967295, low = 4294967295}, commit_lsn = 11177801486, table_id = {high = 0, low = 0}, mysql_thd = 0x2aaae01e4b50, mysql_query_str = 0x0, mysql_log_file_name = 0xd50298 "./lab133-bin.000001", mysql_log_offset = 429602531, mysql_master_log_file_name = 0x923d3a "", mysql_master_log_pos = 0, mysql_relay_log_file_name = 0x923d3a "", mysql_relay_log_pos = 0, mysql_thread_id = 1523083584, mysql_process_no = 6662, n_mysql_tables_in_use = 1, mysql_n_tables_locked = 1, search_latch_timeout = 10000, n_tickets_to_enter_innodb = 0, trx_list = {prev = 0x0, next = 0x0}, mysql_trx_list = {prev = 0x0, next = 0x0}, error_state = 10, error_info = 0x2aaae4381af8, error_key_num = 0, sess = 0xfd6d778, graph = 0x0, n_active_thrs = 1, graph_before_signal_handling = 0x0, sig = {type = 0, sender = 0, receiver = 0x0, savept = {least_undo_no = {high = 0, low = 0}}, signals = { prev = 0x0, next = 0x0}, reply_signals = {prev = 0x0, next = 0x0}}, signals = {count = 0, start = 0x0, end = 0x0}, reply_signals = {count = 0, start = 0x0, end = 0x0}, wait_lock = 0x0, was_chosen_as_deadlock_victim = 0, wait_started = 0, wait_thrs = {count = 0, start = 0x0, end = 0x0}, deadlock_mark = 0, lock_heap = 0x10ab62d0, trx_locks = {count = 2, start = 0x10ab6348, end = 0x10ab6398}, global_read_view_heap = 0x10ab6450, global_read_view = 0x0, read_view = 0x0, trx_savepoints = {count = 0, start = 0x0, end = 0x0}, undo_mutex = {event = 0x10a88c60, lock_word = 1 '/001', waiters = 0, list = {prev = 0x10b25b98, next = 0x2aaafc062018}, cfile_name = 0x950730 "trx/trx0trx.c", cline = 195, count_os_wait = 0}, undo_no = {high = 0, low = 0}, last_sql_stat_start = {least_undo_no = {high = 0, low = 0}}, rseg = 0xfaabf38, insert_undo = 0x0, update_undo = 0x0, roll_limit = {high = 0, low = 0}, pages_undone = 0, undo_no_arr = 0x0, n_autoinc_rows = 0, autoinc_locks = 0x10a88d58, detailed_error = '/000' <repeats 38 times>"/360, ?/340x/003ت*/000/000/000[/322/000/000/000/000/000/000k/255/020", '/000' <repeats 13 times>, "[/322/000/000/000/000/000/030k/255/020", '/000' <repeats 36 times>, "pX/003ت*/000/000/260/333/005ت*/000/000/270/333/005ت*", '/000' <repeats 51 times>, "J/004/200/000/000/000/000/360/332/005ت*", '/000' <repeats 11 times>, "[/322/000/000/000/000/000/250k/255/020", '/000' <repeats 13 times>, "[/322/000/000/000/000/000/300k/255/020/000/000/000", io_reads = 0, io_read = 0, io_reads_wait_timer = 0, lock_que_wait_ustarted = 0, lock_que_wait_timer = 0, innodb_que_wait_timer = 0, distinct_page_access = 0, distinct_page_access_hash = 0x0, take_stats = 0, lock_latch = {lock_word = 1048576, waiters = 0, recursive = 0, writer_thread = 1523083584, event = 0x10a2bb00, wait_ex_event = 0x10a2bb80, list = { prev = 0x10b25d88, next = 0x2aaafc062208}, count_os_wait = 0, cfile_name = 0x950730 "trx/trx0trx.c", last_s_file_name = 0x9410b3 "lock/lock0lock.c", last_x_file_name = 0x9410b3 "lock/lock0lock.c", writer_is_wait_ex = 0, cline = 205, last_s_line = 4183, last_x_line = 1991, magic_n = 22643}, in_trx_list = 1} (gdb) (gdb) c Continuing. Breakpoint 2, trx_undo_set_state_at_prepare (trx=0x10ad6778, undo=0x10a53198, mtr=0x5ac84ef0) at trx/trx0undo.c:1903 1903 in trx/trx0undo.c (gdb) p *undo $2 = {id = 196, type = 2, state = 1, del_marks = 0, trx_id = {high = 0, low = 20444561}, xid = {formatID = 1, gtrid_length = 24, bqual_length = 0, data = "MySQLXid/001/000/000/000/000/000/000/000/234#d/002", '/000' <repeats 107 times>}, dict_operation = 0, table_id = {high = 0, low = 37}, rseg = 0xfaabf38, space = 0, zip_size = 0, hdr_page_no = 376, hdr_offset = 11476, last_page_no = 376, size = 1, empty = 0, top_page_no = 376, top_offset = 11662, top_undo_no = {high = 0, low = 0}, guess_block = 0x2aaaaf6deb88, undo_list = {prev = 0x0, next = 0x0}} (gdb) p *mtr $3 = {memo = {heap = 0x0, used = 0, data = "/002", '/000' <repeats 15 times>"/330, m/310Z/000/000/000/000J/335/000/006/063", '/000' <repeats 12 times>, "/004", '/000' <repeats 14 times>, "/005/000/000/000/000/000/000/000/000/004/000/000/000/000/000/000/360!/203/000/000/000/000/000/005/000/000/000/000/000/000/000/275O/310Z/000/000/000/000@R/310Z/000/000/000/000|/225c/000/000/000/000/000/066/371/030M/002/001/000/000/000@/000/000/000l6/233/031/b/000/000/000/004/000/000/360!/203/000/000/000/000/000/275O/310Z/000/000/000/000/275O/310Z/000/000/000/000@R/310Z/000/000/000/000*/241c/000/000/000/000/000VO/000/000/063/000/000/000/000/000/000/032/000/000/000@/000/000/001/000/000/000/000/000/000/000/000/006/003std/004/b/000/b/000/b/000/000/320T/310Z/000/000/000/000test/000/000/000/000/000/000/000/000"..., base = {count = 3934767219199444224, start = 0x1fe3, end = 0x2aaaec009860}, list = {prev = 0x0, next = 0x0}}, log = {heap = 0x0, used = 0, data = "/002/000/200/337/000/070/005/001/000/200/337/000j/001/004/000/200/337/000/204/001/004/000/200/337/000/210/030/004/000/200/337/251/330/000/006/063/000/000/000/000/000/070/000)/002/221/003/060/005/341/006/255/b=/n/204/vv/f?/r/317/rf/004/064/006/063", '/000' <repeats 11 times>, "/v/000/000/000/000/000/000/000/v/000/000/000/000/000/000/000OtW/000/000/000/000/000/v/000/000/000/000/000/000/000{/362W/000/000/000/000/000@B/017/340/252*/000/000/070L/036/340/252*/000/000/v/000/000/000/000/000/000/000/a/000/000/000/000/000/000/000 R/310Z/000/000/000/000/070L/036/340/252*/000/000/070L/036/340/252*/000/000PK/036/340/252*/000/000bb/036/340/252*/000/000/000/000/000/000/000/000/000/000 R/310Z/000/000/000/000{/367W/000/000/000/000/000/a/000/000/000/000/000/000/000/370/rX/000/000/000/000/000/000/001/000/002"..., base = {count = 5724807, start = 0x2aaae01e4b50, end = 0x2aaae01e4b50}, list = {prev = 0x2aaae01e4b50, next = 0x7701b5}}, modifications = 0, n_log_recs = 0, log_mode = 21, start_lsn = 46913592268714, end_lsn = 46913592268714} (gdb) (gdb) c Continuing. Breakpoint 3, trx_undo_set_state_at_finish (rseg=0xfaabf38, trx=0x10ad6778, undo=0x10a53198, mtr=0x5ac84eb0) at trx/trx0undo.c:1837 1837 in trx/trx0undo.c (gdb) p *rseg $4 = {id = 0, mutex = {event = 0xfd6d680, lock_word = 1 '/001', waiters = 0, list = {prev = 0xfd6dad8, next = 0xfaab3c8}, cfile_name = 0x94faae "trx/trx0rseg.c", cline = 204, count_os_wait = 79312}, space = 0, zip_size = 0, page_no = 6, max_size = 4294967294, curr_size = 202, update_undo_list = {count = 1, start = 0x10a53198, end = 0x10a53198}, update_undo_cached = {count = 0, start = 0x0, end = 0x0}, insert_undo_list = {count = 0, start = 0x0, end = 0x0}, insert_undo_cached = {count = 200, start = 0x2aaae4110308, end = 0x2aaae8107f08}, last_page_no = 4294967295, last_offset = 11126, last_trx_no = {high = 0, low = 18924887}, last_del_marks = 1, rseg_list = {prev = 0x0, next = 0x0}} (gdb) c Continuing. mysql> insert into test.cindy value(124); Breakpoint 1, trx_undo_assign_undo (trx=0x10ad6778, type=1) at trx/trx0undo.c:1775 1775 in trx/trx0undo.c (gdb) bt #0 trx_undo_assign_undo (trx=0x10ad6778, type=1) at trx/trx0undo.c:1775 #1 0x000000000077a94f in trx_undo_report_row_operation (flags=<value optimized out>, op_type=1, thr=<value optimized out>, index=0x2aaaec0238d8, clust_entry=0x2aaaec085d18, update=0x0, cmpl_info=0, rec=0x0, roll_ptr=0x5ac830b0) at trx/trx0rec.c:1185 #2 0x00000000007a4ec9 in btr_cur_ins_lock_and_undo (flags=0, cursor=0x5ac83ed0, entry=0x2aaaec085d18, rec=0x5ac83f68, big_rec=0x5ac83f60, n_ext=0, thr=0x2aaaec06a610, mtr=0x5ac83630) at btr/btr0cur.c:967 #3 btr_cur_optimistic_insert (flags=0, cursor=0x5ac83ed0, entry=0x2aaaec085d18, rec=0x5ac83f68, big_rec=0x5ac83f60, n_ext=0, thr=0x2aaaec06a610, mtr=0x5ac83630) at btr/btr0cur.c:1171 #4 0x000000000074b24c in row_ins_index_entry_low (mode=2, index=0x2aaaec0238d8, entry=0x2aaaec085d18, n_ext=0, thr=0x2aaaec06a610) at row/row0ins.c:2069 #5 0x000000000074bbb7 in row_ins_index_entry (index=0x2aaaec0238d8, entry=0x2aaaec085d18, n_ext=0, foreign=<value optimized out>, thr=0x2aaaec06a610) at row/row0ins.c:2148 #6 0x000000000074be72 in row_ins_index_entry_step (thr=0x2aaaec06a610) at row/row0ins.c:2233 #7 row_ins (thr=0x2aaaec06a610) at row/row0ins.c:2365 #8 row_ins_step (thr=0x2aaaec06a610) at row/row0ins.c:2475 #9 0x000000000075232e in row_insert_for_mysql (mysql_rec=0x2aaaec06a020 "/375|", prebuilt=0x2aaaec090aa8) at row/row0mysql.c:1139 #10 0x0000000000702d4b in ha_innobase::write_row (this=0x2aaaec069e30, record=0x2aaaec06a020 "/375|") at handler/ha_innodb.cc:4913 #11 0x000000000066545d in handler::ha_write_row (this=0x2aaaec069e30, buf=0x2aaaec06a020 "/375|") at handler.cc:4654 #12 0x00000000005ff83d in write_record (thd=0x2aaae01e4b50, table=0x2aaaec04f8a0, info=0x5ac84340) at sql_insert.cc:1610 #13 0x00000000006030fa in mysql_insert (thd=0x2aaae01e4b50, table_list=0x2aaaec009878, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at sql_insert.cc:839 #14 0x000000000059659d in mysql_execute_command (thd=0x2aaae01e4b50) at sql_parse.cc:3223 #15 0x000000000059b117 in mysql_parse (thd=0x2aaae01e4b50, inBuf=0x2aaaec009780 "insert into test.cindy value(124)", length=33, found_semicolon=0x5ac86080) at sql_parse.cc:6021 #16 0x000000000059d056 in dispatch_command (command=COM_QUERY, thd=0x2aaae01e4b50, packet=0x2aaae00f4241 "insert into test.cindy value(124)", packet_length=<value optimized out>) at sql_parse.cc:1232 #17 0x000000000059da46 in do_command (thd=0x2aaae01e4b50) at sql_parse.cc:874 #18 0x0000000000590288 in handle_one_connection (arg=<value optimized out>) at sql_connect.cc:1153 #19 0x000000330600673d in start_thread () from /lib64/libpthread.so.0 #20 0x00000033054d3d1d in clone () from /lib64/libc.so.6 (gdb) p *trx $5 = {magic_n = 91118598, op_info = 0x947f3b "inserting", is_purge = 0, is_recovered = 0, conc_state = 1, que_state = 0, isolation_level = 2, check_foreigns = 1, check_unique_secondary = 1, support_xa = 1, flush_log_later = 0, must_flush_log_later = 0, dict_operation = 0, duplicates = 0, active_trans = 1, has_search_latch = 0, declared_to_be_inside_innodb = 0, handling_signals = 0, dict_operation_lock_mode = 0, start_time = 1293483786, id = {high = 0, low = 20444563}, xid = {formatID = 1, gtrid_length = 24, bqual_length = 0, data = "MySQLXid/001/000/000/000/000/000/000/000/236#d/002", '/000' <repeats 107 times>}, no = {high = 4294967295, low = 4294967295}, commit_lsn = 11177801890, table_id = {high = 0, low = 0}, mysql_thd = 0x2aaae01e4b50, mysql_query_str = 0x0, mysql_log_file_name = 0x0, mysql_log_offset = 429602722, mysql_master_log_file_name = 0x923d3a "", mysql_master_log_pos = 0, mysql_relay_log_file_name = 0x923d3a "", mysql_relay_log_pos = 0, mysql_thread_id = 1523083584, mysql_process_no = 6662, n_mysql_tables_in_use = 1, mysql_n_tables_locked = 1, search_latch_timeout = 10000, n_tickets_to_enter_innodb = 0, trx_list = {prev = 0x0, next = 0x0}, mysql_trx_list = {prev = 0x0, next = 0x0}, error_state = 10, error_info = 0x2aaae4381af8, error_key_num = 0, sess = 0xfd6d778, graph = 0x0, n_active_thrs = 1, graph_before_signal_handling = 0x0, sig = {type = 0, sender = 0, receiver = 0x0, savept = {least_undo_no = {high = 0, low = 0}}, signals = {prev = 0x0, next = 0x0}, reply_signals = {prev = 0x0, next = 0x0}}, signals = {count = 0, start = 0x0, end = 0x0}, reply_signals = {count = 0, start = 0x0, end = 0x0}, wait_lock = 0x0, was_chosen_as_deadlock_victim = 0, wait_started = 0, wait_thrs = {count = 0, start = 0x0, end = 0x0}, deadlock_mark = 0, lock_heap = 0x10ab62d0, trx_locks = {count = 1, start = 0x10ab6348, end = 0x10ab6348}, global_read_view_heap = 0x10ab6450, global_read_view = 0x0, read_view = 0x0, trx_savepoints = {count = 0, start = 0x0, end = 0x0}, undo_mutex = {event = 0x10a88c60, lock_word = 1 '/001', waiters = 0, list = {prev = 0x10b25b98, next = 0x2aaafc062018}, cfile_name = 0x950730 "trx/trx0trx.c", cline = 195, count_os_wait = 0}, undo_no = {high = 0, low = 0}, last_sql_stat_start = {least_undo_no = {high = 0, low = 0}}, rseg = 0xfaabf38, insert_undo = 0x0, update_undo = 0x0, roll_limit = {high = 0, low = 0}, pages_undone = 0, undo_no_arr = 0x0, n_autoinc_rows = 0, autoinc_locks = 0x10a88d58, detailed_error = '/000' <repeats 38 times>"/360, ?/340x/003ت*/000/000/000[/322/000/000/000/000/000/000k/255/020", '/000' <repeats 13 times>, "[/322/000/000/000/000/000/030k/255/020", '/000' <repeats 36 times>, "pX/003ت*/000/000/260/333/005ت*/000/000/270/333/005ت*", '/000' <repeats 51 times>, "J/004/200/000/000/000/000/360/332/005ت*", '/000' <repeats 11 times>, "[/322/000/000/000/000/000/250k/255/020", '/000' <repeats 13 times>, "[/322/000/000/000/000/000/300k/255/020/000/000/000", io_reads = 0, io_read = 0, io_reads_wait_timer = 0, lock_que_wait_ustarted = 0, lock_que_wait_timer = 0, innodb_que_wait_timer = 0, distinct_page_access = 0, distinct_page_access_hash = 0x0, take_stats = 0, lock_latch = {lock_word = 1048576, waiters = 0, recursive = 0, writer_thread = 1523083584, event = 0x10a2bb00, wait_ex_event = 0x10a2bb80, list = { prev = 0x10b25d88, next = 0x2aaafc062208}, count_os_wait = 0, cfile_name = 0x950730 "trx/trx0trx.c", last_s_file_name = 0x9410b3 "lock/lock0lock.c", last_x_file_name = 0x9410b3 "lock/lock0lock.c", writer_is_wait_ex = 0, cline = 205, last_s_line = 4183, last_x_line = 3967, magic_n = 22643}, in_trx_list = 1} (gdb) ================ /*************************************************************************** Writes information to an undo log about an insert, update, or a delete marking of a clustered index record. This information is used in a rollback of the transaction and in consistent reads that must look to the history of this transaction. */ ulint trx_undo_report_row_operation ================ (gdb) c Continuing. Breakpoint 1, trx_undo_assign_undo (trx=0x102cc3a8, type=2) at trx/trx0undo.c:1775 1775 in trx/trx0undo.c (gdb) bt #0 trx_undo_assign_undo (trx=0x102cc3a8, type=2) at trx/trx0undo.c:1775 #1 0x000000000077a4cc in trx_undo_report_row_operation (flags=<value optimized out>, op_type=2, thr=<value optimized out>, index=0x2aaaec0238d8, clust_entry=0x0, update=0x0, cmpl_info=0, rec=0x2aaac79e409b "", roll_ptr=0x5b1d8220) at trx/trx0rec.c:1201 #2 0x000000000079e03d in btr_cur_del_mark_set_clust_rec (flags=2, cursor=0x2aaaec092f88, val=1, thr=0x2aaaec02f038, mtr=0x5b1d82e0) at btr/btr0cur.c:2548 #3 0x0000000000764646 in row_upd_del_mark_clust_rec (node=0x2aaaec02ed80, thr=0x2aaaec02f038) at row/row0upd.c:1790 #4 row_upd_clust_step (node=0x2aaaec02ed80, thr=0x2aaaec02f038) at row/row0upd.c:1904 #5 0x0000000000764f0b in row_upd (thr=0x2aaaec02f038) at row/row0upd.c:2011 #6 row_upd_step (thr=0x2aaaec02f038) at row/row0upd.c:2142 #7 0x0000000000751de6 in row_update_for_mysql (mysql_rec=<value optimized out>, prebuilt=0x2aaaec090aa8) at row/row0mysql.c:1384 #8 0x00000000007024c3 in ha_innobase::delete_row (this=0x2aaaec069e30, record=0x2aaaec06a020 "/375|") at handler/ha_innodb.cc:5302 #9 0x000000000066532b in handler::ha_delete_row (this=0x2aaaec069e30, buf=0x2aaaec06a020 "/375|") at handler.cc:4689 #10 0x00000000006133dd in mysql_delete (thd=0x2aaae01e4b50, table_list=0x2aaad8044298, conds=0x2aaad8044740, order=<value optimized out>, limit=18446744073709551615, options=0, reset_auto_increment=false) at sql_delete.cc:319 #11 0x00000000005990af in mysql_execute_command (thd=0x2aaae01e4b50) at sql_parse.cc:3352 #12 0x000000000059b117 in mysql_parse (thd=0x2aaae01e4b50, inBuf=0x2aaad80441a0 "delete from test.cindy where id=124", length=35, found_semicolon=0x5b1db080) at sql_parse.cc:6021 #13 0x000000000059d056 in dispatch_command (command=COM_QUERY, thd=0x2aaae01e4b50, packet=0x2aaae00f4241 "delete from test.cindy where id=124", packet_length=<value optimized out>) at sql_parse.cc:1232 #14 0x000000000059da46 in do_command (thd=0x2aaae01e4b50) at sql_parse.cc:874 #15 0x0000000000590288 in handle_one_connection (arg=<value optimized out>) at sql_connect.cc:1153 #16 0x000000330600673d in start_thread () from /lib64/libpthread.so.0 #17 0x00000033054d3d1d in clone () from /lib64/libc.so.6 (gdb) p *trx $8 = {magic_n = 91118598, op_info = 0x947f26 "updating or deleting", is_purge = 0, is_recovered = 0, conc_state = 1, que_state = 0, isolation_level = 2, check_foreigns = 1, check_unique_secondary = 1, support_xa = 1, flush_log_later = 0, must_flush_log_later = 0, dict_operation = 0, duplicates = 0, active_trans = 1, has_search_latch = 0, declared_to_be_inside_innodb = 0, handling_signals = 0, dict_operation_lock_mode = 0, start_time = 1293485883, id = {high = 0, low = 20444567}, xid = {formatID = 1, gtrid_length = 24, bqual_length = 0, data = "MySQLXid/001/000/000/000/000/000/000/000/243#d/002", '/000' <repeats 107 times>}, no = {high = 4294967295, low = 4294967295}, commit_lsn = 11177802556, table_id = {high = 0, low = 0}, mysql_thd = 0x2aaae01e4b50, mysql_query_str = 0x0, mysql_log_file_name = 0x0, mysql_log_offset = 429603090, mysql_master_log_file_name = 0x923d3a "", mysql_master_log_pos = 0, mysql_relay_log_file_name = 0x923d3a "", mysql_relay_log_pos = 0, mysql_thread_id = 1528674624, mysql_process_no = 6662, n_mysql_tables_in_use = 1, mysql_n_tables_locked = 1, search_latch_timeout = 10000, n_tickets_to_enter_innodb = 0, trx_list = {prev = 0x0, next = 0x0}, mysql_trx_list = {prev = 0x0, next = 0x0}, error_state = 10, error_info = 0x2aaae4381af8, error_key_num = 0, sess = 0xfd6d778, graph = 0x0, n_active_thrs = 1, graph_before_signal_handling = 0x0, sig = {type = 0, sender = 0, receiver = 0x0, savept = {least_undo_no = {high = 0, low = 0}}, signals = {prev = 0x0, next = 0x0}, reply_signals = {prev = 0x0, next = 0x0}}, signals = {count = 0, start = 0x0, end = 0x0}, reply_signals = {count = 0, start = 0x0, end = 0x0}, wait_lock = 0x0, was_chosen_as_deadlock_victim = 0, wait_started = 393919, wait_thrs = {count = 0, start = 0x0, end = 0x0}, deadlock_mark = 0, lock_heap = 0x1026e8e0, trx_locks = {count = 2, start = 0x1026e958, end = 0x1026e9a8}, global_read_view_heap = 0x102cc8d0, global_read_view = 0x0, read_view = 0x0, trx_savepoints = {count = 0, start = 0x0, end = 0x0}, undo_mutex = {event = 0x1014ddc0, lock_word = 1 '/001', waiters = 0, list = {prev = 0x102fc178, next = 0x102cfa78}, cfile_name = 0x950730 "trx/trx0trx.c", cline = 195, count_os_wait = 0}, undo_no = {high = 0, low = 0}, last_sql_stat_start = {least_undo_no = {high = 0, low = 0}}, rseg = 0xfaabf38, insert_undo = 0x0, update_undo = 0x0, roll_limit = {high = 0, low = 0}, pages_undone = 0, undo_no_arr = 0x0, n_autoinc_rows = 0, autoinc_locks = 0x102ccac8, detailed_error = "/000/061cj0kphwtfusgog-ii7yhztpkw0f-wg0wz1fni9qy2hcqxbwejsvgji-pjepdup7rqmo7wdfyurmp0sdjixabdzownbxf-fgp-twv4z1yonlpdzivug4hptcae7pdmurmxlf-vhxheggsdnlhdqnrtz-v4p7rhybctqbm562kmiaa3vfhjc6az5geunt9j2laswxycz"..., io_reads = 0, io_read = 0, io_reads_wait_timer = 0, lock_que_wait_ustarted = 0, lock_que_wait_timer = 0, innodb_que_wait_timer = 0, distinct_page_access = 0, distinct_page_access_hash = 0x0, take_stats = 0, lock_latch = {lock_word = 1048576, waiters = 0, recursive = 0, writer_thread = 1528674624, event = 0x102ccb10, wait_ex_event = 0x102ccb90, list = {prev = 0x102fc368, next = 0x102cfc68}, count_os_wait = 0, cfile_name = 0x950730 "trx/trx0trx.c", last_s_file_name = 0x9410b3 "lock/lock0lock.c", last_x_file_name = 0x9410b3 "lock/lock0lock.c", writer_is_wait_ex = 219134898200, cline = 205, last_s_line = 4183, last_x_line = 1991, magic_n = 22643}, in_trx_list = 1} (gdb) start engine: (gdb) bt #0 trx_undo_page_init (undo_page=0x2aaab34e8000 "", type=1, mtr=0x7fffffff85a0) at trx/trx0undo.c:385 #1 0x00000000007893a3 in trx_undo_seg_create (trx=0x19fed28, type=1) at trx/trx0undo.c:474 #2 trx_undo_create (trx=0x19fed28, type=1) at trx/trx0undo.c:1613 #3 trx_undo_assign_undo (trx=0x19fed28, type=1) at trx/trx0undo.c:1797 #4 0x000000000077a94f in trx_undo_report_row_operation (flags=<value optimized out>, op_type=1, thr=<value optimized out>, index=0x17353f8, clust_entry=0x1a0a868, update=0x0, cmpl_info=0, rec=0x0, roll_ptr=0x7fffffff9700) at trx/trx0rec.c:1185 #5 0x00000000007a4ec9 in btr_cur_ins_lock_and_undo (flags=0, cursor=0x7fffffffa520, entry=0x1a0a868, rec=0x7fffffffa5b8, big_rec=0x7fffffffa5b0, n_ext=0, thr=0x1a08110, mtr=0x7fffffff9c80) at btr/btr0cur.c:967 #6 btr_cur_optimistic_insert (flags=0, cursor=0x7fffffffa520, entry=0x1a0a868, rec=0x7fffffffa5b8, big_rec=0x7fffffffa5b0, n_ext=0, thr=0x1a08110, mtr=0x7fffffff9c80) at btr/btr0cur.c:1171 #7 0x000000000074b24c in row_ins_index_entry_low (mode=2, index=0x17353f8, entry=0x1a0a868, n_ext=0, thr=0x1a08110) at row/row0ins.c:2069 #8 0x000000000074bbb7 in row_ins_index_entry (index=0x17353f8, entry=0x1a0a868, n_ext=0, foreign=<value optimized out>, thr=0x1a08110) at row/row0ins.c:2148 #9 0x000000000074be72 in row_ins_index_entry_step (thr=0x1a08110) at row/row0ins.c:2233 #10 row_ins (thr=0x1a08110) at row/row0ins.c:2365 #11 row_ins_step (thr=0x1a08110) at row/row0ins.c:2475 #12 0x0000000000743478 in que_thr_step (thr=0x1a08110) at que/que0que.c:1229 #13 que_run_threads_low (thr=0x1a08110) at que/que0que.c:1315 #14 que_run_threads (thr=0x1a08110) at que/que0que.c:1352 #15 0x0000000000743936 in que_eval_sql (info=0x0, sql=<value optimized out>, reserve_dict_mutex=<value optimized out>, trx=0x19fed28) at que/que0que.c:1435 #16 0x00000000007c1dd1 in dict_create_or_check_foreign_constraint_tables () at dict/dict0crea.c:1215 #17 0x000000000076e117 in innobase_start_or_create_for_mysql () at srv/srv0start.c:2040 #18 0x00000000006fd388 in innobase_init (p=<value optimized out>) at handler/ha_innodb.cc:2648 #19 0x0000000000662c31 in ha_initialize_handlerton (plugin=0xe4d098) at handler.cc:435 #20 0x00000000006de04e in plugin_initialize (plugin=0xe4d098) at sql_plugin.cc:1022 #21 0x00000000006dfb81 in plugin_init (argc=0xd289b0, argv=0xe21f10, flags=<value optimized out>) at sql_plugin.cc:1249 #22 0x000000000058bbd1 in init_server_components () at mysqld.cc:4060 #23 0x000000000058c4ef in main (argc=<value optimized out>, argv=<value optimized out>) at mysqld.cc:4556 (gdb)