Bug #59651 | Assertion `table_ref->has_record' failed with join_cache_level=3 | ||
---|---|---|---|
Submitted: | 21 Jan 2011 10:31 | Modified: | 26 Apr 2011 15:43 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 5.6.2-debug | OS: | Any |
Assigned to: | Guilhem Bichot | CPU Architecture: | Any |
Tags: | join_cache_level, optimizer_switch, regression |
[21 Jan 2011 10:31]
Shane Bester
[21 Jan 2011 10:32]
MySQL Verification Team
testcase. import into debug build
Attachment: bug59651.sql (, text), 9.64 KiB.
[21 Jan 2011 16:04]
Valeriy Kravchuk
With current mysql-trunk (5.6.2-m5-debug, built with BUILD/compile-pentium-debug-max, not with valgrind) since revno 3511 on Mac OS X I get: macbook-pro:trunk openxs$ bin/mysql -uroot test < ~/Downloads/bug59651.sql ERROR 1062 (23000) at line 30: Duplicate entry '00' for key 'PRIMARY' and no assertion failure.
[21 Jan 2011 16:42]
Valeriy Kravchuk
Verified finally: Version: '5.6.2-m5-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution Assertion failed: (table_ref->has_record), function join_read_key2, file /Users/openxs/bzr2/mysql-trunk-work/sql/sql_select.cc, line 18067. 110121 18:41:10 - mysqld got signal 6 ; ... One has to source test case in mysql to get this assertion failure.
[22 Jan 2011 7:30]
Øystein Grøvlen
Error only happens with join_cache_level==3. (Succeeds for join_cache_level=={0,1,2,4})
[26 Apr 2011 15:43]
Paul DuBois
Noted in 5.6.3 changelog. Setting join_cache_level=3 caused an assertion to be raised for some queries. CHANGESET - http://lists.mysql.com/commits/136078