Igor,
Please try the MTR test case below. It crashes on two machines out of 3 that i tried (the 3rd is a slow 32-bit box, not sure whether it's slowness or the bits that stop it from crashing).
Please run the test with --repeat=100. (It usually fails for me in the first 10 repetitions)
- MTR test case
CREATE TABLE t1 (a INT, b DATE, KEY(a), KEY(b)) ENGINE=MyISAM;
INSERT INTO t1 VALUES (8, '2008-10-02');
--send SET GLOBAL key_cache_segments = 1
--connect (con8,127.0.0.1,root,,test)
SET GLOBAL keycache1.key_buffer_size = 1024*1024;
--send CACHE INDEX t1 IN keycache1
--connection default
--reap
SET GLOBAL key_cache_segments = 7;
--connection con8
--reap
- End of MTR test case
- If it does not work, please try to use the following RQG grammar
- (it's one of the grammars from lp:1008293).
- cat 3.yy
query_init:
SET GLOBAL keycache1.key_buffer_size = 1024*1024;
thread1:
SET GLOBAL key_cache_segments = _digit;
query:
CACHE INDEX _table IN keycache1;
- end of RQG grammar 3.yy
- Run it as
perl runall.pl \
--no-mask \
--queries=100M \
--duration=300 \
--threads=2 \
--engine=MyISAM \
--grammar=3.yy \
--basedir=<your basedir> --vardir=<your vardir>
- Or, on an already started server, as
perl gentest.pl \
--gendata= \
--engine=MyISAM \
--threads=2 \
--queries=100M \
--duration=300 \
--grammar=3.yy \
--dsn=dbi:mysql:host=127.0.0.1:port=19300:user=root:database=test
(replace 19300 with your port).
Again, normally it fails within seconds after start, but sometimes it does not.
If neither of this works for you, please let me know.
FYI, the RQG test in question was added as a regression test for LP:1008293. It runs the same 2 grammars that were provided in the bug report.