Skip to content

Fix issues with .NET using signals as runtime instruments - #301

Merged
borrrden merged 2 commits into
masterfrom
fix/dotnet_stack_trace
Jun 2, 2026
Merged

Fix issues with .NET using signals as runtime instruments#301
borrrden merged 2 commits into
masterfrom
fix/dotnet_stack_trace

Conversation

@borrrden

@borrrden borrrden commented Jun 2, 2026

Copy link
Copy Markdown
Member

E.g. SIGXCPU is used to trigger garbage collection, and would spam stderr if left in place (not to mention terminate when it shouldn't). SIGSEGV is used for checking null pointer exceptions, etc.

The solution is to NOT call exit and instead be a good citizen in the bizarro world that is unix signal handling and just call the previous handler and defer to their authority.

E.g. SIGXCPU is used to trigger garbage collection, and would spam stderr if left in place (not to mention terminate when it shouldn't).  SIGSEGV is used for checking null pointer exceptions, etc.
@borrrden
borrrden requested a review from pasin June 2, 2026 06:40
They both support finding the file, and for our image it will be present
@borrrden
borrrden merged commit ace0a65 into master Jun 2, 2026
5 checks passed
@borrrden
borrrden deleted the fix/dotnet_stack_trace branch June 2, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants