Bug #18728 | server crash | ||
---|---|---|---|
Submitted: | 3 Apr 2006 7:01 | Modified: | 28 Apr 2006 9:05 |
Reporter: | Aleksander Machniak | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.19 | OS: | Linux (Slackware Linux 10.2) |
Assigned to: | CPU Architecture: | Any |
[3 Apr 2006 7:01]
Aleksander Machniak
[3 Apr 2006 8:13]
Valeriy Kravchuk
Thank you for a problem report. Please, send the SHOW CREATE TABLE and SHOW TABLE STATUS results for all the tables in your SELECT: - documents - invoicecontents - numberplans Can you try to repeat the same SELECT on the same data and configuration with a newer version of MySQL server, 5.0.19?
[3 Apr 2006 9:58]
Aleksander Machniak
CREATE TABLE `documents` ( `id` int(11) NOT NULL auto_increment, `type` tinyint(4) NOT NULL default '0', `number` int(11) NOT NULL default '0', `cdate` int(11) NOT NULL default '0', `customerid` int(11) NOT NULL default '0', `userid` int(11) NOT NULL default '0', `name` varchar(255) collate utf8_polish_ci NOT NULL default '', `address` varchar(255) collate utf8_polish_ci NOT NULL default '', `zip` varchar(10) collate utf8_polish_ci NOT NULL default '', `city` varchar(32) collate utf8_polish_ci NOT NULL default '', `ten` varchar(16) collate utf8_polish_ci NOT NULL default '', `ssn` varchar(16) collate utf8_polish_ci NOT NULL default '', `paytime` tinyint(4) NOT NULL default '0', `paytype` varchar(255) collate utf8_polish_ci NOT NULL default '', `numberplanid` int(11) NOT NULL default '0', `closed` tinyint(1) NOT NULL default '0', `reference` int(11) NOT NULL default '0', `extnumber` varchar(255) collate utf8_polish_ci NOT NULL default '', PRIMARY KEY (`id`), KEY `cdate` (`cdate`), KEY `numberplanid` (`numberplanid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci; CREATE TABLE `invoicecontents` ( `docid` int(11) NOT NULL default '0', `value` decimal(9,2) NOT NULL default '0.00', `prodid` varchar(255) NOT NULL default '', `content` varchar(16) NOT NULL default '', `count` decimal(9,2) NOT NULL default '0.00', `description` varchar(255) NOT NULL default '', `tariffid` int(11) NOT NULL default '0', `itemid` smallint(6) NOT NULL default '0', `taxid` int(11) NOT NULL default '0', `discount` decimal(4,2) NOT NULL default '0.00', KEY `docid` (`docid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE `numberplans` ( `id` int(11) NOT NULL auto_increment, `template` varchar(255) collate utf8_polish_ci NOT NULL default '', `period` smallint(6) NOT NULL default '0', `doctype` int(11) NOT NULL default '0', `isdefault` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci; +-----------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+----------------+----------+----------------+---------+ | 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 | +-----------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+----------------+----------+----------------+---------+ | documents | MyISAM | 10 | Dynamic | 182 | 121 | 22288 | 281474976710655 | 11264 | 120 | 496 | 2006-03-21 23:11:50 | 2006-04-03 09:02:27 | 2006-03-21 23:11:50 | utf8_polish_ci | NULL | | | +-----------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+----------------+----------+----------------+---------+ | 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 | +-----------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+----------+----------------+---------+ | invoicecontents | MyISAM | 10 | Dynamic | 205 | 68 | 14004 | 281474976710655 | 5120 | 56 | NULL | 2006-03-21 23:11:50 | 2006-04-03 09:06:00 | 2006-03-21 23:11:50 | latin1_swedish_ci | NULL | | | | 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 | +-------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+------------+----------------+----------+----------------+---------+ | numberplans | MyISAM | 10 | Dynamic | 2 | 24 | 48 | 281474976710655 | 2048 | 0 | 3 | 2006-03-21 23:11:50 | 2006-04-03 09:17:03 | NULL | utf8_polish_ci | NULL | | | Problem is when I've got in documents and invoicecontents tables one row more than in stats above. I've checked 5.0.19 and problem stil exists. My friend has the same problem on different distribution (the same program/query and 5.0.18, but bigger database and different my.cnf settings)
[24 Apr 2006 15:46]
Valeriy Kravchuk
Please, try to repeat with a newer version, 5.0.20a, and inform about the results. Have you created these tables in 5.0.x or they were created in 4.x.y and then you just updated binaries?
[28 Apr 2006 9:05]
Aleksander Machniak
5.0.20a works fine. Problem solved, thanks!