VirtualBox

Ticket #16409 (closed defect: fixed)

Opened 6 months ago

Last modified 5 months ago

Stack overflow in VBoxSvc debug builds on Windows

Reported by: IndyJones Owned by:
Priority: major Component: other
Version: VirtualBox 5.1.14 Keywords: vboxsvc,stack,overflow,debug
Cc: Guest type: all
Host type: Windows

Description (last modified by frank) (diff)

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 r60865 but was reintroduced in r62701.

Change History

comment:1 Changed 6 months ago by frank

  • Description modified (diff)

comment:2 Changed 5 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 5.1.16.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use