| Bug #28728 | server crash with EXPLAIN EXTENDED .. and subqueries | ||
|---|---|---|---|
| Submitted: | 28 May 2007 19:07 | Modified: | 10 Jun 2007 20:27 |
| Reporter: | Shane Bester | ||
| Status: | Closed | ||
| Category: | Server: Optimizer | Severity: | S1 (Critical) |
| Version: | 5.0.42, 5.0.44, 5.1.20 | OS: | Any |
| Assigned to: | Bugs System | Target Version: | |
| Tags: | crash, explain, subquery | ||
[28 May 2007 19:07]
Shane Bester
[28 May 2007 19:09]
Shane Bester
full stack trace on 5.0.42, windows
Attachment: bug28728_5.0.42_win_debug.txt (text/plain), 1.68 KiB.
[28 May 2007 19:12]
Shane Bester
if release binary doesn't crash, please try debug binary.
[28 May 2007 19:25]
Shane Bester
------------------- smaller testcase: ------------------- drop table if exists t1; create table t1(c1 int)engine=innodb; explain extended select * from (select c1 from t1 group by c1) as d1;
[28 May 2007 20:07]
Shane Bester
linux stack trace, 5.0.44BK
Attachment: bug28728_5.0.44_linux_debug.txt (text/plain), 2.67 KiB.
[30 May 2007 18:15]
Shane Bester
5.1.20 crashed too
[2 Jun 2007 20:42]
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/27993 ChangeSet@1.2508, 2007-06-02 11:44:16-07:00, igor@olga.mysql.com +3 -0 Fixed bug #28728: a crash when executing EXPLAIN EXTENDED for a query using a derived table over a grouping subselect. This crash happens only when materialization of the derived tables requires creation of auxiliary temporary table, for example when a grouping operation is carried out with usage of a temporary table. The crash happened because EXPLAIN EXTENDED when printing the query expression made an attempt to use the objects created in the mem_root of the temporary table which has been already freed by the moment when printing is called. This bug appeared after the method Item_field::print() had been introduced.
[4 Jun 2007 23:21]
Bugs System
Pushed into 5.1.20-beta
[4 Jun 2007 23:23]
Bugs System
Pushed into 5.0.44
[10 Jun 2007 20:27]
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 bug fix. More information about accessing the source trees is
available at
http://dev.mysql.com/doc/en/installing-source.html
Documented bugfix in 5.0.44 and 5.1.20 changelogs.
