[C #] how to analyze clr errors such as stackoverflow

Source: Internet
Author: User

[C #] how to analyze clr errors such as stackoverflow

Sometimes the same code error occurs due to the infinite progressive call. w3wp.exewill return an error because clr.exe has an error.

This error is difficult to analyze because the C # code cannot catch exceptions such as StackOverflowException.

The solution is to generate a dump file, and then use WinDbg to see where an error has occurred.

WinDbg can analyze the clr stack and report what went wrong.

The trick is to first execute. loadby sos. dll clr! Clrstack

For detailed procedure, see: http://www.andreybazhan.com/windbg-access-violation-exception-0xc0000005-when-running-the-clrstack-command.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.