[MDEV-8756] MariaDB 10.0.21 crashes during PREPARE Created: 2015-09-05 Updated: 2015-11-20 Resolved: 2015-10-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Data Manipulation - Update, Platform Debian, Prepared Statements |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5.47, 10.0.22, 10.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tim Düsterhus | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 4 |
| Labels: | None | ||
| Environment: |
MariaDB 10.0.21 Docker Container running on Ubuntu 15.04. |
||
| Attachments: |
|
| Sprint: | 10.0.22 |
| Description |
|
MariaDB 10.0.21 crashes during preparation of an UPDATE statement with a SELECT subquery in combination with ONLY_FULL_GROUP_BY. One can reproduce the issue using docker as follows: First start the MariaDB database container:
Afterwards connect with the MariaDB command line client:
Inside the command line client perform the following querys:
The last query will return:
And the server crashes because of signal 11. The stack trace is a follows:
|
| Comments |
| Comment by Elena Stepanova [ 2015-09-06 ] | |||||||||||||||||||||||||||||||||
|
Thanks for the report and test case.
| |||||||||||||||||||||||||||||||||
| Comment by Tim Düsterhus [ 2015-09-22 ] | |||||||||||||||||||||||||||||||||
|
I just bisected MariaDB to find the commit that introduced the issue. These are my results:
The full bisection log is as follows:
For extra confidence I also built the commit d199a0ffb0aac86881ea2db7dd78bc07b438dc67 which is the parent of the commit that git found to be guilty. It did not crash. | |||||||||||||||||||||||||||||||||
| Comment by Sascha Greuel [ 2015-10-11 ] | |||||||||||||||||||||||||||||||||
|
Any ETA or any progress? Because more and more people are facing this problem and many of them are not able to perform a downgrade. | |||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-10-22 ] | |||||||||||||||||||||||||||||||||
|
revision-id: 3c1512e2e130d1f07b64e4fd797e7e425f149443 (mariadb-10.0.21-44-g3c1512e)
Non-select-like queries has no correct JOIN structure connected to top-most SELECT_LEX (and should not). — | |||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2015-10-27 ] | |||||||||||||||||||||||||||||||||
|
Review comments provided over email | |||||||||||||||||||||||||||||||||
| Comment by Sascha Greuel [ 2015-11-13 ] | |||||||||||||||||||||||||||||||||
|
This issue still exists in 10.1. | |||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-11-13 ] | |||||||||||||||||||||||||||||||||
|
The fix has been pushed into 10.0 tree, it will be soon merged into 10.1 tree and released in 10.1.9. | |||||||||||||||||||||||||||||||||
| Comment by Markus Lenz [ 2015-11-20 ] | |||||||||||||||||||||||||||||||||
|
Hello together, Thanks and kind regards | |||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-11-20 ] | |||||||||||||||||||||||||||||||||
|
sanja, was there a reason why it was only fixed in 10.0, but not 5.5? Initially it was targeted for 5.5. | |||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-11-20 ] | |||||||||||||||||||||||||||||||||
|
fixed in 5.5 |