julia
julia copied to clipboard
win: Propagate crashes to OS crash handlers
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.
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.
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
Solved by @staticfloat