Bug #20389 | use partition, server crash | ||
---|---|---|---|
Submitted: | 12 Jun 2006 8:22 | Modified: | 19 Jul 2006 4:08 |
Reporter: | steven zhoucn | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S1 (Critical) |
Version: | 5.1.12-BK debug, 5.1.11 | OS: | Linux (linux 2.4.20-8) |
Assigned to: | Mikael Ronström | CPU Architecture: | Any |
[12 Jun 2006 8:22]
steven zhoucn
[13 Jun 2006 14:00]
Valeriy Kravchuk
Thank you for a problem report. Please, send/upload a complete dump of your `crash` table data. I was not able to get any crash form 5.1.12-BK with only 2 those rows you had presented.
[14 Jun 2006 12:51]
steven zhoucn
the full records
Attachment: crash.sql (text/plain), 119.42 KiB.
[14 Jun 2006 12:52]
steven zhoucn
config file
Attachment: my.cnf (application/octet-stream, text), 4.88 KiB.
[14 Jun 2006 12:53]
steven zhoucn
select sql
Attachment: select.sql (text/plain), 165 bytes.
[14 Jun 2006 12:59]
steven zhoucn
hello Valeriy Kravchuk I think you can't get any crash! because I don't provide the full records! So I have submit 3 files! the crash.sql include all records!
[4 Jul 2006 15:34]
Valeriy Kravchuk
Verified just as described on your `crash` table data uploaded: mysql> select dataId from crash where account like 'g%' and captureTime between '2006-04-03 00:00:00' and '2006-04-03 01:00:00' and hourNum=0 order by account desc limit 10; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> Number of processes running now: 0 060704 14:05:36 mysqld restarted mysql> select version(); ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... Connection id: 2 Current database: test +-------------------+ | version() | +-------------------+ | 5.1.12-beta-debug | +-------------------+ 1 row in set (1.03 sec) mysql> select count(*) from crash; +----------+ | count(*) | +----------+ | 139 | +----------+ 1 row in set (0.02 sec) In the error log I've got: Stack range sanity check OK, backtrace follows: 0x8215556 0xffffe420 (nil) 0x82e9913 0x82f2c65 0x828508b 0x8284c11 0x827435b 0x8274847 0x826f70e 0x8236e94 0x8230015 0x82388c0 0x822e3ab 0x822dc1e 0x822cdab 0x40047aa7 0x4023ec2e New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html and follow instructions on how to resolve the stack trace. Resolved stack trace is much more helpful in diagnosing the problem, so please do resolve it Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0x9274b28 = select dataId from crash where account like 'g%' and c aptureTime between '2006-04-03 00:00:00' and '2006-04-03 01:00:00' and hourNum=0 order by account desc limit 10 thd->thread_id=4 Resolved to: 0x8215556 handle_segfault + 412 0xffffe420 _end + -143818624 (nil) 0x82e9913 _ZN17QUICK_SELECT_DESC8get_nextEv + 191 0x82f2c65 _Z8rr_quickP14st_read_record + 35 0x828508b _Z10sub_selectP4JOINP13st_join_tableb + 329 0x8284c11 _Z9do_selectP4JOINP4ListI4ItemEP8st_tableP9Procedure + 673 0x827435b _ZN4JOIN4execEv + 6843 0x8274847 _Z12mysql_selectP3THDPPP4ItemP13st_table_listjR4ListIS1_ES2_jP8st_orde rSB_S2_SB_mP13select_resultP18st_select_lex_unitP13st_sel + 635 0x826f70e _Z13handle_selectP3THDP6st_lexP13select_resultm + 306 0x8236e94 _Z21execute_sqlcom_selectP3THDP13st_table_list + 592 0x8230015 _Z21mysql_execute_commandP3THD + 1271 0x82388c0 _Z11mysql_parseP3THDPcj + 484 0x822e3ab _Z16dispatch_command19enum_server_commandP3THDPcj + 1917 0x822dc1e _Z10do_commandP3THD + 518 0x822cdab handle_one_connection + 803 0x40047aa7 _end + 930223879 0x4023ec2e _end + 932284558
[12 Jul 2006 8:26]
Mikael Ronström
There was some misunderstandings of the handler interface that have now been corrected for reverse order scans.
[18 Jul 2006 8:54]
Mikael Ronström
Patch will appear in 5.1.12
[19 Jul 2006 4:08]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html
[19 Jul 2006 4:09]
Jon Stephens
Documented bugfix in 5.1.12 changelog.