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.