Bug #19883 ndbd seg fault with gcc 4.0.2
Submitted: 17 May 2006 13:58 Modified: 16 Aug 2006 8:49
Reporter: Nikolay Grishakin Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Cluster: Disk Data Severity:S1 (Critical)
Version:5.1 OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[17 May 2006 13:58] Nikolay Grishakin
Description:
DROP LOGFILE GROUP  fails on 64 bit systems. Run the following test case:

 CREATE LOGFILE GROUP log_group1
 ADD UNDOFILE 'undofile.dat'
 INITIAL_SIZE 16M
 UNDO_BUFFER_SIZE = 1M
 ENGINE=NDB;

 CREATE TABLESPACE table_space1
 ADD DATAFILE 'datafile.dat'
 USE LOGFILE GROUP log_group1
 INITIAL_SIZE 12M
 ENGINE NDB;

 ALTER TABLESPACE table_space1
 DROP DATAFILE 'datafile.dat'
 ENGINE = NDB;
 DROP TABLESPACE table_space1 ENGINE=NDB; DROP LOGFILE GROUP 
 log_group1 ENGINE=NDB; ERROR HY000: Failed to drop LOGFILE GROUP 
 SHOW WARNINGS;
-> + Level Code    Message
-> + Error 1297    Got temporary error 701 'System busy with other schema
-> operation' from NDB
-> + Error 1516    Failed to drop LOGFILE GROUP
-> -------------------------------------------------------
-> 
-> Again, it happens on 64 bit systems only.

How to repeat:
You need to run as mysql-test. Running these staments at mysql command line do not prosuce error. NDB15 test machine can be used for testing:
$ ssh -l ndbdev ndbmaster.mysql.com
$ ssh ndb15
$ cd /home/ndbdev/ngrishakin/mysql-5.1-new/mysql-test
[ndbdev@ndb15 mysql-test]$ perl mysql-test-run.pl --do-test=ndb_dd_lg
[8 Jun 2006 13:59] Tomas Ulin
we strongly believe that this is tied to this compiler and optimization leve, we have seen it (and done workarounds) before.

please try another (more stable) compiler, or lower the optimzation < -03
[16 Aug 2006 8:49] Stewart Smith
looks the same as BUG#20672.

probably buggy compiler