Bug #52880 Node crash when index dropped during read with debug compile
Submitted: 16 Apr 2010 8:06 Modified: 11 May 2021 20:41
Reporter: Magnus Blåudd Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S1 (Critical)
Version:mysql-5.1-telco-7.0 OS:Any
Assigned to: Assigned Account CPU Architecture:Any
Tags: 7.0.13

[16 Apr 2010 8:06] Magnus Blåudd
Description:
The testcase for bug#50118 causes node crash when run with debug compiled  binaries(#define ARRAY_GUARD). It appears like reads are allowed to continue on the index table when it's being dropped and in Dbtc::readIndexTable a speculative "c_theIndexes.getPtr(<index table id>)" is performed causing  the ARRAY_GUARD to be activated.

Reproduced on both Windows and Linux.

How to repeat:
$> ./mtr ndb_basic --start
$> test/ndbapi/testIndex -n Bug50118 T1

Suggested fix:
Pass flag to 'getPtr' indicating that the element might not be seized.