-
Notifications
You must be signed in to change notification settings - Fork 348
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
Add support for panics on Windows #1059
Comments
We should re-enable this once rust-lang#1059 is fixed
The alternative (which avoids having to implement read-write locks for Windows) is to patch libstd so that That would also have the added benefit of making panicking work again on Windows XP (rust-lang/rust#34538). |
At the very least, it'd be great to have a better, more appropriate error message than " I was trying to use miri to implement leak check tests in the face of panics, but because of this I had to fall back to the (probably better, because it works for |
If you have any suggestions for how we could get a better error, I'm all ears. The error is emitted by libstd, not by Miri. Once rust-lang/rust#69729 lands, you should be able to use |
@CAD97 but in your repo, doesn't it run Miri on |
Yeah, CI is running on Ubuntu, but I also am running tests locally, which is a lot lower latency 😝 I'm not exactly certain how best to get a better error message for Windows targets. Didn't miri used to say something along the lines of "panicking not supported"? I'd expect that message still on the Windows target, rather than for the panic to start but than starting the panic but then failing to handle it. |
Ah, good idea... see #1241. Testing would be welcome, as I don't have a Windows machine to try this on. :) |
whitelist platforms where panicking should work @CAD97 [proposed](#1059 (comment)) trying to get a better error for failed panics on Windows. Could you test if this works for you?
whitelist platforms where panicking should work @CAD97 [proposed](#1059 (comment)) trying to get a better error for failed panics on Windows. Could you test if this works for you?
whitelist platforms where panicking should work @CAD97 [proposed](#1059 (comment)) trying to get a better error for failed panics on Windows. Could you test if this works for you?
whitelist platforms where panicking should work @CAD97 [proposed](#1059 (comment)) trying to get a better error for failed panics on Windows. Could you test if this works for you?
With #1249, another alternative for Windows users is to pass |
Solving this by implementing the "shared RW lock" Windows methods would likely also solve #1302. |
prepare Dlsym system for dynamic symbols on Windows This makes progress towards #1059.
prepare Dlsym system for dynamic symbols on Windows This makes progress towards #1059.
Implement rwlocks on Windows Fixes #1059
Several tests are currently disabled on Windows, due to Miri's lack of support for a number of Windows API functions:
GetProcAddress
GetModuleHandleW
AcquireSRWLockShared
Implementing
GetProcAddress
andGetModuleHandleW
will require us to extend our current handling ofdlsym
to support Windows. This is currently blocked on #1225rust-lang/rust#66470rust-lang/rust#69326, since we need the ability to read wide strings.The text was updated successfully, but these errors were encountered: