locked
Stack overflow reporting RRS feed

  • Question

  • Consider a simple program that generates a stack overflow:
     
    #include 
    <stdio.h>
    #include
    <malloc.h>
    #include
    <Windows.h>

    void RecurseWithSmallStackFrame
    ();

    void (*doRecurse)() = RecurseWithSmallStackFrame;
    // for indirect call.

    void RecurseWithSmallStackFrame
    ()
    {
     
    // Indirect call to prevent inlining.
      doRecurse
    ();
      // Double call to prevent tail recursion being optimised out.
      doRecurse
    ();
    }

    int
    main()
    {
      printf("before\n"
    );
      RecurseWithSmallStackFrame
    ();
     
    printf("after\n"
    );
     
    return
    0;
    }

    On Windows XP, the program silently quits without any error reporting !
    On Windows Vista, the WER UI is shown, but I'm not sure if error reports can be actually sent.

    Please explain.

    • Moved by Max Wang_1983 Tuesday, April 26, 2011 4:48 PM forum consolidation (From:Windows Error Reporting for ISVs)
    Friday, March 27, 2009 9:57 AM

Answers

  • Yes, this is a result of the improved WER architecture in Vista. The report can be sent.
    Kinshuman
    • Marked as answer by Pavel S Tuesday, March 31, 2009 4:22 AM
    Monday, March 30, 2009 5:09 PM