innodb plugin - Corrupted rollback segment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Fix Released
|
High
|
Seppo Jaakola |
Bug Description
Running ultimate conflict rate test against two node cluster, configured to use innodb plugin, will result in segfault.
The test load was generated with sqlgen:
~/sqlgen --user=root --password=rootpass --port=3306 --host=abyssinian --host=bengal --create=0 --users=10 --duration=60
Only one node segfaults, here is the stack trace, from gdb session:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f4ddb49e950 (LWP 24174)]
0x00007f4e00babfb0 in mem_heap_
n=184467440
line=528) at mem/mem0mem.c:357
357 mem/mem0mem.c: No such file or directory.
in mem/mem0mem.c
Current language: auto; currently c
(gdb) bt
#0 0x00007f4e00babfb0 in mem_heap_
#1 0x00007f4e00bac0fd in mem_heap_add_block (heap=0x7f4dcc0
#2 0x00007f4e00bab017 in mem_heap_alloc (heap=0x7f4dcc0
#3 0x00007f4e00bab9aa in mem_heap_dup (heap=0x7f4dcc0
#4 0x00007f4e00bff36b in trx_undo_rec_copy (undo_rec=
#5 0x00007f4e00c015d7 in trx_undo_
#6 0x00007f4e00c01654 in trx_undo_
undo_
#7 0x00007f4e00c0187d in trx_undo_
rec=
#8 0x00007f4e00bf175d in row_vers_
in_
#9 0x00007f4e00be81e2 in row_sel_
#10 0x00007f4e00bea41a in row_search_
#11 0x00007f4e00b8f77f in ha_innodb:
#12 0x00000000007889be in handler:
#13 0x000000000077f83b in handler:
#14 0x00000000006be636 in join_read_const (tab=0x46d64e8) at sql_select.cc:11593
#15 0x00000000006cb191 in join_read_
#16 0x00000000006d5092 in make_join_
#17 0x00000000006d6b8f in JOIN::optimize (this=0x7f4dcc1
#18 0x00000000006dabeb in mysql_select (thd=0x4705ae8, rref_pointer_
#19 0x00000000006e04a4 in handle_select (thd=0x4705ae8, lex=0x4707588, result=0x46d5ce8, setup_tables_
#20 0x0000000000645d2b in execute_
#21 0x00000000006485f1 in mysql_execute_
#22 0x00000000006534cd in mysql_parse (thd=0x4705ae8, inBuf=0x46d5458 "SELECT * FROM comm01 WHERE p = 0", length=32, found_semicolon
#23 0x0000000000654549 in dispatch_command (command=COM_QUERY, thd=0x4705ae8,
packet=
#24 0x0000000000656570 in do_command (thd=0x4705ae8) at sql_parse.cc:964
#25 0x000000000063ee43 in handle_
#26 0x00007f4e038103ba in start_thread () from /lib/libpthread
#27 0x00007f4e02564fcd in clone () from /lib/libc.so.6
#28 0x0000000000000000 in ?? ()
Changed in codership-mysql: | |
status: | Fix Committed → Fix Released |
This issue looks similar to lp:408290
That "Corrupted rollback segment" issue, got fixed by merge to MySQL 5.1.37. Diagnosis was that innodb undo processing had a hidden bug, which got fixed in 5.1.37 version.