Bug #17425 server crash on old ISAM files
Submitted: 15 Feb 2006 13:02 Modified: 21 Mar 2006 16:18
Reporter: Ard van Breemen Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.0.26-standard x86_64 OS:Linux (Debian GNU/Linux sarge)
Assigned to: CPU Architecture:Any

[15 Feb 2006 13:02] Ard van Breemen
Description:
x86_64 server crashes with signal 11 when trying to optimize an old databases.
i686 server correctly reports an error.
The platform is a debian gnu/linux 32 bit setup with amd64-libs installed.

root@dodgers:/usr/local# ln -nfs mysql-standard-4.0.26-pc-linux-gnu-i686 mysql
root@dodgers:/usr/local# /etc/init.d/mysql start
root@dodgers:/usr/local# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.0.26-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> optimize table autodatatest.speurderCarrosserie;   
+----------------------------------+----------+----------+----------------------------------------------------+
| Table                            | Op       | Msg_type | Msg_text                                           |
+----------------------------------+----------+----------+----------------------------------------------------+
| autodatatest.speurderCarrosserie | optimize | error    | The handler for the table doesn't support optimize |
+----------------------------------+----------+----------+----------------------------------------------------+
1 row in set (0.02 sec)

mysql> exit
Bye
root@dodgers:/usr/local# /etc/init.d/mysql stop 
Killing mysqld with pid 5140
root@dodgers:/usr/local# ln -nfs mysql-standard-4.0.26-pc-linux-gnu-i686 mysql
root@dodgers:/usr/local# ln -nfs mysql-standard-4.0.26-unknown-linux-gnu-x86_64-glibc23 mysql
root@dodgers:/usr/local# /etc/init.d/mysql start
root@dodgers:/usr/local# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.26-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> optimize table autodatatest.speurderCarrosserie;   
ERROR 2013: Lost connection to MySQL server during query
mysql> Bye
root@dodgers:/usr/local# 
root@dodgers:/var/lib/mysql/autodatatest# file speurderCarrosserie.*
speurderCarrosserie.ISD: data
speurderCarrosserie.ISM: MySQL ISAM index file Version 2
speurderCarrosserie.frm: MySQL table definition file Version 7

From the mysql.err:
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=2097152000
read_buffer_size=2093056
max_used_connections=36
max_connections=300
threads_connected=1
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 3275597 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Number of processes running now: 0
------
There is no backtrace.

How to repeat:
Optimize an old format table

Suggested fix:
workaround: don't use old isam tables.
[23 Feb 2006 9:35] Valeriy Kravchuk
Thank you for a problem report. Please, upload your file(s) for the problematic ISAM table.
[15 Mar 2006 15:38] Ard van Breemen
Uploaded files for feedback
[21 Mar 2006 2:48] MySQL Verification Team
Bug: http://bugs.mysql.com/bug.php?id=18380 was marked as
duplicate of this one.
[21 Mar 2006 16:18] MySQL Verification Team
This is documented behaviour.

The only reason why MyISAM was invented in 3.23 was to solve portability problems and the only major 
difference between the two is that MyISAM stored all data in platform dependent format.

In short, a fix for this bug was creation of MyISAM storage engine.

So, please, use MyISAM instead.