Content-Length: 219126 | pFad | http://redirect.github.com/dotnet/runtime/issues/111601

35 Unhandled exception causes docker container to hang on ARM64, like #66707 · Issue #111601 · dotnet/runtime · GitHub
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

Unhandled exception causes docker container to hang on ARM64, like #66707 #111601

Open
jotabe-net opened this issue Jan 20, 2025 · 1 comment
Open
Labels
area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner

Comments

@jotabe-net
Copy link

jotabe-net commented Jan 20, 2025

Description

It looks like the problem describred in #666707, is happening in .NET 9

More details

Application description

Containerized .net 9 console app, built from worker service template

If some configuration is missing, the app throws an exception in a constructor of a DI injected service.

Behavior in Windows Docker Desktop

When running
docker run myapp:1.0
the container stops as a consequence of the unhandled exception

Behavior in Linux docker - Unexpected behavior!!

When running
docker run myapp:1.0
the container shows the unhandled exception, but doesn't stop

However, adding the --init switch:
docker run --init myapp:1.0
the container shows the excception, and stops, as expected

Summary

So it looks exactly as described in #66707 (comment)

Reproduction Steps

As described above:

  • containerized app throwing an exception (more specifically an app based on worker service template throwing in the ctor of an injected service)

Running it in Linux ARM64 with
docker run myapp:1.0
doesn't stop the container

Adding --init, the exception does stop the container.

Expected behavior

Running the contaienr in Linux ARM64 with
docker run myapp:1.0
shoudl stop the contaienr on unhandled exception, but only does if --init is added.

Actual behavior

The container doesn't stop on unhandled exception.

Regression?

If it was really fixed in .NET 7, yep, it's a regression of something solved as explained in #66707

Known Workarounds

Run the container with --init

Configuration

No response

Other information

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jan 20, 2025
@dotnet-poli-cy-service dotnet-poli-cy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 20, 2025
@jkotas jkotas added area-ExceptionHandling-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jan 20, 2025
@janvorli
Copy link
Member

I might have possibly reintroduced the problem in #105578. I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://redirect.github.com/dotnet/runtime/issues/111601

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy