Bug #38424 Ndb_mgmd resource leak in 'sendStopMgmd' if connection to mgmd fails
Submitted: 29 Jul 2008 9:31 Modified: 5 Oct 2008 16:27
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:5.1-telco-6.2 OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any

[29 Jul 2008 9:31] Magnus Blåudd
Description:
In function 'sendStopMgmd' the create mgm handle will not be freed if an error is found in the function. For example if connect to mgmd fails, call of 'ndb_mgm_stop' fails of if 'ndb_mgm_restart2' fails.

How to repeat:
valgrind, MCI

Suggested fix:
Add calls to 'ndb_mgm_destroy_handle'
[29 Jul 2008 9: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/50630

2636 Magnus Svensson	2008-07-29
      Bug#38424 Ndb_mgmd resource leak in 'sendStopMgmd' if connection to mgmd fails
[29 Jul 2008 23:21] Stewart Smith
looks good. approved.
[1 Aug 2008 13:44] Magnus Blåudd
Pushed to 6.2, 6.3 and 6.4
[4 Aug 2008 10:56] 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/50865
[11 Sep 2008 18:28] Jon Stephens
Documented in the NDB 6.2.16 and 6.3.17 changelogs as follows:

        A failed connection to the management server could cause a resource leak
        in ndb_mgmd.
[5 Oct 2008 16:27] Jon Stephens
Already documented; closed.
[12 Dec 2008 23:27] Bugs System
Pushed into 6.0.6-alpha  (revid:msvensson@mysql.com-20080729093957-zzzgty0wdijl7dvp) (version source revid:jonas@mysql.com-20080812185642-1nevjb94zj621dqx) (pib:5)