Bug #8346 | Test case 'query_cache' crashes server on Windows 2000 | ||
---|---|---|---|
Submitted: | 6 Feb 2005 22:09 | Modified: | 5 Oct 2005 23:50 |
Reporter: | Kent Boortz | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.10-pre | OS: | Windows (Windows XP) |
Assigned to: | Kent Boortz | CPU Architecture: | Any |
[6 Feb 2005 22:09]
Kent Boortz
[7 Feb 2005 11:15]
Kent Boortz
Running it like above, require that the "mysql-test/var" is already initiated. Once recent changes to the mysql-test-run.pl are pushed, you might use it instead, i.e. run the test like "./mysql-test-run.pl query_cache". The last lines in the master log before the crash, are 1 Query set GLOBAL query_cache_size=51200 1 Query show global variables like "query_cache_size" 1 Query select * from t1
[7 Feb 2005 19:27]
MySQL Verification Team
I wasn't able for to repeat with a debug server built with latest BK source. Jorge and Kent please use a debug server for to get the call stack. Thanks.
[8 Feb 2005 15:28]
Kent Boortz
The test cases doesn't fail using the "mysqld-debug.exe", only if using one of the optimized binaries.
[8 Feb 2005 20:05]
Reggie Burnett
Using windows snapshot from 2/4, I was unable to reproduce this. Tried it with the mysqld.exe, mysqld-nt.exe, and mysqld-max-nt.exe binaries. Alll reported [pass]
[8 Feb 2005 20:17]
MySQL Verification Team
I was able to repeat just issuing: create table t1 (a int); set GLOBAL query_cache_size=1000; show global variables like "query_cache_size"; select * from t1; set GLOBAL query_cache_size=1024; show global variables like "query_cache_size"; select * from t1; set GLOBAL query_cache_size=10240; show global variables like "query_cache_size"; select * from t1; set GLOBAL query_cache_size=20480; show global variables like "query_cache_size"; select * from t1; set GLOBAL query_cache_size=40960; show global variables like "query_cache_size"; select * from t1; set GLOBAL query_cache_size=51200; show global variables like "query_cache_size"; select * from t1; below call stack: > mysqld-nt.exe!Query_cache::get_free_block() + 0x2a C++ mysqld-nt.exe!Query_cache::allocate_block() + 0x43 C++ mysqld-nt.exe!Query_cache::write_block_data() + 0x43 C++ mysqld-nt.exe!Query_cache::store_query() + 0x1c8 C++ mysqld-nt.exe!mysql_execute_command() + 0x405 C++ mysqld-nt.exe!mysql_parse() + 0xc7 C++ mysqld-nt.exe!dispatch_command() + 0x456 C++ mysqld-nt.exe!do_command() + 0xa7 C++ mysqld-nt.exe!_handle_one_connection() + 0x1ed C++ mysqld-nt.exe!_pthread_create() + 0xcb C mysqld-nt.exe!__beginthread() + 0xce ntdll.dll!7c9106eb() kernel32.dll!7c80b50b() ntdll.dll!7c9106eb() kernel32.dll!7c8399f3()
[11 Feb 2005 13:30]
Konstantin Osipov
I was able to reproduce the bug with 4.1.9 for windows, using Miguel's test case.
[11 Feb 2005 13:57]
Konstantin Osipov
The bug is simply repeatable by (optimized Windows build): drop table if exists t1; create table t1 (a int); set global query_cache_size=41984; select * from t1;
[15 Feb 2005 20:33]
Reggie Burnett
Thank you for your bug report. This issue has already been fixed in the latest released version of that product, which you can download at http://www.mysql.com/downloads/
[1 Apr 2005 15:38]
MySQL Verification Team
Re-open as verified since continues to be reported i.e.: http://bugs.mysql.com/bug.php?id=9555
[26 May 2005 20:57]
Reggie Burnett
I am marking this bug back to open and unassigning it from me. The server binaries that #eng are building do crash. However, we have shown that their windows toolchain is suspect. In addition, any 4.1 build that I compile up using vc6 or vc7 works passes the query_cache test.
[31 May 2005 14:17]
Jorge del Conde
I was able to reproduce this bug using 5.0.7 from bk and Miguel's test case. Setting back to verified.
[31 May 2005 16:50]
Jorge del Conde
BTW, I used our 5.0.4 binary to test this bug
[27 Sep 2005 17:26]
Kent Boortz
We now build 5.0, and soon 4.1 using VC7.1, i.e. Visual Studio .Net 2003. Indication was that broken 64 bit arithmetics was the cause, and using the new compiler the problem with 'query_cache' crash is gone.
[5 Oct 2005 23:50]
Paul DuBois
No changelog entry needed.