Bug #30193 | crash during drop table and kill | ||
---|---|---|---|
Submitted: | 2 Aug 2007 1:05 | Modified: | 29 Aug 2007 1:33 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S1 (Critical) |
Version: | 5.0.48BK | OS: | Any |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
Tags: | crash, drop table, KILL |
[2 Aug 2007 1:05]
Shane Bester
[2 Aug 2007 1:22]
MySQL Verification Team
testcase
Attachment: bug30193.c (text/plain), 5.79 KiB.
[2 Aug 2007 1:23]
MySQL Verification Team
crashed my windows 5.0.46 also: mysqld-debug.exe!remove_table_from_cache() Line 6068 mysqld-debug.exe!lock_table_name() Line 887 mysqld-debug.exe!lock_table_names() Line 960 mysqld-debug.exe!mysql_rm_table_part2() Line 231 mysqld-debug.exe!mysql_rm_table() Line 127 mysqld-debug.exe!mysql_execute_command() Line 3727 mysqld-debug.exe!mysql_parse() Line 6083 mysqld-debug.exe!dispatch_command() Line 1812 mysqld-debug.exe!do_command() Line 1586 mysqld-debug.exe!handle_one_connection() Line 1197 mysqld-debug.exe!pthread_start() Line 62 mysqld-debug.exe!_callthreadstart() Line 293 mysqld-debug.exe!_threadstart(void * ptd=0x0288d028) Line 277
[2 Aug 2007 1:28]
MySQL Verification Team
sbester@www:~> gcc bug30193.c -g -o bug30193 -L/home/sbester/server/5.0/mysql-5.0.48-linux-i686/lib -I/home/sbester/server/5.0/mysql-5.0.48-linux-i686/include -lmysqlclient_r -lz -lpthread sbester@www:~> ./bug30193 running initializations.. about to spawn 10 threads .......... completed spawning new database worker threads .. running them for 10 seconds... now about to spawn the killer thread... can't get processlist. server died!!!1 2003 (Can't connect to MySQL server on '127.0.0.1' (111)) error processing processlist results... count: 1000 count: 1000
[2 Aug 2007 14:11]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/32012 ChangeSet@1.2498, 2007-08-02 17:11:35+03:00, gkodinov@magare.gmz +1 -0 Bug #30193: crash during drop table and kill When DROP TABLE detects that it has been killed by another thread it must unlock the table names it locked. Fixed by backporting the 5.1 error handling code.
[15 Aug 2007 9:48]
Bugs System
Pushed into 5.1.22-beta
[15 Aug 2007 9:51]
Bugs System
Pushed into 5.0.48
[29 Aug 2007 1:33]
Paul DuBois
Noted in 5.0.48 changelog. When a thread executing a DROP TABLE statement was killed, the table name locks that had been acquired were not released. (Fix does not apply to 5.1, which did not have the problem.)