Bug #11832 | Server crash with InnoDB + Cursors | ||
---|---|---|---|
Submitted: | 9 Jul 2005 11:23 | Modified: | 10 Aug 2005 15:15 |
Reporter: | Georg Richter | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.7 | OS: | Linux (Linux) |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[9 Jul 2005 11:23]
Georg Richter
[10 Jul 2005 4:48]
Aleksey Kishkin
tested and realized that this example works even with 5.0.7. 0x8099c42 handle_segfault + 430 0x8342fb8 pthread_sighandler + 184 0x82307ba trx_free + 626 0x82318d9 trx_free_for_mysql + 689 0x812f473 innobase_close_connection__FP3THD + 35 0x8125d71 ha_close_connection__FP3THD + 49 0x808f676 _._3THD + 142 0x8099850 end_thread__FP3THDb + 64 0x80a81c8 handle_one_connection + 1056 0x834076c pthread_start_thread + 220 0x836a17a thread_start + 4
[11 Jul 2005 11:09]
Heikki Tuuri
Hi! I do not understand how Georg got InnoDB to crash inside fsp0fsp.c. The crash by Alexei Kishkin looks more natural. MySQL should not allow a table to be DROPped or ALTERed when there is an open cursor to it. Or, the cursor should be 'released' in such a situation. Regards, Heikki
[11 Jul 2005 12:04]
Georg Richter
Heikki, my backtrace was not correct. The first time it crashes in trxotrx.c (trx_free). When starting the test again table t1 is corrupted and a simple select on this table crashes the server.
[29 Jul 2005 10:49]
Andrey Hristov
The fix for 11813 didn't fix that one. Tried with today's snapshot which has no problems with 11813. The stack trace is very similar to 12243 and 12263.
[6 Aug 2005 9:12]
Konstantin Osipov
Georg, do you have a non-interactive test case for this bug? I'd love to add it to the test suite.
[6 Aug 2005 17:07]
Andrey Hristov
Konstantin, I don't see much interactivity :) IMO this could be added to the test suite only the printf() should be removed.
[8 Aug 2005 9:14]
Konstantin Osipov
Andrey, if you try this test case with the patch I sent you, you'll see that now ALTER TABLE hangs in the second connection. One needs to press ctrl-c (abort the connection) to abort that alter table.
[8 Aug 2005 10:07]
Andrey Hristov
I see
[10 Aug 2005 14:36]
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/internals/28111
[10 Aug 2005 15:02]
Konstantin Osipov
Approved by Heikki Tuuri via email.
[10 Aug 2005 15:03]
Konstantin Osipov
Fixed in 5.0 tree, currently tagged 5.0.12
[10 Aug 2005 15:15]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Documented in 5.0.12 change history.