[MDEV-5143] update of a joined table with a nested subquery with a syntax error crashes mysqld with signal 11 Created: 2013-10-15 Updated: 2013-10-29 Resolved: 2013-10-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.4, 5.3.12, 5.5.33a |
| Fix Version/s: | 5.5.34, 10.0.6, 5.3.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael MacDonald | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
RHEL 6.4 |
||
| Description |
|
The following example causes my mysqld process to crash and restart:
will cause the client to report: with the following appearing in the mysql-error.log
|
| Comments |
| Comment by Michael MacDonald [ 2013-10-15 ] |
|
I realized that I attached the mysql-error.log from a 5.5.32 server, but it also still affects a 5.5.33a server. Here is the log from that server To report this bug, see http://kb.askmonty.org/en/reporting-bugs We will try our best to scrape up some info that will hopefully help Server version: 5.5.33a-MariaDB-log Thread pointer: 0x0x7ffa1c5be000 Trying to get some variables. Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains |
| Comment by Elena Stepanova [ 2013-10-15 ] |
|
Thank you for the good test case. |
| Comment by Kolbe Kegel (Inactive) [ 2013-10-15 ] |
|
Note: this crash does not occur in MariaDB 5.5.28. |
| Comment by Oleksandr Byelkin [ 2013-10-15 ] |
|
it is just wrong query which crashes before error is returned... So it should be fixed. |
| Comment by Oleksandr Byelkin [ 2013-10-21 ] |
|
The problem is that mysql_derived_prepare do not check result of sl->handle_derived() call. |
| Comment by Oleksandr Byelkin [ 2013-10-21 ] |
|
committed for review |