julia icon indicating copy to clipboard operation
julia copied to clipboard

win: Propagate crashes to OS crash handlers

Open Keno opened this issue 3 years ago • 2 comments

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 avatar Jul 31 '22 00:07 Keno

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.

Keno avatar Jul 31 '22 02:07 Keno

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 avatar Aug 01 '22 20:08 vtjnash

Solved by @staticfloat

vtjnash avatar Aug 31 '23 01:08 vtjnash