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

MSVC: Segfaults with opt-level=3 plus unwinding #33352

Closed
alexcrichton opened this issue May 2, 2016 · 2 comments
Closed

MSVC: Segfaults with opt-level=3 plus unwinding #33352

alexcrichton opened this issue May 2, 2016 · 2 comments
Labels
C-bug Category: This is a bug. O-windows-msvc Toolchain: MSVC, Operating system: Windows

Comments

@alexcrichton
Copy link
Member

I've encountered two mysterious segfaults with opt-level=3 so far when porting our build system to rustbuild. Cargo tries to optimize aggressively by passing -C opt-level=3 in optimized mode, but that had to get dialed back to -C opt-level=2 in two cases.

One is in compiletest, added in #32755, and I believe these failing logs (cached here) are the segfault.

The next is in stdtest, being modified in #33282, erroring here, and cached here. The faulting test in std was sync::once::tests::poison_bad.

Both faults look very related to unwinding, and are likely due to the early support of SEH in LLVM. This may or may not be fixed upstream (not tested), and if it's not we should probably reduce and send a test case upstream. Unfortunately simple minimizations have not succeeded just yet.

@alexcrichton alexcrichton added the O-windows-msvc Toolchain: MSVC, Operating system: Windows label May 2, 2016
@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 25, 2017
@steveklabnik
Copy link
Member

@alexcrichton have you seen any segfaults lately? So much has happened since 2016 I am betting we should close this?

@alexcrichton
Copy link
Member Author

Heh I have not, nor do I doubt this issue will help us actually find any, so I'll close!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. O-windows-msvc Toolchain: MSVC, Operating system: Windows
Projects
None yet
Development

No branches or pull requests

3 participants