[MDEV-5617] mysqld crashes when running a query with ONLY_FULL_GROUP_BY Created: 2014-02-05 Updated: 2014-02-11 Resolved: 2014-02-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.35 |
| Fix Version/s: | 5.5.36, 10.0.9 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Vasilis Lourdas | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux 64-bit, Gentoo package |
||
| Issue Links: |
|
||||||||
| Description |
|
I tried to run this query:
and the server crashed. Log:
|
| Comments |
| Comment by Elena Stepanova [ 2014-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi, Could you please also provide the data dump for the tables involved in the query or, if it is impossible, at least table structures? Thank you. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vasilis Lourdas [ 2014-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Elena, Thank you for the prompt reply. I have uploaded the dump at the private ftp area, the filename is dump.sql.xz (please don't make the data public). Thank you. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Vasilis, Thank you. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vasilis Lourdas [ 2014-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here it is.
Are you sure you can't reproduce this? This happened twice for me with the same query, once with 5.5.35 in Windows (32-bit) and once with 5.5.35 in my Linux box (64-bit). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vasilis Lourdas [ 2014-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Also confirmed the issue with our Debian 7 Linux servers at work, using 5.5.35 from your repositories. mysqld crashed, log:
The corresponding my.cnf is
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks a lot, my.cnf did it. It was sql_mode=ONLY_FULL_GROUP_BY that made the difference. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The crash appeared on 5.5 tree with the following revision:
Test case:
Stack trace from
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vasilis Lourdas [ 2014-02-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Elena, Is there a way to get back 5.5.34 in the repository or some other way to downgrade for my Debian servers? I want to downgrade and I need to do it now, since we are in the process of developing a web application that uses MariaDB with master/slaves setup. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Vasilis, Yes, 5.5.34 is still in many mirrors, links to the repo usually look like this: http://mirrors.supportex.net/mariadb/mariadb-5.5.34/repo/debian/ . But if it is this bug that makes you downgrade, maybe it will be easier to remove ONLY_FULL_GROUP_BY temporarily from your config file, or, since you are developing the application and hence have access to its code, make it to unset ONLY_FULL_GROUP_BY dynamically upon connection (again, temporarily, until the bug is fixed)? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vasilis Lourdas [ 2014-02-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Elena, Ok, I can do that, but are you sure 5.5.35 is totally crash free? For example, yesterday, after I upgraded my Windows XP box to 5.5.35 and while working with MySQL Workbench, for some reason, the latter crashed (not something new since MySQL Workbench is very unstable and buggy), but after trying to connect with another client, I discovered that mysqld had also crashed, which is something very very rare. At that point, I did not run this query which caused the issue with the ONLY_FULL_GROUP_BY setting, it's something that a colleague of mine discovered the issue with the specific query. Are there any blocking bugs for 5.5.35 (that crash the server I mean)? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
On the contrary, I'm 100% sure that there is no version of MariaDB or MySQL server that is crash-free, and 5.5.35 is not an exception. As you can see in release notes for any version, there are always fixed crashing bugs. MariaDB change log states it explicitly, MySQL log is a bit more obscure about it, but all the same, crashes do happen and get fixed all the time. Most of them never affect you, some do, in which case you of course need a suggestion on how to deal with them until they are fixed. It can only be done on case-by-case basis. And we would like more about the other crash that you mentioned, of course – if you have any information about it, could you please open a separate bug report? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vasilis Lourdas [ 2014-02-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Well, I meant if there are any known blocking bugs. Ok, I will temporarily remove ONLY_FULL_GROUP_BY from the configuration files.
I'm sorry, but I cannot reproduce this condition. I'm frustrated with MySQL Workbench and I'm taking my chances with HeidiSQL, i just hope it's better and more stable. Maybe you should consider forking it and making it better, just more stable. Thank you very much for your help. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There are several known crashing or potentially crashing bugs in 5.5.35, but none of them is a regression from 5.5.34 (like the one that you filed), and most of them are related to rather specific areas: virtual columns, spatial functions, prepared statements, dynamic change of certain system variables in concurrent environment, things like that. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2014-02-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The problem was that in a few places, we still depended on that cached_table would have a value. I have now fixed this. Will run tests and push | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2014-02-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fixed and pushed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vasilis Lourdas [ 2014-02-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you guys, you are great! How soon will 5.5.36 get released, do you have a release date? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-02-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Currently the planned release date is 2014-02-21. It can change later, but should not change too much. |