Bug #59679 | Assertion failed: aggregator == aggr->Aggrtype() | ||
---|---|---|---|
Submitted: | 23 Jan 2011 16:24 | Modified: | 2 Feb 2011 9:42 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 5.5.10-debug | OS: | Any |
Assigned to: | Tor Didriksen | CPU Architecture: | Any |
Tags: | regression |
[23 Jan 2011 16:24]
Shane Bester
[23 Jan 2011 16:33]
MySQL Verification Team
Another testcase for the testsuite; drop table if exists g1; create table `g1`(`a` int key)engine=myisam; insert into `g1` values (1),(2),(3); select 1 from `g1` where 1 <> (select avg(distinct `a`) from `g1` order by 1) ;
[23 Jan 2011 16:59]
Valeriy Kravchuk
Verified on Mac OS X: macbook-pro:5.5 openxs$ bin/mysql -uroot testReading 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.5.10-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> drop table if exists `t1`; Query OK, 0 rows affected (0.00 sec) mysql> create table `t1`(`a` decimal(20,20),key(`a`)) engine=myisam; Query OK, 0 rows affected (0.24 sec) mysql> insert into `t1` values (1),(1); Query OK, 2 rows affected, 2 warnings (0.00 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> select 1 from `t1` order by avg(distinct `a`); ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> 110123 18:57:40 mysqld_safe mysqld restarted mysql> exit Bye macbook-pro:5.5 openxs$ tail -80 data/macbook-pro.err ... 110123 18:57:18 [Note] /Users/openxs/dbs/5.5/bin/mysqld: ready for connections. Version: '5.5.10-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution Assertion failed: (aggregator == aggr->Aggrtype()), function set_aggregator, file /Users/openxs/bzr2/mysql-5.5-work/sql/item_sum.cc, line 567. ...
[23 Jan 2011 17:15]
Valeriy Kravchuk
MySQL 5.1 is NOT affected: macbook-pro:5.1 openxs$ 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.1.56-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> drop table if exists `t1`; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> create table `t1`(`a` decimal(20,20),key(`a`)) engine=myisam; Query OK, 0 rows affected (0.07 sec) mysql> insert into `t1` values (1),(1); Query OK, 2 rows affected, 2 warnings (0.00 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> select 1 from `t1` order by avg(distinct `a`); +---+ | 1 | +---+ | 1 | +---+ 1 row in set (0.00 sec) mysql> drop table if exists g1; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> create table `g1`(`a` int key)engine=myisam; Query OK, 0 rows affected (0.05 sec) mysql> insert into `g1` values (1),(2),(3); Query OK, 3 rows affected (0.00 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select 1 from `g1` where 1 <> -> (select avg(distinct `a`) -> from `g1` order by 1) -> ; +---+ | 1 | +---+ | 1 | | 1 | | 1 | +---+ 3 rows in set (0.00 sec) So, this is a regression bug.
[23 Jan 2011 17:48]
Peter Laursen
Neither of Shane's queries crash for me on 5.5.8 (also not with SET NAMES latin1; :-) ) on Windows 64 bit server.
[23 Jan 2011 18:03]
MySQL Verification Team
PeterL: try mysqld-debug :) Now i realize the second testcase is the same as first really.
[23 Jan 2011 18:12]
Peter Laursen
@Shane .. I trust you! :-)
[23 Jan 2011 22:35]
Øystein Grøvlen
The patch for Bug#52123 also fixes this issue. Hence, it should probably be backported to 5.5.
[24 Jan 2011 15:18]
Øystein Grøvlen
Tor has already fixed this in trunk.
[2 Feb 2011 9:23]
Tor Didriksen
Backported and pushed fix for Bug #52123 Assertion failed: aggregator == aggr->Aggrtype()
[2 Feb 2011 9:42]
Tor Didriksen
Duplicate of Bug #52123 Assertion failed: aggregator == aggr->Aggrtype(),