Crash on truncate table operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBXT |
Fix Committed
|
High
|
Paul McCullagh |
Bug Description
Was testing version 1.0.11-6 Pre-GA compiled against version 5.1.48 and came across this issue while running dbbenchmark:
#0 0x0000003b13a0b9b2 in pthread_kill () from /lib64/
#1 0x00000000005bcf9d in handle_segfault (sig=11) at mysqld.cc:2591
#2 <signal handler called>
#3 0x00002aaab3d4c8bf in ha_pbxt:
#4 0x00000000006d2593 in handler:
#5 0x00000000005b7755 in mysql_lock_tables (thd=0xdda9210, tables=0xde08810, count=1, flags=<value optimized out>, need_reopen=
at lock.cc:364
#6 0x0000000000614e4d in lock_tables (thd=0xdda9210, tables=0xde084d8, count=<value optimized out>, need_reopen=
#7 0x000000000061efd0 in open_and_
#8 0x000000000066bdc2 in mysql_delete (thd=0xdda9210, table_list=
reset_
#9 0x000000000066cd25 in mysql_truncate (thd=0xdda9210, table_list=
#10 0x00000000005d4ad8 in mysql_execute_
#11 0x00000000005d7cb7 in mysql_parse (thd=0xdda9210, inBuf=0xde08400 "truncate table dbbench", length=22, found_semicolon
at sql_parse.cc:6100
#12 0x00000000005d8145 in dispatch_command (command=COM_QUERY, thd=0xdda9210, packet=<value optimized out>, packet_
at sql_parse.cc:1253
#13 0x00000000005d965a in do_command (thd=0xdda9210) at sql_parse.cc:891
#14 0x00000000005c897c in handle_
#15 0x0000003b13a064a7 in start_thread () from /lib64/
#16 0x0000003b132d3c2d in clone () from /lib64/libc.so.6
The operation was "truncate table dbbench" against an empty table.
The block of code:
if (!pb_open_
}
pb_open_tab is null at this point, hence the seg fault.
Partha Dutta
Sr. Mgr, MySQL Infrastructure & Operations
Related branches
Changed in pbxt: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
More info. This happens if the truncate operation occurs twice in a row against the same table.