[MDEV-3640] LP:902356 - Crash in test_if_skip_sort_order with DISTINCT, view, InnoDB, on 64bit Created: 2011-12-09 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: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
#3 <signal handler called> I could only reproduce it on one of two machines that I currently have access to: bzr version-info Also reproducible on 5.3.2 release if materialization=on,in_to_exists=on. Minimal optimizer_switch: none Full optimizer_switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=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=off,semijoin_with_cache=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on EXPLAIN also crashes. Test case: --source include/have_innodb.inc
CREATE TABLE t2 ( b INT, KEY(b) );
SELECT * FROM t1, t2 |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2011-12-10 ] |
|
Re: Crash in test_if_skip_sort_order with DISTINCT, view, InnoDB, on 64bit if (used_key_parts > used_index_parts) where used_key_parts == 0, which results in an access to |
| Comment by Timour Katchaounov (Inactive) [ 2011-12-12 ] |
|
Re: Crash in test_if_skip_sort_order with DISTINCT, view, InnoDB, on 64bit CREATE TABLE t1 (pk INT PRIMARY KEY, a INT, KEY(a) ) ENGINE=InnoDB;
set optimizer_switch='materialization=on,in_to_exists=off,semijoin=off'; SELECT * FROM t1 WHERE (2, 9) IN (SELECT DISTINCT a, pk FROM view_t1) OR a = 7; |
| Comment by Timour Katchaounov (Inactive) [ 2011-12-12 ] |
|
Re: Crash in test_if_skip_sort_order with DISTINCT, view, InnoDB, on 64bit The reason for the crash is the following patch that improves several merged Revision Id: igor@askmonty.org-20100526061418-icxo2vfzyabybw6e The patch accepts this change in test_if_order_by_key(): if (key_part == key_part_end && reverse == 0) However it didn't take the corresponding lines in ***************
One of the two changes above is wrong/incomplete. Reassigning to Igor, since he modified this code. |
| Comment by Elena Stepanova [ 2012-03-17 ] |
|
Re: Crash in test_if_skip_sort_order with DISTINCT, view, InnoDB, on 64bit |
| Comment by Rasmus Johansson (Inactive) [ 2012-03-17 ] |
|
Launchpad bug id: 902356 |