Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Bug: Complete lock-up in ASP.NET Core startup due to StubHelpers? #10340

Closed
rossdempster opened this issue May 17, 2018 · 4 comments
Closed
Assignees
Milestone

Comments

@rossdempster
Copy link

Hi all,

This is potentially a difficult issue to track down. I have been developing with ASP.NET Core for a few months now and (very) rarely the application locks-up completely during start up. I am currently running version 2.1.101 but don't recall which version I was running when I first encountered this issue. The time between manifestations is measured in weeks. I assume this is some kind of unlucky race condition.

I captured this screenshot from the latest occurrence. The lock-up always occurs within WebHostBuilder.Build(). The rest of the stack trace might be variable because this is the first time I've had a proper look at it.

In this instance, the code appears to be stuck in StubHelpers.AddToCleanupList (hence why I am posting this here). Resuming the application has no effect. We remain stuck in the same place. I need to restart the application to get past this point.

image

@janvorli
Copy link
Member

@rossdempster are you sure that in the case you've posted here the stack trace wasn't changing when you resumed the execution and then interrupted it again?

@rossdempster
Copy link
Author

rossdempster commented May 17, 2018

That is what I observed yes.

I've spent the last 30 minutes trying to reproduce this by continually restarting my app under the debugger and I've just found something interesting.

If I hit CTRL+C before startup is complete (but after the window appears) I get exactly the same effect. The application appears to be running but pausing it and observing the stack shows it to be stuck at some arbitrary location. It's different each time I try it.

It's actually possible to get the program stuck here:

image

No matter how often I resume and break the application, that's as far as it's got!

I think I may have been trying to copy/paste something at the exact moment the window has appeared and inadvertently triggered this issue. I've just never noticed the cause and effect.

I'm not sure whether it's worth taking this any further? The observed behaviour of the code having stopped executing but the stack trace being preserved does seem to point toward an issue somewhere in the runtime, but it only seems to affect the debugger because I've not managed to reproduce it with dotnet run. The impact seems minimal.

What do you think?

@tommcdon
Copy link
Member

@cshung can this issue be resolved?

@tommcdon
Copy link
Member

@cshung investigated and was not able to repro. Please provide a dump of the process when it is hung and we can investigate further. Closing the issue due to lack of actionable information for now.

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the 3.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants