| Bug #56561 | "Show table status" query, workbench "alter table" kills MySQL | ||
|---|---|---|---|
| Submitted: | 4 Sep 2010 17:51 | Modified: | 16 Oct 2010 19:41 |
| Reporter: | Tim Boura | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S2 (Serious) |
| Version: | 5.1.50 x64 | OS: | Windows (Vista) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | crash, show table status | ||
[4 Sep 2010 17:51]
Tim Boura
[4 Sep 2010 18:34]
Valeriy Kravchuk
Please, send the entire error log of your MySQL server (usually this is <hostname>.err file in the data directory).
[4 Sep 2010 21:49]
Tim Boura
Error file added. Stupid vista was hiding it from me and hiding the options to show it again or I'd have included it earlier. I finally managed to beat the relevant settings into submission I think the most interesting thing is a comment about being unable to find the AUTOINC column id...and then later on the stack trace is: 100904 15:52:27 - mysqld got exception 0xc0000005 ; 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_size=57671680 read_buffer_size=65536 max_used_connections=4 max_threads=100 threads_connected=3 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 89228 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0x572e880 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... 0000000140217C54 mysqld.exe!ha_innobase::innobase_peek_autoinc()[ha_innodb.cc:7972] 0000000140219CE5 mysqld.exe!ha_innobase::info()[ha_innodb.cc:6583] 0000000140089326 mysqld.exe!get_schema_tables_record()[sql_show.cc:3758] 000000014009575F mysqld.exe!get_all_tables()[sql_show.cc:3527] 00000001400975BC mysqld.exe!get_schema_tables_result()[sql_show.cc:6175] 0000000140174F6A mysqld.exe!JOIN::exec()[sql_select.cc:1846] 000000014017613A mysqld.exe!mysql_select()[sql_select.cc:2519] 0000000140176536 mysqld.exe!handle_select()[sql_select.cc:269] 0000000140069D90 mysqld.exe!execute_sqlcom_select()[sql_parse.cc:5109] 000000014006CD5C mysqld.exe!mysql_execute_command()[sql_parse.cc:2293] 0000000140071700 mysqld.exe!mysql_parse()[sql_parse.cc:6036] 00000001400723D8 mysqld.exe!dispatch_command()[sql_parse.cc:1262] 0000000140072E67 mysqld.exe!do_command()[sql_parse.cc:888] 0000000140099F47 mysqld.exe!handle_one_connection()[sql_connect.cc:1136] 000000014031E265 mysqld.exe!pthread_start()[my_winthread.c:85] 00000001402E8317 mysqld.exe!_callthreadstart()[thread.c:295] 00000001402E83E5 mysqld.exe!_threadstart()[thread.c:275] 0000000076FEBE3D kernel32.dll!BaseThreadInitThunk() 0000000077126A51 ntdll.dll!RtlUserThreadStart() Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 000000000DD67DC0=SHOW TABLE STATUS FROM `herodex` thd->thread_id=41 thd->killed=NOT_KILLED
[6 Sep 2010 17:03]
Sveta Smirnova
Thank you for the feedback. Have you created these tables in earlier version of MySQL, then upgraded? Could you please send us output of SHOW CREATE TABLE for problem tables and full ALTER STATEMENT you used?
[6 Sep 2010 18:13]
Tim Boura
Unfortunately as said above I had to drop the tables in order to continue with my work and I've not seen the problem since. The tables were originally created in a previous version of MySQL (probably around 1.5 years old) and exported as a .SQL file. They were then imported using the MySQL workbench into a fresh install of the latest available version of MySQL. I don't have an exact list of what changes had been made as this is a development machine and I was experimenting with various things. At the very least tables and fields were renamed, foreign keys were deleted and added, etc. I also don't know at what point the failure happened as it involved an operation I hadn't tried to do up until the point I first discovered the problem. This is the fragment of the database backup that created two of the faulty tables. -- -- Definition of table `pds_wallet_transfer_history` -- DROP TABLE IF EXISTS `pds_wallet_transfer_history`; CREATE TABLE `pds_wallet_transfer_history` ( `Id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `WalletId` bigint(20) unsigned NOT NULL, `OtherWalletId` bigint(20) unsigned NOT NULL, `Amount` bigint(20) NOT NULL, `Reason` int(10) unsigned NOT NULL, `Balance` bigint(20) NOT NULL, `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`Id`), KEY `FK_pds_wallet_transfer_history_reason` (`Reason`), KEY `FK_pds_wallet_transfer_history_source` (`WalletId`) USING BTREE, KEY `FK_pds_wallet_transfer_history_destination` (`OtherWalletId`) USING BTREE, CONSTRAINT `FK_pds_wallet_transfer_history_otherwalletid` FOREIGN KEY (`OtherWalletId`) REFERENCES `pds_wallets` (`PDS_Id`), CONSTRAINT `FK_pds_wallet_transfer_history_reason` FOREIGN KEY (`Reason`) REFERENCES `pds_wallet_transfer_reasons` (`Id`), CONSTRAINT `FK_pds_wallet_transfer_history_walletid` FOREIGN KEY (`WalletId`) REFERENCES `pds_wallets` (`PDS_Id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; -- -- Dumping data for table `pds_wallet_transfer_history` -- /*!40000 ALTER TABLE `pds_wallet_transfer_history` DISABLE KEYS */; /*!40000 ALTER TABLE `pds_wallet_transfer_history` ENABLE KEYS */; -- -- Definition of table `pds_wallet_transfer_reasons` -- DROP TABLE IF EXISTS `pds_wallet_transfer_reasons`; CREATE TABLE `pds_wallet_transfer_reasons` ( `Id` int(10) unsigned NOT NULL AUTO_INCREMENT, `Description` varchar(45) NOT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
[16 Sep 2010 19:41]
Sveta Smirnova
Thank you for the feedback. This looks like table format upgrade problem. Do you still have backup file?
[16 Oct 2010 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
