Bug #48145 | ERROR 2013 (HY000) while do mysql-test-run test. | ||
---|---|---|---|
Submitted: | 19 Oct 2009 9:39 | Modified: | 25 Oct 2009 12:54 |
Reporter: | Billy Huang | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S1 (Critical) |
Version: | Distrib 5.0.85 | OS: | Linux (kernel 2.6.26.7) |
Assigned to: | CPU Architecture: | Any |
[19 Oct 2009 9:39]
Billy Huang
[19 Oct 2009 9:47]
Billy Huang
During do step debug, I found that the test failed with group operation in SQL. 1. Test 1 is Ok. mysql> CHECK TABLE t1; +-----------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +-----------------+-------+----------+----------+ | huangbenpeng.t1 | check | status | OK | +-----------------+-------+----------+----------+ 1 row in set (0.00 sec) mysql> select * from t1 WHERE hdl_nr < 2000000 ORDER BY kategorie; .......... 6 rows in set (0.00 sec) Test 2: failed. mysql> CHECK TABLE t1; +-----------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +-----------------+-------+----------+----------+ | huangbenpeng.t1 | check | status | OK | +-----------------+-------+----------+----------+ 1 row in set (0.00 sec) mysql> select * from t1 WHERE hdl_nr < 2000000 GROUP BY kundentyp; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> Number of processes running now: 0 091019 09:45:32 mysqld restarted
[19 Oct 2009 9:52]
Billy Huang
I tried to use ENGINE=InnoDB to create table. Also failed in case 3. Test case 1: mysql> CHECK TABLE t1; +---------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +---------+-------+----------+----------+ | test.t1 | check | status | OK | +---------+-------+----------+----------+ 1 row in set (0.01 sec) mysql> select * from t1 WHERE hdl_nr < 2000000 GROUP BY kundentyp; .... 1 row in set (0.00 sec) Test case 2: mysql> CHECK TABLE t1; +---------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +---------+-------+----------+----------+ | test.t1 | check | status | OK | +---------+-------+----------+----------+ 1 row in set (0.01 sec) mysql> select * from t1 WHERE hdl_nr < 2000000 ORDER BY kategorie; ...... 6 rows in set (0.01 sec) Test case 3: mysql> CHECK TABLE t1; +---------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +---------+-------+----------+----------+ | test.t1 | check | status | OK | +---------+-------+----------+----------+ 1 row in set (0.01 sec) mysql> select * from t1 WHERE hdl_nr < 2000000 GROUP BY kundentyp ORDER BY kategorie; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> Number of processes running now: 0 091019 09:50:46 mysqld restarted
[19 Oct 2009 9:55]
Billy Huang
mysqladmin variables
Attachment: mysqladmin-variables.txt (text/plain), 17.08 KiB.
[19 Oct 2009 10:16]
MySQL Verification Team
On Windows current source tree pass the test: c:\build\mysql-5.0\mysql-test>perl mysql-test-run.pl alias Logging: mysql-test-run.pl alias MySQL Version 5.0.88 Disable Instance manager - testing not supported on Windows Skipping ndbcluster, mysqld not compiled with ndbcluster Setting mysqld to support SSL connections Using MTR_BUILD_THREAD = 0 Using MASTER_MYPORT = 9306 Using MASTER_MYPORT1 = 9307 Using SLAVE_MYPORT = 9308 Using SLAVE_MYPORT1 = 9309 Using SLAVE_MYPORT2 = 9310 Killing Possible Leftover Processes Removing Stale Files Creating Directories Installing Master Database ======================================================= Starting Tests in the 'main' suite TEST RESULT TIME (ms) ------------------------------------------------------- alias [ pass ] 333 ------------------------------------------------------- Stopping All Servers All 1 tests were successful. The servers were restarted 1 times Spent 0.333 of 14 seconds executing testcases
[20 Oct 2009 0:35]
Billy Huang
What parameter or configuration will influence select operation? Operation with key "GROUP" will fail in my test. It is ok with "select * from t1 WHERE hdl_nr < 2000000 ORDER BY kategorie;"; but failed with "select * from t1 WHERE hdl_nr < 2000000 GROUP BY kundentyp;". The table is created with "ENGINE=MyISAM" .
[20 Oct 2009 7:50]
Billy Huang
mysqld.trace
Attachment: mysqld.trace (application/octet-stream, text), 11.83 KiB.
[21 Oct 2009 17:48]
Valeriy Kravchuk
Please, send the results of: uname -a free file mysqld Linux commands, just for completeness.
[24 Oct 2009 4:25]
Billy Huang
# uname -a Linux localhost 2.6.26.7-MDE-user-bhuang-mysql.86204 #2 SMP Tue Oct 13 20:45:43 PDT 2009 tile unknown # free total used free shared buffers Mem: 8287168 1437952 6849216 0 0 Swap: 0 0 0 Total: 8287168 1437952 6849216 # file mysqld mysqld: ELF 32-bit LSB executable, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
[24 Oct 2009 4:26]
Billy Huang
backtrace get from gdb
Attachment: Backtrace.log (application/octet-stream, text), 2.19 KiB.
[24 Oct 2009 4:27]
Billy Huang
Analyze the backtrace info. It seems that the same issue as:http://bugs.mysql.com/bug.php?id=25285
[24 Oct 2009 5:32]
Billy Huang
I have tried and find that it can be fixed as http://bugs.mysql.com/bug.php?id=25285 through http://lists.mysql.com/commits/27012. Thanks.
[25 Oct 2009 12:54]
Billy Huang
Change to duplicate