Bug #19387 mysqld child process crash on SQL writes when using MEMORY table types
Submitted: 26 Apr 2006 22:49 Modified: 27 May 2006 14:28
Reporter: Richard Garcia Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.20a OS:Linux (Linux - AS3, update 6)
Assigned to: CPU Architecture:Any

[26 Apr 2006 22:49] Richard Garcia
Description:
Periodically, I am getting mysqld server crashes and lost connections when attempting to write to a table called "session".  This table is using ENGINE=MEMORY.  

My application is outputing this error about 10 times each day:

---------- cut ---------------
Invalid SQL:

					UPDATE session
					SET lastactivity = 1146024012, location = '/showthread.php?t=526365', inthread = 526365, incalendar = 0, badlocation = 0
					WHERE sessionhash = 'c08e8769e737381bb295f1a3c73e4fa8';

MySQL Error  : Lost connection to MySQL server during query
Error Number : 2013
---------- cut ---------------

Here is my "SHOW CREATE TABLE sessions" output:
-----------cut --------------
CREATE TABLE `session` (
  `sessionhash` varchar(32) NOT NULL default '',
  `userid` int(10) unsigned NOT NULL default '0',
  `host` varchar(15) NOT NULL default '',
  `useragent` varchar(100) NOT NULL default '',
  `lastactivity` int(10) unsigned NOT NULL default '0',
  `styleid` smallint(5) unsigned NOT NULL default '0',
  `location` varchar(255) NOT NULL default '',
  `althash` varchar(32) NOT NULL default '',
  `badlocation` smallint(5) unsigned NOT NULL default '0',
  `inforum` smallint(5) unsigned NOT NULL default '0',
  `inthread` int(10) unsigned NOT NULL default '0',
  `incalendar` int(10) unsigned NOT NULL default '0',
  `loggedin` smallint(5) unsigned NOT NULL default '0',
  `idhash` varchar(32) NOT NULL default '',
  `bypass` smallint(6) NOT NULL default '0',
  `languageid` smallint(5) unsigned NOT NULL default '0',
  PRIMARY KEY  (`sessionhash`)
) ENGINE=MEMORY DEFAULT CHARSET=latin1
-----------cut--------------

Also, it is important to note that these child mysql server crashes are not generating anything in the error log.

How to repeat:
I do not know how to duplicate this error on demand.  Perhaps it happens under high load.

I am running linux-2.4.21-37.ELsmp (AS3 update 6) on a 32 bit dual proc P3@1.0Ghz w/ 2GB Ram.

Suggested fix:
not known
[27 Apr 2006 14:28] Valeriy Kravchuk
Thank you for a problem report. Please, send the SHOW TABLE STATUS results for that sessions table. Can you make and upload a dump of data it usually has?
[27 May 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".