Crash on assertion in InnoDB rollback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Fix Released
|
Critical
|
Seppo Jaakola | ||
Trunk |
Fix Released
|
Critical
|
Seppo Jaakola |
Bug Description
After the latest merge with 5.1.37 nodes are easily crashed (almost instantaneously) with sqlgen even with 10 tables and 1000 rows setting:
090904 0:30:53 [Warning] local.c:
mysqld: handler.cc:1274: int ha_rollback_
090904 0:30:53 - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_
read_buffer_
max_used_
max_threads=151
threads_connected=4
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd: 0x998ad58
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x968eb3d0 thread_stack 0x30000
/home/ayurchen/
/home/ayurchen/
[0xb7f7d420]
/lib/tls/
/lib/tls/
/home/ayurchen/
/home/ayurchen/
/home/ayurchen/
/home/ayurchen/
/home/ayurchen/
/lib/tls/
/lib/tls/
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x99a5498 = UPDATE comm01 SET x = (x + 1) % 65537, y = ((y*x % 65537) + (47133*y % 65537) + (y*z % 65537)) % 65537, z = ((z*x % 65537) + (z*y % 65537) + (47133*z % 65537)) % 65537, r = 0.282626 WHERE p = 0
thd->thread_id=4
thd->killed=
Related branches
tags: | added: assert crash innodb rollback |
The problem can be reproduced in gdb session, here is the stack trace: nosegneg/ libc.so. 6 nosegneg/ libc.so. 6 nosegneg/ libc.so. 6 ROLLBACK) 0xa6ba0589 "", packet_length=32) at sql_parse.cc:1760 one_connection (arg=0xa6b91888) at sql_connect.cc:1155 nosegneg/ libpthread. so.0 nosegneg/ libc.so. 6
(gdb) bt
#0 0x0073f402 in __kernel_vsyscall ()
#1 0x001a9fd0 in raise () from /lib/i686/
#2 0x001ab9b1 in abort () from /lib/i686/
#3 0x001a339b in __assert_fail () from /lib/i686/
#4 0x083968be in ha_rollback_trans (thd=0xa6b91888, all=true)
at handler.cc:1273
#5 0x0825f164 in end_trans (thd=0xa6b91888, completion=
at sql_parse.cc:767
#6 0x0826f667 in dispatch_command (command=COM_QUERY, thd=0xa6b91888,
packet=
#7 0x0827057a in do_command (thd=0xa6b91888) at sql_parse.cc:948
#8 0x08257cf8 in handle_
#9 0x002fe4d2 in start_thread () from /lib/i686/
#10 0x0025448e in clone () from /lib/i686/