[MDEV-2213] LP:909635 - MariaDB crashes in write_tail on a select from UTF8 tables with a simple join and order by Created: 2011-12-29 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Anton Khalikov (Inactive) | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Hi guys We've found a query that crashes MariaDB both 5.2.9 and 5.2.10. This query is generated by CMS Joomla with Virtuemart plugin. Used platform: Debian GNU/Linux Squeeze amd64. The query: SELECT SQL_CALC_FOUND_ROWS * FROM `i1rsk_virtuemart_products_ru_ru` as l JOIN `i1rsk_virtuemart_products` AS p using (`virtuemart_product_id`) LEFT JOIN `i1rsk_virtuemart_product_categories` ON p.`virtuemart_product_id` = `i1rsk_virtuemart_product_categories`.`virtuemart_product_id` LEFT JOIN `i1rsk_virtuemart_categories_ru_ru` as c ON c.`virtuemart_category_id` = `i1rsk_virtuemart_product_categories`.`virtuemart_category_id` WHERE ( p.`published`="1" AND `i1rsk_virtuemart_product_categories`.`virtuemart_category_id` = 5) ORDER BY product_name ASC LIMIT 0, 10; I can also provide a test sql dump of database to reproduce this problem, but I can't be published, so I'd prefer to send it to someone's e-mail directly if possible. After executing this query, MariaDB crashes with the following information written in log: 111229 9:28:14 [ERROR] mysqld got signal 11 ; key_buffer_size=0 Thread pointer: 0x7f15067c6ef0 Trying to get some variables. |
| Comments |
| Comment by Anton Khalikov (Inactive) [ 2011-12-29 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query MariaDB [(none)]> show variables like "key_buffer_size";
----------------
---------------- | ||||
| Comment by Elena Stepanova [ 2011-12-29 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query Could you upload the dump to ftp://ftp.askmonty.org/private? Only MariaDB developers can read it. Thanks | ||||
| Comment by Anton Khalikov (Inactive) [ 2011-12-29 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query Done, filename is bug_909635.sql | ||||
| Comment by Elena Stepanova [ 2011-12-29 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query Thank you. Here is a simplified test case: CREATE TABLE t1 ( INSERT INTO t1 VALUES CREATE TABLE t2 ( INSERT INTO t2 SELECT * FROM t1, t2 Reproducible on 5.1.60, 5.2.10, 5.3, 5.5 with certain combinations of engines:
| ||||
| Comment by Elena Stepanova [ 2011-12-29 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query | ||||
| Comment by Elena Stepanova [ 2011-12-29 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query #3 <signal handler called> | ||||
| Comment by Oleksandr Byelkin [ 2011-12-29 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query | ||||
| Comment by Oleksandr Byelkin [ 2011-12-30 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query | ||||
| Comment by Oleksandr Byelkin [ 2011-12-30 ] | ||||
|
Re: MariaDB 5.2.9 and 5.2.10 crashes on executing attached query | ||||
| Comment by Elena Stepanova [ 2012-01-03 ] | ||||
|
Re: MariaDB crashes in write_tail on a select from UTF8 tables with a simple join and order by | ||||
| Comment by Michael Widenius [ 2012-02-24 ] | ||||
|
Re: MariaDB crashes in write_tail on a select from UTF8 tables with a simple join and order by | ||||
| Comment by Sergei Petrunia [ 2012-02-24 ] | ||||
|
Re: MariaDB crashes in write_tail on a select from UTF8 tables with a simple join and order by | ||||
| Comment by Anton Khalikov (Inactive) [ 2012-03-14 ] | ||||
|
Re: MariaDB crashes in write_tail on a select from UTF8 tables with a simple join and order by | ||||
| Comment by Rasmus Johansson (Inactive) [ 2012-03-30 ] | ||||
|
Launchpad bug id: 909635 | ||||
| Comment by Michael Widenius [ 2012-03-30 ] | ||||
|
Re: MariaDB crashes in write_tail on a select from UTF8 tables with a simple join and order by |