Repeatable Lock/Unlock Tables crash with NDBCLUSTERam 14.08.2007 15:49:01 von Kal
I am assuming this bug pertains to MySQL cluster.
I am experiencing a repeatable crash with NDBCLUSTER tables.
Create NDBCLUSTER table...
CREATE TABLE t_test_crash (
test_id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
test_name VARCHAR(256) NOT NULL,
test_id_2 BIGINT NOT NULL,
updated_tm TIMESTAMP NOT NULL,
created_tm TIMESTAMP NOT NULL,
UNIQUE INDEX idx_test ( test_name, test_id_2 ),
INDEX idx_test_2 ( test_id_2 ),
INDEX idx_updated_tm ( updated_tm ),
INDEX idx_created_tm ( created_tm )
AUTO_INCREMENT = 1
ENGINE = NDBCLUSTER
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_bin;
Issue queries as such...
> LOCK TABLES t_test_crash WRITE;
> DELETE FROM t_test_crash WHERE test_id_2 = 1;
> INSERT INTO t_test_crash ( test_name, test_id_2, updated_tm,
created_tm ) VALUES ( "test", 1, now(), now() );
> UNLOCK TABLES;
070814 9:33:03 - 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
the problem, but since we have already crashed, something is definitely
and this may fail.
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections
= 458624 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
Cannot determine thread, fp=0x94f2cc0c, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://dev.mysql.com/doc/mysql/en/using-stack-trace.html and
follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x8c08b20 = UNLOCK TABLES
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file
Number of processes running now: 0
070814 09:33:03 mysqld restarted
070814 9:33:07 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.45-community-log' socket: '/var/lib/mysql/mysql.sock'
port: 3306 MySQL Community Edition (GPL)
I am able to avoid the crash by calling 'UNLOCK TABLES' after the
DELETE, and then 'LOCK TABLES' again before the INSERT.
Has this been a known issue?
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://firstname.lastname@example.org