Bug #21817 | mysql 5.0.24 is crashing under freebsd 5.4 | ||
---|---|---|---|
Submitted: | 24 Aug 2006 19:28 | Modified: | 30 Sep 2006 19:35 |
Reporter: | Fernando Figaro | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.24 | OS: | FreeBSD (freebsd) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[24 Aug 2006 19:28]
Fernando Figaro
[25 Aug 2006 18:14]
Fernando Figaro
I have already compiled mysql using WITH_LINUXTHREADS=yes WITH_PROC_SCOPE_PTH=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes But the error persists.
[25 Aug 2006 19:40]
Sveta Smirnova
Thank you for the report. But we really need more information to repeat this bug. > I believe (but not found) that some complex queries is crashing mysql server. You can find such query: turn on general query log and than error happens again, simple found the query.
[25 Aug 2006 19:47]
Fernando Figaro
I don't want to believe this ;-) , but I was checking the queries and mysql log and for some circunstance this error occurs in some condition when php session expires, maybe when some transaction is running... This is what my programmer said. I increased the expiration timeout, let's check if error persists.
[25 Aug 2006 21:35]
Sveta Smirnova
OK. We will wait feedback from you.
[27 Aug 2006 11:23]
MySQL Verification Team
Hi Fernando, Do you use temporary tables in the applications? (CREATE TEMPORARY TABLE ...) ?
[27 Aug 2006 20:51]
Fernando Figaro
Yes, we use many create temporary table. I was searching for any other information about this problem and I'm unable to detect the exact query causing this error. But I know that is something related to innodb, inner join, transactions. The queries executed before errors use this functions. I'm preparing some query logs to post here.
[28 Aug 2006 19:15]
Fernando Figaro
Txt with queries
Attachment: bug.txt.rtf (application/octet-stream, text), 17.02 KiB.
[28 Aug 2006 19:18]
Fernando Figaro
Hi, I posted the log of the queries executed some minutes/seconds before the error. In the end of this file you can see an "/usr/local/libexec/mysqld, Version: 5.0.24-log. started with: Tcp port: 3306 Unix socket: (null) This is the point where error ocurred.
[28 Aug 2006 19:46]
MySQL Verification Team
This might be that temporary table crash, bug #21582. Try adding DROP TEMPORARY TABLE .. before closing the connections and see if it helps. 2408 Connect 2408 Init DB XXXXXX 2408 Query SELECT ... 2408 Query SELECT ... 2408 Query CREATE TEMPORARY TABLE ... ... 2408 Quit <crash>
[30 Aug 2006 19:10]
Sveta Smirnova
Thank you, Fernando, for the queries. Could you please provide output of SHOW CREATE TABLE AgenciesUsers; and SHOW TABLE STATUS LIKE 'AgenciesUsers'; for AgenciesUsers, PackagesCountries and PackagesDepartureDates tables? Also, please, try suggestion by Shane Bester.
[30 Aug 2006 20:45]
Fernando Figaro
Hi, here is the output of commands... SHOW CREATE TABLE AgenciesUsers :** CREATE TABLE `AgenciesUsers` (\n `AgencyID` smallint(6) NOT NULL default '0',\n `Sequencia` smallint(6) NOT NULL default '0',\n `BuyNetFareID` char(9) collate latin1_general_ci NOT NULL default '',\n `UserIDInclusion` smallint(5) unsigned NOT NULL default '0',\n `InclusionDate` datetime NOT NULL default '0000-00-00 00:00:00',\n `UserIDUpdate` smallint(5) unsigned default NULL,\n `UpdateDate` datetime default NULL,\n `UserName` char(100) collate latin1_general_ci default NULL,\n `PositionID` tinyint(4) default NULL,\n `Address` char(100) collate latin1_general_ci NOT NULL default '',\n `CityID` int(10) unsigned NOT NULL default '0',\n `ZipCode` char(20) collate latin1_general_ci NOT NULL default '',\n `Telephone` char(20) collate latin1_general_ci NOT NULL default '',\n `FaxNumber` char(20) collate latin1_general_ci NOT NULL default '',\n `Email` char(100) collate latin1_general_ci NOT NULL default '',\n `LoginName` char(100) collate latin1_general_ci NOT NULL default '',\n `Senha` char(20) collate latin1_general_ci NOT NULL default '',\n `LastLogin` datetime NOT NULL default '0000-00-00 00:00:00',\n `Expired` char(1) collate latin1_general_ci NOT NULL default '',\n `Online` datetime NOT NULL default '0000-00-00 00:00:00',\n `Tentativas` tinyint(4) NOT NULL default '0',\n `Inactive` char(1) collate latin1_general_ci NOT NULL default '1',\n `BlastEmailEnviado` char(1) collate latin1_general_ci NOT NULL default '0',\n PRIMARY KEY (`AgencyID`,`Sequencia`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci *SHOW TABLE STATUS LIKE **'AgenciesUsers':* Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment AgenciesUsers InnoDB 10 Compact 3431 768 2637824 0 0 0 /NULL/ 2006-08-30 16:52:01 /NULL/ /NULL/ latin1_general_ci /NULL/ InnoDB free: 24576 kB *SHOW TABLE STATUS LIKE '*PackagesCountries***'* Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment PackagesCountries InnoDB 10 Compact 171 95 16384 0 0 0 /NULL/ 2006-08-30 16:52:08 /NULL/ /NULL/ latin1_general_ci /NULL/ InnoDB free: 24576 kB *SHOW** TABLE STATUS LIKE '***PackagesDepartureDates***':* Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment PackagesDepartureDates InnoDB 10 Compact 2447 53 131072 0 0 0 /NULL/ 2006-08-30 16:52:08 /NULL/ /NULL/ latin1_general_ci /NULL/ InnoDB free: 24576 kB
[31 Aug 2006 8:09]
Sveta Smirnova
Please, try suggestion by Shane Bester: > Try adding DROP TEMPORARY TABLE .. before closing the connections and see if it > helps. > 2408 Connect > 2408 Init DB XXXXXX > 2408 Query SELECT ... > 2408 Query SELECT ... > 2408 Query CREATE TEMPORARY TABLE ... > ... > 2408 Quit and provide output of SHOW CREATE TABLE PackagesCountries; and SHOW CREATE TABLE PackagesDepartureDates; statements.
[31 Aug 2006 17:30]
Fernando Figaro
We add some Drop temporary table in our scripts...lets check if the problem persists. I found in mysql data directory a file mysqld.core with almost 93M. It contains some data in begining and many pieces of my tables information. Which part would be better to upload here? Fernando
[31 Aug 2006 19:35]
Sveta Smirnova
Fernando, core file can be helpful only if you upload it whole (not only part) and binary mysqld produced it. Read instructions in "Files" field how to upload large file. But Shane Bester can be right and this case can be same of bug #21582 already fixed BK sources. So lets wait results of "DROP TEMPORARY TABLE" test first.
[1 Sep 2006 6:25]
Sveta Smirnova
MySQL 5.0.24a with fix of bug #21582 has relased today. Could you also try using this version?
[1 Sep 2006 6:26]
Sveta Smirnova
You cab download MySQL 5.0.24a here: http://dev.mysql.com/downloads/mysql/5.0.html
[1 Oct 2006 23: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".