Bug #24199 | MySQL Crashes during FLUSH QUERY CACHE | ||
---|---|---|---|
Submitted: | 10 Nov 2006 18:38 | Modified: | 30 Jan 2007 9:24 |
Reporter: | Morgan Collins | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.26 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[10 Nov 2006 18:38]
Morgan Collins
[11 Nov 2006 13:03]
Valeriy Kravchuk
Thank you for a problem report. Please, try to resolve this stack trace: 0x8167fcf 0xb7dc4edd 0x823f1b0 0x823f42d 0x823f4b8 0x81772b9 0x817bc77 0x8182dd0 0x818334b 0x8184684 0x8185150 0xb7dc2167 0xb7c13b7e on a server where FLUSH QUERY CACHE really crashed. Send the results of: getconf GNU_LIBPTHREAD_VERSION also.
[11 Nov 2006 23:43]
Morgan Collins
Stack Dump with symbols
Attachment: mysql.txt (text/plain), 53 bytes.
[11 Nov 2006 23:44]
Morgan Collins
I have attached a backtrace with full debugging enabled, and with symbols. Hopefully this will be more helpful. It doesn't look like it crashed during a FLUSH QUERY CACHE, though when I turn query cache off I don't seam to have this problem. Additionally, here is the output of info threads: (gdb) info threads * 16 Thread 1717521312 (LWP 24630) 0x081efaf6 in mysql_select (thd=0xa1fe328, rref_pointer_array=0xa1fe71c, tables=0xa20e2c0, wild_num=0, fields=@0xa1fe680, conds=0xa20e590, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=1375748096, result=0xa20e688, unit=0xa1fe3cc, select_lex=0xa1fe5f4) at sql_select.cc:1974 15 Thread 1717320608 (LWP 24629) 0xffffe410 in ?? () 14 Thread 1715469216 (LWP 24013) 0xffffe410 in ?? () 13 Thread -1754207328 (LWP 23205) 0x08429593 in ha_key_cmp (keyseg=0xa6fb288, a=0xa7126a0 "", b=0x645cbfd8 "", key_length=2224, nextflag=65, diff_pos=0x97707d14) at my_handler.c:119 12 Thread -1695458400 (LWP 23128) 0xffffe410 in ?? () 11 Thread -1703851104 (LWP 23129) 0xffffe410 in ?? () 10 Thread -1712243808 (LWP 23130) 0xffffe410 in ?? () 9 Thread -1720636512 (LWP 23131) 0xffffe410 in ?? () 8 Thread -1737421920 (LWP 23135) 0xffffe410 in ?? () 7 Thread -1745814624 (LWP 23136) 0xffffe410 in ?? () 6 Thread -1763542112 (LWP 23138) 0xffffe410 in ?? () 5 Thread 1717722016 (LWP 23157) 0xffffe410 in ?? () 4 Thread 1717521312 (LWP 24630) 0x0816dca5 in Field_string::type (this=0x902c560) at field.h:1015 3 Thread 1717320608 (LWP 24629) 0xffffe410 in ?? () 2 Thread 1717119904 (LWP 23165) 0xffffe410 in ?? () 1 Thread -1212630160 (LWP 23120) 0xffffe410 in ?? () # getconf GNU_LIBPTHREAD_VERSION NPTL 2.4 Thanks
[11 Nov 2006 23:46]
Morgan Collins
Stack Dump with symbols
Attachment: mysql-full-debug.txt (text/plain), 12.25 KiB.
[11 Nov 2006 23:59]
Morgan Collins
Just to verify, I copies note_messageType.* away before I killed gdb. I then went and found the query in the relay log. I stopped mysql, copied the old note_messageType back and started mysql with replication stopped and reran the INSERT, and mysql did not crash. Here is the full query from the relay log: INSERT INTO chartconnect.note_messageType ( communityID, noteID, messageTypeID ) SELECT 24, 4636563, messageType.messageTypeID FROM chartconnect.messageType WHERE messageType.name = 'Rad Comment';
[13 Nov 2006 5:14]
Morgan Collins
I was able to reproduce this crash with the query cache disabled. There was a check table running at the time however.
[14 Nov 2006 4:33]
Morgan Collins
Interestingly, reducing table_cache to 64 prevents the INSERT INTO ... SELECT+CHECK TABLE crash, however only if the query cache is disabled. I also forgot to mention in my previous post that these crashes always happen in the same function, irregardless of the initiator.
[3 Dec 2006 13:27]
Valeriy Kravchuk
Please, send your my.cnf content and describe exact steps to reproduce this crash each and every time.
[26 Dec 2006 19:32]
Morgan Collins
I am not able to provide you with an exact method to reproduce this crash. I have tried constructing tables similar to ours without sensitive information, but am unable to reproduce the error. We have upgraded to 5.0.30 and no longer are having issues however.
[30 Dec 2006 9:24]
Valeriy Kravchuk
Please, send resolved stack trace in case of any similar crash in 5.0.30 (or 5.0.27).
[31 Jan 2007 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".