on-internet
← Community

How to find the root cause of heap corruption in .NET 4.8 application?

Stack Overflow ·

I have a .NET 4.8 WCF server application running as a Windows service. It is crashing randomly several times with AccessViolationException (0xC0000005). Every time the managed stack differs. But at the top of each stack, I see the following lines: clr!WKS::gc_heap::soh_try_fit+0xa1 0x30fc0fe470 0x7ff8289fce1c clr!WKS::gc_heap::allocate_small+0x200 0x30fc0fe500 0x7ff828a64502 clr!WKS::gc_heap::try_allocate_more_space+0x1fa 0x30fc0fe590 0x7ff828a583e7 clr!WKS::GCHeap::Alloc+0x51 0x30fc0fe5f0 0x7ff82886c373 and this clr!WKS::gc_heap::soh_try_fit+0xa1 0xcab38fe320 0x7ff8289fce1c clr!WKS::gc_heap::

Comments

Sign in or sign up to comment and upvote.

No comments yet.