Bug #17332 changing key_buffer_size on a running server can crash under load
Submitted: 12 Feb 2006 21:38 Modified: 18 Dec 2009 20:28
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: MyISAM storage engine Severity:S2 (Serious)
Version:4.1BK,5.0.18, 5.0.19-bk,5.0.21-bk OS:Any (Linux,Windows)
Assigned to: Ingo Strüwing CPU Architecture:Any
Tags: crash, key_buffer_size, load index, myisam

File: Maximum allowed size is 50MB.
Description:
Privacy:

If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.

To split a large file:

[12 Feb 2006 21:39] Shane Bester
insert statements

Attachment: thread1.zip (application/zip, text), 4.24 KiB.

[12 Feb 2006 21:42] Shane Bester
set key_buffer_size

Attachment: thread2.zip (application/zip, text), 190.47 KiB.

[12 Feb 2006 22:43] Shane Bester
proper backtrace, using 5.0.19-debug on Windows.

Attachment: win_stack_trace.txt (text/plain), 1.46 KiB.

[20 Apr 2006 21:28] Shane Bester
5.0.21-bk, crash when INSERT and key_cache_block_size changes.

Attachment: key_cache_block_size.stack.txt (text/plain), 2.09 KiB.

[23 Jun 2006 1:01] Shane Bester
multithreaded C program. see top of file for compile details

Attachment: bug20540.c (text/x-csrc), 5.37 KiB.

[1 Nov 2006 16:38] Shane Bester
yes, 4.1.22 is also affected..

Attachment: 4.1_bk.txt (plain/text, text), 1010 bytes.

[8 Dec 2006 13:57] Ingo Strüwing
My current test script. Run on an installed version (BASEDIR, DATADIR).

Attachment: bug17332-8.sh (application/x-sh, text), 24.24 KiB.

[31 Jan 2007 17:45] Ingo Strüwing
My current test script. Run on an installed version (BASEDIR, DATADIR).

Attachment: bug17332-9.sh (application/x-sh, text), 14.30 KiB.

[31 Jan 2007 17:48] Ingo Strüwing
Detailed description for todays changeset and some general key cache information.

Attachment: keycache-changes.txt (text/plain), 63.38 KiB.

[22 Mar 2007 12:15] Shane Bester
stack trace and variables

Attachment: load_index_crash.txt (text/plain), 2.93 KiB.