VC 2012.2 unhandled exception (ntdll.dll): The operation completed successfully in mainCRTStartup RRS feed

  • Question

  • I've been experiencing this for the past day.  It's a little odd.

    The application is crashing in mainCRTStartup with the instruction pointer at __security_init_cookie();

    Call stack:

    ntdll.dll!_NtRaiseException@12() Unknown
    ntdll.dll!_KiUserExceptionDispatcher@8() Unknown
    > <app>!WinMainCRTStartup() Line 374 C
    kernel32.dll!@BaseThreadInitThunk@12() Unknown
    ntdll.dll!___RtlUserThreadStart@8() Unknown
    ntdll.dll!__RtlUserThreadStart@8() Unknown

    I'm running on Windows 7 x64, this is a 32 bit app.  It is compiled with /GS.  The most interesting component of this is I'm attaching the debugger using the process described in: http://msdn.microsoft.com/en-us/library/a329t4ed(v=vs.71).aspx and using the vsjitdebugger.exe as the debugger.  If I select the VS2012 instance with my solution loaded it crashes.  If I select a VS2005 debugger, it runs fine.  If I start a new instance of VS2012 it crashes (so no solution).  If I select a VS2010 debugger, it runs fine.  All of them are configured to use the same symbol store the same way.

    I have done this same experiment with a completely different app (also built in VS2012.2 VC++) with the same results.

    Just to be thorough,  I also reproduced it with a console C++ app with:

    // HelloWorld.cpp : Defines the entry point for the console application.
    #include "stdafx.h"
    #include <stdio.h>
    int _tmain(int argc, _TCHAR* argv[])
        printf("Hello World!\n");
        return 0;

    And I can get it to reproduce with HelloWorld.exe above on another machine.  If I disable the debugger setting in the registry, HelloWorld.exe runs fine.

    • Edited by Brent Scriver Sunday, June 2, 2013 6:22 AM
    • Moved by Elegentin Xie Monday, June 3, 2013 5:51 AM from Visual C++, to a more appropriate forum
    Sunday, June 2, 2013 5:45 AM


All replies