Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When executing the following query:
SELECT table1 .`pk`
FROM Z table1 LEFT JOIN K table3 JOIN D table4 ON table4 .`col_varchar_1024_latin1` ON table3 .`col_varchar_1024_latin1` ;
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
#9 0x082d96be in JOIN_CACHE::set_match_flag_if_none (this=0xa4fc048, first_inner=0xa4db168, rec_ptr=0xa4fc15a "\377\001\001") at sql_join_cache.cc:1895
#10 0x082dc081 in JOIN_CACHE::check_match (this=0xa4fc048, rec_ptr=0xa4fc15a "\377\001\001") at sql_join_cache.cc:1998
#11 0x082d9727 in JOIN_CACHE::generate_full_extensions (this=0xa4fc048, rec_ptr=0xa4fc15a "\377\001\001") at sql_join_cache.cc:1933
#12 0x082d95a7 in JOIN_CACHE_BNL::join_matching_records (this=0xa4fc048, skip_last=false) at sql_join_cache.cc:1833
#13 0x082d9076 in JOIN_CACHE::join_records (this=0xa4fc048, skip_last=false) at sql_join_cache.cc:1636
#14 0x0831ef4c in sub_select_cache (join=0xa4d5098, join_tab=0xa4db328, end_of_records=true) at sql_select.cc:12822
#15 0x0831f165 in sub_select (join=0xa4d5098, join_tab=0xa4db168, end_of_records=true) at sql_select.cc:12984
#16 0x0831ef78 in sub_select_cache (join=0xa4d5098, join_tab=0xa4db168, end_of_records=true) at sql_select.cc:12824
#17 0x0831f165 in sub_select (join=0xa4d5098, join_tab=0xa4dafa8, end_of_records=true) at sql_select.cc:12984
#18 0x0831e71f in do_select (join=0xa4d5098, fields=0xa3e769c, table=0x0, procedure=0x0) at sql_select.cc:12580
#19 0x08304aad in JOIN::exec (this=0xa4d5098) at sql_select.cc:2300
#20 0x083051e3 in mysql_select (thd=0xa3e5c88, rref_pointer_array=0xa3e7720, tables=0xa4c0518, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0,
group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0xa4d5068, unit=0xa3e7364, select_lex=0xa3e7604) at sql_select.cc:2501
#21 0x082fd947 in handle_select (thd=0xa3e5c88, lex=0xa3e7308, result=0xa4d5068, setup_tables_done_option=0) at sql_select.cc:276
#22 0x0829beec in execute_sqlcom_select (thd=0xa3e5c88, all_tables=0xa4c0518) at sql_parse.cc:5081
#23 0x082928c4 in mysql_execute_command (thd=0xa3e5c88) at sql_parse.cc:2265
#24 0x0829e0ad in mysql_parse (thd=0xa3e5c88,
inBuf=0xa47d3a0 "SELECT table1 .`pk`\nFROM Z table1 LEFT JOIN K table3 JOIN D table4 ON table4 .`col_varchar_1024_latin1` ON table3 .`col_varchar_1024_latin1`", length=145, found_semicolon=0xa9fb7230) at sql_parse.cc:6027
#25 0x0829037a in dispatch_command (command=COM_QUERY, thd=0xa3e5c88, packet=0xa3e7ca9 "", packet_length=148) at sql_parse.cc:1184
#26 0x0828f868 in do_command (thd=0xa3e5c88) at sql_parse.cc:890
#27 0x0828c8a0 in handle_one_connection (arg=0xa3e5c88) at sql_connect.cc:1153
#28 0x00bea919 in start_thread () from /lib/libpthread.so.0
#29 0x00b2ccbe in clone () from /lib/libc.so.6
bzr version-info:
revision-id: <email address hidden>
date: 2010-09-14 16:43:41 +0300
build-date: 2010-10-15 09:35:55 +0300
revno: 2818
branch-nick: maria-5.3