Bug #43447 | Crash when executing SELECT ... LIMIT n FOR UPDATE query | ||
---|---|---|---|
Submitted: | 6 Mar 2009 9:45 | Modified: | 1 Jul 2009 14:19 |
Reporter: | John Embretsen | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 6.0.9,5.4 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | regression |
[6 Mar 2009 9:45]
John Embretsen
[6 Mar 2009 9:48]
MySQL Verification Team
is this really bug #36981 ?
[6 Mar 2009 10:18]
John Embretsen
Shane: Thanks, that could very well be the same bug. Using set optimizer_use_mrr='disable'; set engine_condition_pushdown=off; makes the test pass. I will leave it to someone else to verify if this is a duplicate or not, as I am not totally sure and I do not have the time to investigate further right now.
[6 Mar 2009 11:44]
MySQL Verification Team
How Shane said looks a duplicate (similar call stack): 090306 8:35:11 [Note] c:\dbs\6.0\bin\mysqld: ready for connections. Version: '6.0.10-alpha-Win x86-64 bzr revno:3036-log' socket: '' port: 3600 Source distribution 090306 8:40:41 - mysqld got exception 0xc0000005 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=8384512 read_buffer_size=131072 max_used_connections=1 max_threads=151 thread_count=1 connection_count=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 338184 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0x3cceb80 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... 000000014036730B mysqld.exe!row_sel_field_store_in_mysql_format()[row0sel.c:2464] 00000001403676FA mysqld.exe!row_sel_store_mysql_rec()[row0sel.c:2677] 0000000140369515 mysqld.exe!row_search_for_mysql()[row0sel.c:4143] 0000000140354572 mysqld.exe!ha_innobase::index_read()[ha_innodb.cc:4480] 0000000140023967 mysqld.exe!handler::index_read_map()[handler.h:1784] 0000000140032EBD mysqld.exe!handler::read_range_first()[handler.cc:5049] 0000000140352BE2 mysqld.exe!ha_innobase::read_range_first()[ha_innodb.cc:8573] 00000001400302F0 mysqld.exe!handler::multi_range_read_next()[handler.cc:4331] 00000001400DFED4 mysqld.exe!QUICK_RANGE_SELECT::get_next()[opt_range.cc:8560] 00000001400F407A mysqld.exe!rr_quick()[records.cc:322] 00000001401B4F8C mysqld.exe!sub_select()[sql_select.cc:16226] 00000001401B619C mysqld.exe!do_select()[sql_select.cc:15789] 00000001401BB358 mysqld.exe!JOIN::exec()[sql_select.cc:2882] 00000001401BE505 mysqld.exe!mysql_select()[sql_select.cc:3064] 00000001401BE916 mysqld.exe!handle_select()[sql_select.cc:314] 0000000140170596 mysqld.exe!execute_sqlcom_select()[sql_parse.cc:4758] 0000000140173C80 mysqld.exe!mysql_execute_command()[sql_parse.cc:2063] 0000000140179028 mysqld.exe!mysql_parse()[sql_parse.cc:5757] 0000000140179A6A mysqld.exe!dispatch_command()[sql_parse.cc:1011] 000000014017A89C mysqld.exe!do_command()[sql_parse.cc:691] 0000000140219101 mysqld.exe!handle_one_connection()[sql_connect.cc:1146] 00000001402A6C9E mysqld.exe!pthread_start()[my_winthread.c:63] 000000014056A387 mysqld.exe!_callthreadstartex()[threadex.c:348] 000000014056A45F mysqld.exe!_threadstartex()[threadex.c:326] 0000000077BD495D kernel32.dll!BaseThreadInitThunk() 0000000077D08791 ntdll.dll!RtlUserThreadStart() Trying to get some variables.
[6 Mar 2009 11:47]
Valeriy Kravchuk
Verified just as described with 6.0.9 also. While both this and Shane's bug are clearly related to the new MRR feature and InnoDB, I am not sure they are duplicates.
[1 Jul 2009 14:19]
Evgeny Potemkin
Duplicate of the bug#45029.