Bug #53450 | Crash / assertion "virtual int ha_myisam::index_first(uchar*)") at assert.c:81 | ||
---|---|---|---|
Submitted: | 5 May 2010 23:05 | Modified: | 14 Oct 2010 14:56 |
Reporter: | Patrick Crews | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | mysql-next-mr/5.1 | OS: | Any |
Assigned to: | Gleb Shchepa | CPU Architecture: | Any |
Tags: | assertion, crashing bug, delete, myisam |
[5 May 2010 23:05]
Patrick Crews
[5 May 2010 23:06]
Patrick Crews
Full crash output
Attachment: Bug53450_backtrace.txt (text/plain), 8.79 KiB.
[5 May 2010 23:23]
MySQL Verification Team
miguel@hegel:~$ dbs/5.1/libexec/mysqld 100505 20:01:02 [Note] Plugin 'FEDERATED' is disabled. 100505 20:01:02 [Note] Plugin 'ndbcluster' is disabled. 100505 20:01:03 InnoDB: Started; log sequence number 0 44233 100505 20:01:03 [Note] Event Scheduler: Loaded 0 events 100505 20:01:03 [Note] dbs/5.1/libexec/mysqld: ready for connections. Version: '5.1.47-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution 100505 20:18:14 [Note] Got signal 15 to shutdown mysqld 100505 20:18:14 [Note] dbs/5.1/libexec/mysqld: Normal shutdown 100505 20:18:14 [Note] Event Scheduler: Purging the queue. 0 events 100505 20:18:16 InnoDB: Starting shutdown... 100505 20:18:19 InnoDB: Shutdown completed; log sequence number 0 44233 100505 20:18:19 [Note] dbs/5.1/libexec/mysqld: Shutdown complete miguel@hegel:~$ dbs/5.1/libexec/mysqld 100505 20:19:28 [Note] Plugin 'FEDERATED' is disabled. 100505 20:19:28 [Note] Plugin 'ndbcluster' is disabled. 100505 20:19:28 InnoDB: Started; log sequence number 0 44233 100505 20:19:28 [Note] Event Scheduler: Loaded 0 events 100505 20:19:28 [Note] dbs/5.1/libexec/mysqld: ready for connections. Version: '5.1.47-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution mysqld: ha_myisam.cc:1706: virtual int ha_myisam::index_first(uchar*): Assertion `inited==INDEX' failed. 100505 20:19:45 - mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary
[5 May 2010 23:26]
MySQL Verification Team
Thank you for the bug report, verified as described.
[14 May 2010 10:19]
Gleb Shchepa
The bug is similar to the old bug #14272 for UPDATE and it has a similar fix: === modified file 'sql/sql_delete.cc' --- old/sql/sql_delete.cc 2010-05-12 11:19:12 +0000 +++ new/sql/sql_delete.cc 2010-05-14 10:18:53 +0000 @@ -266,7 +266,7 @@ bool mysql_delete(THD *thd, TABLE_LIST * free_underlaid_joins(thd, select_lex); DBUG_RETURN(TRUE); } - if (usable_index==MAX_KEY) + if (usable_index==MAX_KEY || (select && select->quick)) init_read_record(&info, thd, table, select, 1, 1, FALSE); else init_read_record_idx(&info, thd, table, 1, usable_index);
[14 May 2010 11:38]
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/108321 3382 Gleb Shchepa 2010-05-14 Bug #53450: Crash / assertion "virtual int ha_myisam::index_first(uchar*)") at assert.c:81 Single-table DELETE crash/assertion similar to single-table UPDATE bug 14272. Same resolution as for the bug 14272: Don't run index scan when we should use quick select. This could cause failures because there are table handlers (like federated) that support quick select scanning but do not support index scanning. @ mysql-test/r/delete.result Test case for bug #53450. @ mysql-test/t/delete.test Test case for bug #53450. @ sql/sql_delete.cc Bug #53450: Crash / assertion "virtual int ha_myisam::index_first(uchar*)") at assert.c:81 The mysql_delete function has been modified to not to use init_read_record_idx instead of init_read_record for the quick select.
[28 May 2010 5:50]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100524190136-egaq7e8zgkwb9aqi) (version source revid:alik@sun.com-20100524190136-egaq7e8zgkwb9aqi) (pib:16)
[28 May 2010 6:19]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100524190941-nuudpx60if25wsvx) (version source revid:alik@sun.com-20100524190409-5w4l7mje1wk1c90l) (merge vers: 6.0.14-alpha) (pib:16)
[28 May 2010 6:47]
Bugs System
Pushed into 5.5.5-m3 (revid:alik@sun.com-20100524185725-c8k5q7v60i5nix3t) (version source revid:alexey.kopytov@sun.com-20100523204118-0tl3goawu658rxh6) (merge vers: 5.5.5-m3) (pib:16)
[2 Jun 2010 8:50]
Bugs System
Pushed into 5.1.48 (revid:georgi.kodinov@oracle.com-20100602084411-2yu607bslbmgufl3) (version source revid:gshchepa@mysql.com-20100514113627-un2o7ndffsc9uy9e) (merge vers: 5.1.47) (pib:16)
[10 Jun 2010 18:29]
Paul DuBois
Noted in 5.1.48, 5.5.5, 6.0.14 changelogs. For single-table DELETE statements that used quick select and index scan simultaneously caused a server crash or assertion failure.
[14 Oct 2010 8:35]
Bugs System
Pushed into mysql-5.1-telco-7.0 5.1.51-ndb-7.0.20 (revid:martin.skold@mysql.com-20101014082627-jrmy9xbfbtrebw3c) (version source revid:vasil.dimov@oracle.com-20100513074652-0cvlhgkesgbb2bfh) (merge vers: 5.5.5-m3) (pib:21)
[14 Oct 2010 8:50]
Bugs System
Pushed into mysql-5.1-telco-6.3 5.1.51-ndb-6.3.39 (revid:martin.skold@mysql.com-20101014083757-5qo48b86d69zjvzj) (version source revid:vasil.dimov@oracle.com-20100513074652-0cvlhgkesgbb2bfh) (merge vers: 5.5.5-m3) (pib:21)
[14 Oct 2010 9:05]
Bugs System
Pushed into mysql-5.1-telco-6.2 5.1.51-ndb-6.2.19 (revid:martin.skold@mysql.com-20101014084420-y54ecj85j5we27oa) (version source revid:vasil.dimov@oracle.com-20100513074652-0cvlhgkesgbb2bfh) (merge vers: 5.5.5-m3) (pib:21)
[14 Oct 2010 14:56]
Jon Stephens
Already documented in the 5.1.48 changelog; no new changelog entries required. setting back to Closed state.