Bug #31037 | A table when query a DELETE will crashing mysql | ||
---|---|---|---|
Submitted: | 15 Sep 2007 2:50 | Modified: | 22 Sep 2007 8:01 |
Reporter: | bole chen | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: General | Severity: | S2 (Serious) |
Version: | 5.0.45-log | OS: | Any (Windows & RedHat Linux AS 4) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | 5.0.45, crashing, delete |
[15 Sep 2007 2:50]
bole chen
[15 Sep 2007 2:52]
bole chen
In Windows XP, the errormsg like this: --------------------------- mysqld-nt.exe - Application Error --------------------------- The instruction at "0x0041c787" referenced memory at "0x49525107". The memory could not be "read". Click on OK to terminate the program Click on CANCEL to debug the program --------------------------- OK Cancel ---------------------------
[17 Sep 2007 7:10]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described: C:\Program Files\MySQL\MySQL Server 5.1\bin>mysql -uroot -proot -P3308 test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.0.44-enterprise-gpl-nt-log MySQL Enterprise Server (GPL) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE TABLE `syspub` ( -> `id` int(11) NOT NULL auto_increment, -> `cid` int(11) NOT NULL default '0', -> `classid` int(11) NOT NULL default '0', -> `articleid` int(11) NOT NULL default '0', -> `topath` varchar(255) NOT NULL default '', -> `frompath` varchar(255) NOT NULL default '', -> `stats` smallint(1) default '0', -> `lastupdate` int(11) default NULL, -> PRIMARY KEY (`id`), -> UNIQUE KEY `frompath` (`frompath`), -> KEY `cid` (`cid`), -> KEY `classid` (`classid`), -> KEY `articleid` (`articleid`) -> ) TYPE=MyISAM; Query OK, 0 rows affected, 1 warning (0.08 sec) mysql> DELETE FROM syspub ORDER BY articleid,id LIMIT 500; ERROR 2013 (HY000): Lost connection to MySQL server during query
[17 Sep 2007 14:39]
Valeriy Kravchuk
There is no crash with latest 5.0.50-debug on Linux though: openxs@linux:~/dbs/5.0> bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.50-debug Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE TABLE `syspub` ( -> `id` int(11) NOT NULL auto_increment, -> `cid` int(11) NOT NULL default '0', -> `classid` int(11) NOT NULL default '0', -> `articleid` int(11) NOT NULL default '0', -> `topath` varchar(255) NOT NULL default '', -> `frompath` varchar(255) NOT NULL default '', -> `stats` smallint(1) default '0', -> `lastupdate` int(11) default NULL, -> PRIMARY KEY (`id`), -> UNIQUE KEY `frompath` (`frompath`), -> KEY `cid` (`cid`), -> KEY `classid` (`classid`), -> KEY `articleid` (`articleid`) -> ) TYPE=MyISAM; Query OK, 0 rows affected, 1 warning (0.03 sec) mysql> DELETE FROM syspub ORDER BY articleid,id LIMIT 500; Query OK, 0 rows affected (0.00 sec) Anyway, we have to add this test to a test suite, it seems.
[22 Sep 2007 8:01]
Gleb Shchepa
This bug duplicates bug #30385 (test case is already provided).