[MDEV-4790] Order by with loose index scan input results in a failed assert during the join cleanup phase Created: 2013-07-16 Updated: 2013-07-16 Resolved: 2013-07-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.3, 5.5.31 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Timour Katchaounov (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The following test case (based on Bug #32268: Indexed queries give bogus MIN and MAX results, from group_min_max.test) leads to a crash during the cleanup phase: CREATE TABLE t1 (a INT, b INT); CREATE INDEX break_it ON t1 (a, b); SELECT distinct a, b FROM t1 where a = '3' ORDER BY b; |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2013-07-16 ] |
|
The crash is due to the following failed assert: int ha_index_end() Call stack: #3 0x00007f1ae1927192 in _GI_assert_fail (assertion=0xd478de "inited==INDEX", file=0xd47890 "/home/tsk/mprog/src/5.5/sql/handler.h", line=1861, function=0xd4a570 <handler::ha_index_end()::PRETTY_FUNCTION_> "int handler::ha_index_end()") at assert.c:103 |
| Comment by Timour Katchaounov (Inactive) [ 2013-07-16 ] |
|
This is a test case for MySQL's bug: Bug#16394084: LOOSE INDEX SCAN WITH QUOTED INT PREDICATE RETURNS RANDOM DATA, which has no test case. |
| Comment by Patryk Pomykalski [ 2013-07-16 ] |
|
I think it was a fix for the following bug: http://bugs.mysql.com/bug.php?id=68473 Can you look at my comment? |
| Comment by Timour Katchaounov (Inactive) [ 2013-07-16 ] |
|
Patryk, Thanks, indeed, these two bug reports are duplicates. I will mark them as such. |
| Comment by Timour Katchaounov (Inactive) [ 2013-07-16 ] |
|
Patryk, Thanks, indeed, these two bug reports are duplicates. I will mark them as such. |
| Comment by Timour Katchaounov (Inactive) [ 2013-07-16 ] |
|
Duplicate of |