locked
Stack overflow exception (0xC00000FD) Exception RRS feed

  • Question

  • User-1678860823 posted

    Hi,

    My Asp.Net web site running on .Net Framework 4, windows server 2008 R2 is crashing very often. Upon using the debugDiag I found the below exception details:

    Exception Information
    CLR!METHODDESC::FINDORCREATEASSOCIATEDMETHODDESC+34In w3wp__MyAppPool__PID__3920__Date__06_05_2012__Time_05_35_26PM__142__Second_Chance_Exception_C00000FD.dmp the assembly instruction at clr!MethodDesc::FindOrCreateAssociatedMethodDesc+34 in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll from Microsoft Corporation has caused a stack overflow exception (0xC00000FD) when trying to write to memory location 0x1b095fb0 on thread 16

    Does any one faced this problem and if so, is there a fix for this?

    Thanks in advance,

    Rakesh

    Wednesday, June 6, 2012 7:55 AM

Answers

  • User-1461088198 posted

    Hi rockyl07,

    The error code 0xC00000FD means STATUS_STACK_OVERFLOW. There are many reasons for the exception. Basically it is due to the damaged state of the stack of the thread. And this article shows where you can catch a  StackOverflowException.

    Regards,

    Sage Gu - MSFT

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 13, 2012 7:46 AM
  • User-1011137159 posted

    this error generally comes when your array size is full and still you are ading value on it. So please debug your code then only you will get problem and solution as well.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 13, 2012 7:51 AM

All replies

  • User-661350001 posted

    have you implemented any logging and is it crashing on browsing particular page or after x number of hits anything as such ?

    Wednesday, June 6, 2012 8:11 AM
  • User-1678860823 posted

    Hi,

    Yes the logging mechanism is in place and but no exception is caught by it. I found this exception in event logs but with little information than debug diag. This occurs randomly and I didn't identified any pattern. Thanks for your time

    Wednesday, June 6, 2012 9:28 AM
  • User-1461088198 posted

    Hi rockyl07,

    The error code 0xC00000FD means STATUS_STACK_OVERFLOW. There are many reasons for the exception. Basically it is due to the damaged state of the stack of the thread. And this article shows where you can catch a  StackOverflowException.

    Regards,

    Sage Gu - MSFT

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 13, 2012 7:46 AM
  • User-1011137159 posted

    this error generally comes when your array size is full and still you are ading value on it. So please debug your code then only you will get problem and solution as well.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 13, 2012 7:51 AM
  • User-1678860823 posted

    Thanks Sage gu and Amit,

    But when an application is huge it is difficult to debug and identify such recursive function calls. Do we have any tool or a better way to nail down this problem?

     

    Monday, June 18, 2012 9:53 AM