question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Occasional crash in IIS after compile

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:21 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
jeffschwMSFTcommented, Sep 27, 2022

@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.

0reactions
davhdavhcommented, Oct 19, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

IIS express crashes after successfully debugged and build
Uninstall IIS 1.1. Go to control panel-> Programs and features -> Turn Windows Features On or Off. 1.2 De-select Internet Information Services ...
Read more >
Strange asp.net website crash with IIS 8.5 and Windows ...
The code is ok; The build was generated as usual, and all is fine without any changes since the incident. CPU and memory...
Read more >
IIS application pool timeout causes crash in Vista
I'm developing a Web site on my Windows Vista Ultimate (64-bit) workstation using IIS 7.0 locally for testing. At random times, I receive...
Read more >
IIS worker process crashing without stack trace - what else ...
The servers crash frequently without showing any managed stacktrace. The IIS7 worker process just dies. I cannot pin it down to one specific ......
Read more >
[ODBC-349] speed issues and IIS crashing - MariaDB's JIRA
Now on MariaDB 10.6 I have tried myodbc8w.dll MySQL ODBC 8.00.27.00 Unicode Driver which is fast but it crashes IIS after 1 or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found