Bug #35945 | segfault on select with group_concat(distinct ..) and left join | ||
---|---|---|---|
Submitted: | 9 Apr 2008 17:31 | Modified: | 16 Apr 2008 16:22 |
Reporter: | Arkadiusz Miskiewicz (Basic Quality Contributor) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.1.23/5.0BK/5.1BK/6.0BK | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | group_concat, qc |
[9 Apr 2008 17:31]
Arkadiusz Miskiewicz
[9 Apr 2008 17:45]
MySQL Verification Team
Thank you for the bug report. Verified as described on 5.0/5.1/6.0 source servers. -> glpi_software.name AS ITEM_0, -> glpi_software.ID AS ITEM_0_2, -> glpi_dropdown_manufacturer.name AS ITEM_1, -> GROUP_CONCAT( DISTINCT glpi_licenses.version SEPARATOR '$$$$') AS ITEM_2, -> glpi_dropdown_os.name AS ITEM_3, glpi_software.ID AS ID FROM glpi_software -> LEFT JOIN glpi_dropdown_manufacturer ON (glpi_software.FK_glpi_enterprise = -> glpi_dropdown_manufacturer.ID) -> LEFT JOIN glpi_licenses ON (glpi_software.ID = glpi_licenses.sID) LEFT JOIN -> glpi_dropdown_os ON (glpi_software.platform = glpi_dropdown_os.ID) -> WHERE glpi_software.deleted='0' AND glpi_software.is_template='0' AND ( 1 ) -> GROUP BY glpi_software.ID -> ORDER BY glpi_software.name ASC LIMIT 0, 20; ERROR 2013 (HY000): Lost connection to MySQL server during query T1 >
[9 Apr 2008 19:08]
MySQL Verification Team
simplified testcase and stack trace. drop table if exists `t1`; create table `t1` (`a` char(2),`b` int,key `b` (`b`)) engine=myisam; drop table if exists `t2`; create table `t2` (`c` int,key (`c`)) engine=myisam; insert into `t2` values (1); select group_concat(distinct t1.a)from t2 left join t1 on (t2.c = t1.b); mysqld-nt.exe!free_tree mysqld-nt.exe!Unique::reset mysqld-nt.exe!Item_func_group_concat::clear mysqld-nt.exe!init_sum_functions mysqld-nt.exe!end_send_group mysqld-nt.exe!do_select mysqld-nt.exe!JOIN::exec mysqld-nt.exe!mysql_select mysqld-nt.exe!handle_select mysqld-nt.exe!mysql_execute_command mysqld-nt.exe!mysql_parse mysqld-nt.exe!dispatch_command mysqld-nt.exe!do_command mysqld-nt.exe!handle_one_connection mysqld-nt.exe!pthread_start mysqld-nt.exe!_callthreadstart mysqld-nt.exe!_threadstart
[13 Apr 2008 13:30]
MySQL Verification Team
possible duplicate of bug #35298 ?
[16 Apr 2008 16:22]
Alexey Kopytov
Duplicate of bug #35298.