Bug #51857 Mismatched safemalloc/free in ha_ndbcluster* on Windows
Submitted: 9 Mar 2010 9:29 Modified: 16 Mar 2010 11:27
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any

[9 Mar 2010 9:29] Magnus Blåudd
Description:
Since ha_ndbcluster.cc is statically compiled into MySQL Server and calls internal functions of the server if need to be compiled with the same SAFEMALLOC and SAFE_MUTEX flags as the server itself.

How to repeat:
MCI

Suggested fix:
Add -DSAFEMALLOC and -DSAFE_MUTEX to CMAKE_CFLAGS_DEBUG and CMAKE_CXXFLAGS_DEBUG in storage/ndb/CMakeLists.txt
[9 Mar 2010 9:30] Magnus Blåudd
It's good to see that these defines have been made global in next-mr so that all modules get important settings like  these applied.
[9 Mar 2010 9:37] 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/102662
[9 Mar 2010 10:10] Bugs System
Pushed into 5.1.41-ndb-7.0.14 (revid:magnus.blaudd@sun.com-20100309093457-xtymykzdo4tnifbx) (version source revid:magnus.blaudd@sun.com-20100309093457-xtymykzdo4tnifbx) (merge vers: 5.1.41-ndb-7.0.14) (pib:16)
[16 Mar 2010 7:58] Magnus Blåudd
Pushed to 7.0.14 and 7.1.3-beta
[16 Mar 2010 11:27] Jon Stephens
Documented bugfix in the NDB-7.0.14 and 7.1.3 changelogs as follows:

      ha_ndbcluster.cc was not compiled with the same SAFEMALLOC and SAFE_MUTEX
      flags as the MySQL Server.

Closed.