Comment 4 for bug 649408

Vadim Tkachenko (vadim-tk) wrote :

Program terminated with signal 11, Segmentation fault.
#0 mem_heap_create_block (heap=0x2acaac0eb9c0, n=100704, type=0, file_name=0x2acaac0eb9c8 "0vers.c", line=528)
    at mem/mem0mem.c:357
357 mem/mem0mem.c: No such file or directory.
        in mem/mem0mem.c
(gdb) bt
#0 mem_heap_create_block (heap=0x2acaac0eb9c0, n=100704, type=0, file_name=0x2acaac0eb9c8 "0vers.c", line=528)
    at mem/mem0mem.c:357
#1 0x0000000000707a46 in mem_heap_add_block (heap=0x2acaac0eb9c0, n=100704) at mem/mem0mem.c:446
#2 0x0000000000707dc8 in mem_heap_alloc (heap=0x8, data=0x2ac96edb5397, len=18446744073709546601) at ./include/mem0mem.ic:186
#3 mem_heap_dup (heap=0x8, data=0x2ac96edb5397, len=18446744073709546601) at mem/mem0mem.c:125
#4 0x000000000075545e in trx_undo_rec_copy (roll_ptr=..., heap=0x2acaac0eb9c0) at ./include/trx0rec.ic:110
#5 trx_undo_get_undo_rec_low (roll_ptr=..., heap=0x2acaac0eb9c0) at trx/trx0rec.c:1360
#6 0x00000000007554ea in trx_undo_get_undo_rec (roll_ptr=..., trx_id=..., undo_rec=0x4182b768, heap=0x2acaac0eb9c0)
    at trx/trx0rec.c:1398
#7 0x00000000007573de in trx_undo_prev_version_build (index_rec=0x2ac96e76af66 "\201e\203", index_mtr=<value optimized out>,
    rec=0x2ac96e76af66 "\201e\203", index=0x2acaa7f65728, offsets=0x4182bea0, heap=0x2acaac0eb9c0, old_vers=0x4182b828)
    at trx/trx0rec.c:1483
#8 0x000000000074742b in row_vers_build_for_consistent_read (rec=0x2ac96e76af66 "\201e\203", mtr=0x4182ba00,
    index=0x2acaa7f65728, offsets=0x4182c1d0, view=0x2acaa8025798, offset_heap=0x4182c1d8, in_heap=0x2acaac0eb870,
    old_vers=0x4182c1c8) at row/row0vers.c:559
#9 0x000000000073e831 in row_search_for_mysql (buf=0x2acaa7f727f0 "\320'\367\247\312*", mode=2, prebuilt=0x2acaa7f73428,
    match_mode=1, direction=0) at row/row0sel.c:4247
#10 0x00000000006e5175 in ha_innobase::index_read (this=0x2acaa7f723d0, buf=0x2acaa7f727f0 "\320'\367\247\312*",
    key_ptr=<value optimized out>, key_len=<value optimized out>, find_flag=HA_READ_KEY_EXACT) at handler/ha_innodb.cc:5803
#11 0x0000000000656ee9 in handler::index_read_idx_map (this=0x2acaa7f723d0, buf=0x2acaa7f727f0 "\320'\367\247\312*",
    index=<value optimized out>, key=0x2acaa8042828 "e\001\003", keypart_map=3, find_flag=HA_READ_KEY_EXACT) at handler.cc:4428
#12 0x00000000005e2897 in join_read_const (tab=0x2acaa80425c0) at sql_select.cc:11909
#13 0x00000000005eb9dd in join_read_const_table (tab=0x2acaa80425c0, pos=0x2acaa8040b30) at sql_select.cc:11812
#14 0x00000000005ec3f6 in make_join_statistics (join=0x2acaa8040a98, tables_arg=0x2acaac0dc9d0, conds=0x2acaa80408f0,
    keyuse_array=0x2acaa8042058) at sql_select.cc:2933
#15 0x00000000005ede07 in JOIN::optimize (this=0x2acaa8040a98) at sql_select.cc:1035
#16 0x00000000005f7101 in mysql_select (thd=0x2acaa7ea6010, rref_pointer_array=0x2acaac0dbf08, tables=0x2acaac0dc9d0,
    wild_num=0, fields=..., conds=0x2acaa80408f0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0,
    select_options=2416724480, result=0x2acaac0ddd08, unit=0x2acaac0db910, select_lex=0x2acaac0dbd38) at sql_select.cc:2518
#17 0x00000000005f7b55 in handle_select (thd=0x2acaa7ea6010, lex=0x2acaac0db870, result=0x2acaac0ddd08,
    setup_tables_done_option=0) at sql_select.cc:280
#18 0x00000000005864b1 in execute_sqlcom_select (thd=0x2acaa7ea6010, all_tables=0x2acaac0dc9d0) at sql_parse.cc:5181
#19 0x0000000000589721 in mysql_execute_command (thd=0x2acaa7ea6010) at sql_parse.cc:2362
#20 0x0000000000603520 in Prepared_statement::execute (this=0x2acaac0db500, expanded_query=<value optimized out>,
    open_cursor=false) at sql_prepare.cc:3879
#21 0x00000000006056f4 in Prepared_statement::execute_loop (this=0x2acaac0db500, expanded_query=0x4182e180, open_cursor=false,
    packet=<value optimized out>, packet_end=<value optimized out>) at sql_prepare.cc:3554
#22 0x0000000000605a09 in mysqld_stmt_execute (thd=0x2acaa7ea6010, packet_arg=0x2acaa7ea8b71 "!", packet_length=23)
    at sql_prepare.cc:2601
#23 0x000000000058fc61 in dispatch_command (command=COM_STMT_EXECUTE, thd=0x2acaa7ea6010, packet=0x2acaa7ea8b71 "!",
    packet_length=0) at sql_parse.cc:1231
#24 0x0000000000590e30 in do_command (thd=0x2acaa7ea6010) at sql_parse.cc:901
#25 0x0000000000582d17 in handle_one_connection (arg=0x2acaa7ea6010) at sql_connect.cc:1738
#26 0x0000003d2760673d in start_thread () from /lib64/libpthread.so.0
#27 0x0000003d26ed3d1d in clone () from /lib64/libc.so.6