| Bug #46676 | mysqld got exception 0xc0000005 | ||
|---|---|---|---|
| Submitted: | 12 Aug 15:45 | Modified: | 12 Nov 13:43 |
| Reporter: | Douglas Wright | ||
| Status: | Patch approved | ||
| Category: | Server: InnoDB Plugin | Severity: | S1 (Critical) |
| Version: | 5.1.37 | OS: | Microsoft Windows (Server 2003) |
| Assigned to: | Calvin Sun | Target Version: | 5.1+ |
| Triage: | Triaged: D1 (Critical) | ||
[12 Aug 15:45]
Douglas Wright
[12 Aug 16:20]
Miguel Solorzano
See bug: http://bugs.mysql.com/bug.php?id=32099.
[12 Aug 16:29]
Douglas Wright
5.1.34 does not have this bug.
[12 Aug 18:07]
Miguel Solorzano
PHPMyADMIN
Attachment: phpmyadmin.png (image/png, text), 137.60 KiB.
[12 Aug 18:09]
Miguel Solorzano
I couldn't repeat this issue on Vista Premium Home Edition 64-bit.
[12 Aug 22:15]
Douglas Wright
It must be something to do with the specific database/table structure that I have as it's reproducible for me on 2 different machines (Server 2003 64-bit, and a 32-bit XP). I will see if I can narrow it down.
[12 Aug 22:38]
Miguel Solorzano
I guess is specific to your database/table so if you are to able to find the cause would be nice you provide the dump file to create them, also your my.ini file. Thanks in advance.
[13 Aug 6:45]
Shane Bester
if you can upload just the schema for us, it might be enough: mysqldump --all-databases --no-data --routines -uroot -p > bug46676_schema.sql if not, then you have to narrow it down with your data.
[14 Aug 0:15]
Douglas Wright
Minimal schema
Attachment: bug46676_schema.sql (text/x-sql), 5.46 KiB.
[14 Aug 0:18]
Douglas Wright
I have uploaded the precise schema fragment that causes the crash. I have also identified that this is a crash-bug specific to the InnoDB plugin (1.0.4). The version of InnoDB built in 5.1.37 does not crash.
[14 Aug 5:16]
Calvin Sun
Douglas - are you using the 1.0.4 plugin downloaded from InnoDB website, or the one built by yourself? Thanks!
[14 Aug 10:05]
Douglas Wright
The plugin was downloaded.
[14 Aug 16:01]
Michael Izioumtchenko
the stack backtrace doesn't seem to show anything InnoDB plugin related. Would it reproduce with InnoDB builtin? Would it reproduce when mysqld is started without InnoDB?
[14 Aug 16:32]
Douglas Wright
It's 100% reproducible with the plugin installed, and not reproducible at all without it. So it's definitely plugin-related - whether the problem is on InnoDB's side, or MySQL's side is something that I can't help with.
[17 Aug 8:30]
Sveta Smirnova
Thank you for the report. Verified as described.
[17 Aug 8:31]
Sveta Smirnova
Bug #46745 was marked as duplicate of this one.
[10 Nov 17:03]
Scott Noyes
Seems like it's related to circular foreign keys with the InnoDB plugin: SET foreign_key_checks=0; CREATE TABLE t1 (id int, foreign key (id) references t2(id)); CREATE TABLE t2 (id int, foreign key (id) references t1(id)); SET foreign_key_checks=1; SELECT COUNT(*) FROM information_schema.key_column_usage; -- now the server crashes
[11 Nov 9:59]
Calvin Sun
Scott, in which version, you reproduced the crash with the test case? I could not see a crash with 5.1.40. Thanks!
[12 Nov 13:43]
Calvin Sun
This crash is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37. But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5). Add test case to catch future regression. Committed into internal repo as r6169.
[12 Nov 15:17]
Scott Noyes
Yes, my test was 5.1.37.
[21 Nov 1:59]
Hao Pang
Is there any other solution to avoid this bug? I also found this bug ,but for some reason I can't update the version to avoid it. So I want to know how to solve this bug in mysql 5.1.37 & InnoDB 1.0.4.
