Description:
main.init_file fails if MTR run with option --mysqld=--query-cache-size=1000000
How to repeat:
$./mtr --mysqld=--query-cache-size=1000000 init_file
Logging: ./mtr --mysqld=--query-cache-size=1000000 init_file
100901 18:36:46 [Note] Plugin 'FEDERATED' is disabled.
100901 18:36:46 [Note] Plugin 'ndbcluster' is disabled.
MySQL Version 5.1.51
Checking supported features...
- using ndbcluster when necessary, mysqld supports it
- SSL connections supported
- binaries are debug compiled
Collecting tests...
vardir: /users/ssmirnova/blade12/src/mysql-5.1/mysql-test/var
Checking leftover processes...
Removing old var directory...
- WARNING: Using the 'mysql-test/var' symlink
Creating var directory '/users/ssmirnova/blade12/src/mysql-5.1/mysql-test/var'...
Installing system database...
Using server port 43840
==============================================================================
TEST RESULT TIME (ms)
------------------------------------------------------------
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009
main.init_file [ fail ]
Test ended at 2010-09-01 18:36:46
CURRENT_TEST: main.init_file
The server [mysqld.1 - pid: 30506, winpid: 30506, exit: 256] crashed while running 'check testcase before test'
Server log from this test:
100901 19:36:46 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.
100901 19:36:46 [Note] Plugin 'FEDERATED' is disabled.
100901 19:36:46 [Note] Plugin 'InnoDB' is disabled.
100901 19:36:46 [Note] Plugin 'ndbcluster' is disabled.
100901 19:36:46 [Note] Event Scheduler: Loaded 0 events
mysqld: sql_cache.cc:1000: void query_cache_end_of_result(THD*): Assertion `0' failed.
100901 19:36:46 - mysqld got signal 6 ;
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=1048576
read_buffer_size=131072
max_used_connections=0
max_threads=151
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 60584 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd: 0x8a66a18
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...
stack_bottom = 0x40a82078 thread_stack 0x40000
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(my_print_stacktrace+0x35)[0xb28bd9]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(handle_segfault+0x288)[0x697aa2]
/lib64/libpthread.so.0[0x3429e0dd40]
/lib64/libc.so.6(gsignal+0x35)[0x3429230015]
/lib64/libc.so.6(abort+0x110)[0x3429231980]
/lib64/libc.so.6(__assert_fail+0xf6)[0x3429229726]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(_Z25query_cache_end_of_resultP3THD+0x25c)[0x8501a9]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj+0x210)[0x898404]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(_ZN7sp_head7executeEP3THD+0x5e8)[0x89433c]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x74c)[0x895fe6]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(_Z21mysql_execute_commandP3THD+0x7424)[0x6b0d71]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(_Z11mysql_parseP3THDPcjPPKc+0x2ef)[0x6b558b]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld[0x6a5cc5]
/users/ssmirnova/blade12/src/mysql-5.1/sql/mysqld(handle_bootstrap+0x7c)[0x6a5e23]
/lib64/libpthread.so.0[0x3429e061b5]
/lib64/libc.so.6(clone+0x6d)[0x34292cd39d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x8ad8978 = select * from t1
thd->thread_id=1
thd->killed=NOT_KILLED
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file
mysqltest failed but provided no output
- saving '/users/ssmirnova/blade12/src/mysql-5.1/mysql-test/var/log/main.init_file/' to '/users/ssmirnova/blade12/src/mysql-5.1/mysql-test%2