[MDEV-3664] LP:660963 - sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level=5 Created: 2010-10-15 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: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
When executing the following query: SELECT table1 .`pk` the server asserted as follows: mysqld: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed. #8 0x00a72d98 in __assert_fail () from /lib/libc.so.6 bzr version-info: revision-id: <email address hidden> |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-10-15 ] |
|
Re: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level= {5,7}Test case --source include/have_innodb.inc SET SESSION join_cache_level = 5; CREATE TABLE t2 ( CREATE TABLE t3 ( SELECT t1.f2 |
| Comment by Philip Stoev (Inactive) [ 2010-10-15 ] |
|
Re: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level= {5,7} |
| Comment by Philip Stoev (Inactive) [ 2010-11-06 ] |
|
Re: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level= {5,7}Also reproducible with maria-5.1-mwl128 |
| Comment by Igor Babaev [ 2010-11-10 ] |
|
Re: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level= {5,7}The bug is reproducible for the current 5.3 tree, but is not reproducible for the current maria-5.3-mwl128. |
| Comment by Philip Stoev (Inactive) [ 2010-11-16 ] |
|
Re: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level= {5,7}Here is a test case that works against 5.3-mwl128 . It seems that the bug has always been there, but the test case below uses MyISAM for stability and enables outer_join_with_cache. SET SESSION join_cache_level = 5; DROP TABLE IF EXISTS t1; SELECT alias2.f2 FROM t2 LEFT JOIN t1 AS alias2 JOIN t1 AS alias3 ON alias3.f1 = alias2.f1 ON alias3.f2 ; |
| Comment by Philip Stoev (Inactive) [ 2010-11-16 ] |
|
Re: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level= {5,7}Not reproducible with join_cache_level=7. |
| Comment by Philip Stoev (Inactive) [ 2010-11-16 ] |
|
Re: sql_join_cache.cc:1895: bool JOIN_CACHE::set_match_flag_if_none(JOIN_TAB*, uchar*): Assertion `cache' failed with join_cache_level=5 #8 0x00133d98 in __assert_fail () from /lib/libc.so.6 |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 660963 |