Bug #37986 NDBAPI : ScanFilter defined before readTuples() call results in SEGV
Submitted: 9 Jul 2008 10:55 Modified: 15 Oct 2008 15:24
Reporter: Frazer Clement Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: NDB API Severity:S3 (Non-critical)
Version:mysql-5.1-telco-6.2+ OS:Any
Assigned to: Frazer Clement CPU Architecture:Any

[9 Jul 2008 10:55] Frazer Clement
Description:
Creating an NdbScanFilter object using an NdbScanOperation object that has not had its readTuples() method called results in a SEGV when later attempting to use the ScanFilter.

How to repeat:
As above

Suggested fix:
Move indication of 'old Api scan' from readTuples() back to getNdbScan/IndexScanOperation() call.
Improve handling of failure to allocate code object.
[6 Aug 2008 15:33] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/51020
[6 Aug 2008 15:40] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/51021
[6 Aug 2008 15:47] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/51022
[11 Aug 2008 22:56] Jon Stephens
Need complete version numbers in which fix will appear in order to document. Thanks.
[15 Oct 2008 11:43] Frazer Clement
Pushed to 6.2.16, 6.3.17, 6.4.0
[15 Oct 2008 15:24] Jon Stephens
Documented bugfix in the ndb-6.2.16 and ndb-6.3.17 changelogs as follows:

        Creating an NdbScanFilter object using an NdbScanOperation object that
        had not had its readTuples() method called resulted in a crash when
        later attempting to use the NdbScanFilter.
[12 Dec 2008 23:26] Bugs System
Pushed into 6.0.6-alpha  (revid:frazer@mysql.com-20080806153319-s99f6tsomlb31mo1) (version source revid:jonas@mysql.com-20080812185642-1nevjb94zj621dqx) (pib:5)