Bug #37986 NDBAPI : ScanFilter defined before readTuples() call results in SEGV
Submitted: 9 Jul 2008 12:55 Modified: 15 Oct 2008 17:24
Reporter: Frazer Clement
Status: Closed
Category:Server: NDBAPI Severity:S3 (Non-critical)
Version:mysql-5.1-telco-6.2+ OS:Any
Assigned to: Frazer Clement Target Version:
Triage: D4 (Minor)

[9 Jul 2008 12: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 17: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 17: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 17: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
[12 Aug 2008 0:56] Jon Stephens
Need complete version numbers in which fix will appear in order to document. Thanks.
[15 Oct 2008 13:43] Frazer Clement
Pushed to 6.2.16, 6.3.17, 6.4.0
[15 Oct 2008 17: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.
[13 Dec 2008 0: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)