Bug #9520 | SELECT DISTINCT crashes server with cursor | ||
---|---|---|---|
Submitted: | 31 Mar 2005 11:51 | Modified: | 16 May 2005 15:26 |
Reporter: | Hakan Küçükyılmaz | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.4 | OS: | Linux (SuSE 9.2) |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[31 Mar 2005 11:51]
Hakan Küçükyılmaz
[31 Mar 2005 13:48]
MySQL Verification Team
Tested on Linux and Windows: /sql_select.cpp int Cursor::fetch(ulong num_rows) { THD *thd= join->thd; JOIN_TAB *join_tab= join->join_tab + join->const_tables; COND *on_expr= *join_tab->on_expr_ref; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Call stack: > mysqld.exe!Cursor::fetch(unsigned long num_rows=1) Line 1818 + 0x6 C++ mysqld.exe!mysql_stmt_fetch(THD * thd=0x00efd6a0, char * packet=0x02fb8fdd, unsigned int packet_length=9) Line 2228 C++ mysqld.exe!dispatch_command(enum_server_command command=COM_FETCH, THD * thd=0x00efd6a0, char * packet=0x02fb8fd9, unsigned int packet_length=9) Line 1617 + 0x11 C++ mysqld.exe!do_command(THD * thd=0x00efd6a0) Line 1453 + 0x31 C++ mysqld.exe!handle_one_connection(void * arg=0x00efd6a0) Line 1110 + 0x9 C++ mysqld.exe!pthread_start(void * param=0x00effbf0) Line 63 + 0x7 C mysqld.exe!_threadstart(void * ptd=0x02fb4b70) Line 173 + 0xd C kernel32.dll!7c80b50b() kernel32.dll!7c8399f3()
[5 Apr 2005 12:25]
Konstantin Osipov
Hakan, while the crash itself should not be hard to fix, investigating the issue with different row count might require more time than I originally anticipated.
[17 Apr 2005 2:29]
Konstantin Osipov
Date: Mon, 11 Apr 2005 22:59:14 -0700 (PDT) Subject: bk commit - 5.0 tree (konstantin:1.1891) BUG#9520 ChangeSet 1.1891 05/04/11 22:59:03 konstantin@mysql.com +3 -0 A fix and a test case for Bug#9520 "SELECT DISTINCT crashes server with cursor" (goes on top of the previous two changesets).
[29 Apr 2005 17:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/24488
[16 May 2005 15:26]
Paul DuBois
Noted in 5.0.6 changelog.