Bug #18881 valgrind: kernel memory leak in vm/Emulator.cpp
Submitted: 7 Apr 2006 9:18 Modified: 20 Apr 2006 6:12
Reporter: Stewart Smith Email Updates:
Status: Closed Impact on me:
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:4.1.19bk, 5.0.21bk, 5.1.9bk OS:
Assigned to: Stewart Smith CPU Architecture:Any

[7 Apr 2006 9:18] Stewart Smith
==1370== 24 bytes in 1 blocks are still reachable in loss record 3 of 17
==1370==    at 0x401B45A: malloc (vg_replace_malloc.c:149)
==1370==    by 0x826E7D2: NdbMutex_Create (NdbMutex.c:30)
==1370==    by 0x824AB1C: EmulatorData::create() (Emulator.cpp:92)
==1370==    by 0x809802B: main (main.cpp:71)

How to repeat:
start ndbd with valgrind

Suggested fix:
destroy the mutex
[7 Apr 2006 9:26] 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:

[7 Apr 2006 10:09] Stewart Smith
jonas approved patch.
[19 Apr 2006 7:45] Stewart Smith
pushed to 5.0.21 and 5.1.10
[20 Apr 2006 6:12] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at

Additional info:

Not applicable to end-user documentation; closed.