Bug #59437 access violation in ndb_mgmd on 'shutdown' from ndb_mgm
Submitted: 12 Jan 2011 8:11 Modified: 26 Jan 2011 9:50
Reporter: Thomas Nielsen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:7.1.9a OS:Windows
Assigned to: Jonas Oreland CPU Architecture:Any

[12 Jan 2011 8:11] Thomas Nielsen
Description:
Access violation in ndb_mgmd.exe on 'shutdown' from ndb_mgm:

Callstack:
>	ndb_mgmd.exe!NdbMutex_Lock(_RTL_CRITICAL_SECTION * p_mutex=0x00260490)  Line 76	C
 	ndb_mgmd.exe!TransporterFacade::close_clnt(trp_client * clnt=0x0028afbc)  Line 734	C++
 	ndb_mgmd.exe!trp_client::close()  Line 57	C++
 	ndb_mgmd.exe!trp_client::~trp_client()  Line 26	C++
 	ndb_mgmd.exe!MgmtSrvr::~MgmtSrvr()  Line 782 + 0x45 bytes	C++
 	ndb_mgmd.exe!MgmtSrvr::`scalar deleting destructor'()  + 0x8 bytes	C++
 	ndb_mgmd.exe!mgmd_main(int argc=0x00000000, char * * argv=0x003fbb9c)  Line 331	C++
 	ndb_mgmd.exe!ndb_daemon_init(int argc=0x00000006, char * * argv=0x003f1ae0, int (int, char * *)* run=0x0040fdb0, void (void)* stop=0x0040fae0, const char * name=0x0051ada0, const char * display_name=0x00519368)  Line 218 + 0x6 bytes	C++
 	ndb_mgmd.exe!main(int argc=0x00000006, char * * argv=0x003f1ae0)  Line 353 + 0x23 bytes	C++
 	ndb_mgmd.exe!__tmainCRTStartup()  Line 327 + 0x12 bytes	C

How to repeat:
- start a mgmd with --nodeamon=TRUE on win32
- connect with ndb_mgm
(- status to see nodes)
- execute 'shutdown' command in ndb_mgm
[12 Jan 2011 9:03] Jonas Oreland
http://ndbmaster.mysql.com/~club/showpush.pl?dir=bzr_mysql-5.1-telco-7.0&order=1093

pushed to 7.0.21 and 7.1.10
[26 Jan 2011 9:50] Jon Stephens
Documented in the NDB-7.0.21 and 7.1.10 changelogs as follows:

        On Windows platforms, issuing a SHUTDOWN command in the ndb_mgm
        client caused management processes that had been started with
        the --nodaemon option to exit abnormally.

Closed.