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
[SR-10590] Compiler crash with key paths and generics #52990
Comments
This doesn't crash for me on Swift 5.1 (near master). |
Swift 5.1 isn't "near-master", it's a separate branch. (I'm not sure "near-master" is a real phrase. I use it when I try something with master but haven't actually pulled from master in a while.) |
Oops. Thanks for clarifying - that’s what I wanted to say (haven’t actually tried with 5.1 snapshot or a compiler built from 5.1 branch, but have tried with a build from master which I recently checked out). |
Anyway, this is a run-time crash, not a compiler crash. It sounds a lot like SR-10117, but that's not supposed to have been fixed yet. |
Not to my knowledge. That particular crash seems to be sensitive to JIT vs AOT mode, which might be partially at play here. It looks like Nate was executing this from script or integrated REPL mode based on the backtrace. |
Ack, sorry to mix up the compiler and run-time crash. This was run using `swift filename` from the command line — when I compile first and then run, it executes cleanly. |
This looks like an LLVM JIT bug; for some reason, the indirect reference to the resilient key path descriptor is getting misaligned. This seems to work around it: #24944 I've sent a bug Lang's way in the meantime. |
@jckarter is there a LLVM PR this issue? |
@compnerd I sent it to Lang via Radar, sorry. The workaround is merged now, so this should be fixed in future snapshots. |
The fix should be in the new Swift 5.1 snapshots now. |
Lang fixed the underlying JIT bug in LLVM r362139. |
Attachment: Download
Additional Detail from JIRA
md5: ea7bb338efd5374a19235a786422ebb6
relates to:
Issue Description:
Trying to compile this code crashes the compiler:
Crash output in the attached crash.txt. This is in swiftlang-1100.8.25.5 clang-1100.0.15.2.
The text was updated successfully, but these errors were encountered: