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

win: Propagate crashes to OS crash handlers #46224

Closed
wants to merge 1 commit into from
Closed

Conversation

Keno
Copy link
Member

@Keno Keno commented Jul 31, 2022

Similar in spirit to #46157. We'd like to collect crashdumps
when julia crashes on CI, but currently we just cleanly exit
the pocess in this case. By continuing exception handling into
the global crash handler, the OS's crash reporter gets invoked
and can dump out a minidump for us. In the future, we may want
to add our own crash reported, but this should hopefully help
debug crashes for the moment.

@Keno Keno requested a review from vtjnash July 31, 2022 00:38
@DilumAluthge DilumAluthge requested a review from staticfloat July 31, 2022 02:18
@DilumAluthge DilumAluthge added the system:windows Affects only Windows label Jul 31, 2022
Similar in spirit to #46157. We'd like to collect crashdumps
when julia crashes on CI, but currently we just cleanly exit
the pocess in this case. By continuing exception handling into
the global crash handler, the OS's crash reporter gets invoked
and can dump out a minidump for us. In the future, we may want
to add our own crash reported, but this should hopefully help
debug crashes for the moment.
@Keno
Copy link
Member Author

Keno commented Jul 31, 2022

I don't think this is actually working properly. It does trigger the debugger under wine, but on Windows proper, I don't see any crashdumps show up (though I did check with a simple C++ file that WER is configured properly). I need to investigate more. I suppose it's also possible that mingw and WER don't get along.

@vtjnash
Copy link
Member

vtjnash commented Aug 1, 2022

libuv might turn this off on you, as recommended by microsoft documentation: https://github.com/libuv/libuv/blob/c7088010ad137609af473d570fadb6ac2f6f6225/src/win/core.c#L72-L74

@vtjnash vtjnash closed this Aug 31, 2023
@vtjnash
Copy link
Member

vtjnash commented Aug 31, 2023

Solved by @staticfloat

@vtjnash vtjnash deleted the kf/winecrashreport branch August 31, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:windows Affects only Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants