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

Fix abort behavior on Windows #1282

Merged
merged 1 commit into from
Apr 6, 2020
Merged

Conversation

joncham
Copy link
Member

@joncham joncham commented Apr 6, 2020

We statically link the C runtime on Windows and abort handlers are part of the C runtime. This means that Unity's abort handler is not connected to the C runtime in Mono, and when an abort happens we get the default behavior instead of proper chaining/handling to our bug reporter.

RaiseException and SEH is process wide. Use RaiseException to force crash instead of abort.

Release Notes:
Improved
Scripting: Invoke Unity crash handler when internal abort in Mono is triggered on Windows.

Backporting:
We should backport to all LTS releases for new version of Unity.

We statically link the C runtime on Windows and abort handlers are part of the C runtime. This means that Unity's abort handler is not connected to the C runtime in Mono, and when an abort happens we get the default behavior instead of proper chaining/handling to our bug reporter.

RaiseException and SEH is process wide. Use RaiseException to force crash instead of abort.
@joncham joncham merged commit fd0d97a into unity-master Apr 6, 2020
@joncham joncham deleted the unity-master-fix-windows-abort branch April 6, 2020 18:48
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.

4 participants