Bug #17355 | Combination of "Group By" query crashes server | ||
---|---|---|---|
Submitted: | 13 Feb 2006 23:37 | Modified: | 21 Mar 2006 13:31 |
Reporter: | Mark Moseley | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.18-linux-x86_64-glibc23 | OS: | Linux (Red Hat Enterprise AS 4 Update 2) |
Assigned to: | CPU Architecture: | Any |
[13 Feb 2006 23:37]
Mark Moseley
[14 Feb 2006 11:35]
Valeriy Kravchuk
Thank you for a detailed problem report. Please, send the SHOW CREATE TABLE MigrationStatus results. EXPLAIN results for your query (from 32-bit systems) and your my.cnf content will be also useful.
[14 Feb 2006 16:35]
Mark Moseley
I've added the three things you've asked for in attached files. The my.cnf file is from mysqlmp02 but it is identical to mysqlmp01 except for the server_id and the names in paths.
[14 Feb 2006 17:03]
Mark Moseley
I was able to do a little more testing today in 64-bit mode, with a dispensation to do so from my employer since the 32-bit version is somehow vastly slower than it was on a 32-bit box with 4 gigs and 2 processors (is that normal?). The important thing here is that I mysqldumped the MigrationStatus table and reimported it. While running the 64-bit mysqld, the query did *not* segfault on those queries. So apparently there's something in the (old) data itself that the 64-bit binary doesn't like but that the 32-bit binary doesn't mind. Both those TestGroup and Status_Migrated fields are very simple. Here's the full output of the latter query: mysql> select TestGroup,Status_Migrated, count(*) as count from MigrationStatus where origin=131 group by TestGroup,Status_Migrated order by TestGroup,Status_Migrated; +-----------+-----------------+-------+ | TestGroup | Status_Migrated | count | +-----------+-----------------+-------+ | LastGroup | 1 | 126 | | LastGroup | 2 | 27 | | LastGroup | 4 | 685 | | LastGroup | 5 | 2673 | | LastGroup | 6 | 4 | | LastGroup | 7 | 4 | | LastGroup | 11 | 2094 | | LastGroup | 12 | 43 | | LastGroup | 13 | 794 | | MWeek0 | 4 | 497 | | MWeek0 | 5 | 10 | | MWeek0 | 11 | 2 | | MWeek0 | 13 | 40 | | MWeek1 | 1 | 206 | | MWeek1 | 4 | 5207 | | MWeek1 | 5 | 44 | | MWeek1 | 11 | 4 | | MWeek1 | 12 | 74 | | MWeek1 | 13 | 482 | | MWeek2 | 1 | 1270 | | MWeek2 | 2 | 5 | | MWeek2 | 4 | 5786 | | MWeek2 | 5 | 474 | | MWeek2 | 11 | 91 | | MWeek2 | 12 | 353 | | MWeek2 | 13 | 30 | | MWeek3 | 1 | 8908 | | MWeek3 | 2 | 4 | | MWeek3 | 4 | 1870 | | MWeek3 | 5 | 60 | | MWeek3 | 6 | 1 | | MWeek3 | 11 | 29 | | MWeek3 | 12 | 14 | | MWeek3 | 13 | 39 | | MWeek4 | 1 | 6323 | | MWeek4 | 4 | 38 | | MWeek4 | 5 | 51 | | MWeek4 | 6 | 1 | | MWeek4 | 11 | 131 | | MWeek4 | 12 | 6 | | MWeek4 | 13 | 30 | | MWeek5 | 1 | 6226 | | MWeek5 | 2 | 1 | | MWeek5 | 4 | 82 | | MWeek5 | 5 | 53 | | MWeek5 | 6 | 3 | | MWeek5 | 11 | 31 | | MWeek5 | 12 | 10 | | MWeek5 | 13 | 59 | | MWeek6 | 1 | 7808 | | MWeek6 | 2 | 3 | | MWeek6 | 4 | 26 | | MWeek6 | 5 | 43 | | MWeek6 | 11 | 73 | | MWeek6 | 12 | 11 | | MWeek6 | 13 | 37 | | MWeek7 | 1 | 6248 | | MWeek7 | 2 | 2 | | MWeek7 | 4 | 374 | | MWeek7 | 5 | 79 | | MWeek7 | 7 | 2 | | MWeek7 | 11 | 196 | | MWeek7 | 12 | 15 | | MWeek7 | 13 | 115 | | sqluser | 1 | 3 | | sqluser | 5 | 2328 | | sqluser | 6 | 76 | | sqluser | 11 | 45 | | sqluser | 13 | 12 | +-----------+-----------------+-------+ 69 rows in set (1.14 sec) I neglected to mention in my initial bug report that these tables were originally on a server running 4.0.22 (different server, of course) on a 32-bit box, and were copied over cleanly. Running myisamchk (the one that came with the 64-bit 5.0.18 package) using "-a -o" does not seem to have any effect, as I had run that on MigrationStatus and was still able to get this same error.
[21 Feb 2006 13:31]
Valeriy Kravchuk
The only right and recommended way to migrate from 4.x.y to 5.0.x is with mysqldump and restore, even in case of 32-bit only. Especially when your table has varchar columns. Can you, please, upload files for your original MyISAM table, from 4.0.22?
[22 Mar 2006 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".