﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
16409,Stack overflow in VBoxSvc debug builds on Windows,IndyJones,,"When running a debug build of VBoxSvc on Windows host a crash occurs due to a stack overflow.
The overflow is caused by an endless recursion started by CComCriticalSection. CComCriticalSection creates a critical section that calls Log (in rtThreadAdopt) which again later on locks a critical section and so on and so on. 

The problem is that CExeModule is defined as a global variable in svcmain.cpp and when its constructor is called RTR3InitExe has not been called yet. This was fixed in [https://www.virtualbox.org/changeset/60865/vbox/trunk/src/VBox/Main/src-server/win/svcmain.cpp r60865] but was reintroduced in [https://www.virtualbox.org/changeset/62701/vbox/trunk/src/VBox/Main/src-server/win/svcmain.cpp r62701].",defect,closed,other,VirtualBox 5.1.14,fixed,"vboxsvc,stack,overflow,debug",,all,Windows
