aspnetcore: Occasional crash in IIS after compile

Description

After updating to .net7 rc1, I am getting occasional crashes of the IIS process after compile has finished.

KernelBase.dll!RaiseException()
coreclr.dll!RaiseTheExceptionInternalOnly(Object * throwable, int rethrow, int) Line 2805
	at D:\a\_work\1\s\src\coreclr\vm\excep.cpp(2805)
coreclr.dll!IL_Throw(Object * obj) Line 4025
	at D:\a\_work\1\s\src\coreclr\vm\jithelpers.cpp(4025)
00007ff7afc5c1d6()
00007ff7af8cc49d()
00007ff7af8cd0f2()
00007ff7ab613b8c()
00007ff7ab613aa7()
00007ff7ac05ad02()
00007ff7ac05ac79()
00007ff7ac077f6d()
00007ff7ac077df6()
00007ff7ac0777e7()
00007ff7ac077723()
00007ff7ac077619()
00007ff7ac07759b()
00007ff7afb2aaa6()
00007ff7afb2a9a5()
00007ff7af8e137a()
00007ff7afc4f5b4()
coreclr.dll!CallDescrWorkerInternal()
coreclr.dll!DispatchCallSimple(unsigned __int64 * pSrc, unsigned long numStackSlotsToCopy, unsigned __int64 pTargetAddress, unsigned long dwDispatchCallSimpleFlags) Line 221
	at D:\a\_work\1\s\src\coreclr\vm\callhelpers.cpp(221)
coreclr.dll!ThreadNative::KickOffThread_Worker(void * ptr) Line 158
	at D:\a\_work\1\s\src\coreclr\vm\comsynchronizable.cpp(158)
[Inline Frame] coreclr.dll!ManagedThreadBase_DispatchInner(ManagedThreadCallState *) Line 7298
	at D:\a\_work\1\s\src\coreclr\vm\threads.cpp(7298)
coreclr.dll!ManagedThreadBase_DispatchMiddle(ManagedThreadCallState * pCallState) Line 7342
	at D:\a\_work\1\s\src\coreclr\vm\threads.cpp(7342)
coreclr.dll!ManagedThreadBase_DispatchOuter(ManagedThreadCallState * pCallState) Line 7501
	at D:\a\_work\1\s\src\coreclr\vm\threads.cpp(7501)
[Inline Frame] coreclr.dll!ManagedThreadBase_FullTransition(void(*)(void *)) Line 7546
	at D:\a\_work\1\s\src\coreclr\vm\threads.cpp(7546)
[Inline Frame] coreclr.dll!ManagedThreadBase::KickOff(void(*)(void *)) Line 7581
	at D:\a\_work\1\s\src\coreclr\vm\threads.cpp(7581)
coreclr.dll!ThreadNative::KickOffThread(void * pass) Line 230
	at D:\a\_work\1\s\src\coreclr\vm\comsynchronizable.cpp(230)
kernel32.dll!00007ff9420d7034()
ntdll.dll!00007ff9428a26a1()

I have shadow copy enabled, and this is in the build file, so that iis properly reloads after my build.

  <Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="del /q $(ProjectDir)app_offline.htm" />
  </Target>

  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
    <Exec Command="echo &quot;offline&quot; &gt; $(ProjectDir)app_offline.htm" />
  </Target>

Reproduction Steps

Not sure

Expected behavior

No crash

Actual behavior

crash

Regression?

It seems to, did not get anything of the same sort in .net6

Known Workarounds

no

Configuration

.net 7 rc1, windows 10 21H2, iis 10.0.19041.1

Other information

no

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (20 by maintainers)

Most upvoted comments

@davhdavh can you provide a stack with symbols or a full dump? From the partial stack, this looks like a managed exception potentially coming from user code.