-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SR-11678] Assertion `Vars.empty() == VarLocs.empty() && "open ranges are inconsistent"' failed. #54087
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
Comments
Only reproduces when optimization is enabled. |
davidungar (JIRA User), one for you, right? |
I have verified this still reproduces with the 10/28 toolchain. I have narrowed it down using the public toolchain: this builds OK with the 09-30-a toolchain, but crashes with the 10-03-a toolchain. |
Comment by David Ungar (JIRA) @belkadan Could you say more about the connection you see between this bug and my code? Thanks! |
Ooops, I'm sorry, I thought this was the ASTScope source range stuff but instead it's the debug info source range stuff. My bad! cc @dcci, @adrian-prantl |
Can you attach the LLVM IR that reproduces the crash when compiled with llc? |
I think @adrian-prantl very recently cc'ed an upstream commit in LiveDebugValues that fixed a crash. Maybe this is the same? |
@belkadan FYI the "ranges" here are variable location list ranges, i.e, the pc addresses for which a variable value is in a specific location. |
Comment by David Ungar (JIRA) Thanks, @belkadan . I do appreciate it when you ping me on these. |
@swift-ci create |
Confirmed. It's the same bug that the cherry-pick was for. |
For anyone following along, the commit in question was swiftlang/llvm-project#57 |
Environment
Toolchain:
swift-DEVELOPMENT-SNAPSHOT-2019-10-24-a
OS:
macOS 10.15
Ubuntu 18.04 (docker image based on ubuntu1804:latest)
Source Code versions:
sourcekit-lsp: c051601d77512c5ca7394da280c57b0914ff9baa
indexstore-db: 363c7044cca2dd01724fa45bd602c89a129a1b23
llbuild: 0a778ca0c51025ffec95de881e59eb35c92f9944
swiftpm: 1ccff6203cbcd801211a27fd45c59a0b58775a3b
Additional Detail from JIRA
md5: 1f0c943793d23c7a75fd7eb0e78b2680
Issue Description:
Compiling sourcekit-lsp with
--sanitize=address
asserts in the compiler.Source Code versions:
sourcekit-lsp: c051601d77512c5ca7394da280c57b0914ff9baa
indexstore-db: 363c7044cca2dd01724fa45bd602c89a129a1b23
llbuild: 0a778ca0c51025ffec95de881e59eb35c92f9944
swiftpm: 1ccff6203cbcd801211a27fd45c59a0b58775a3b
The text was updated successfully, but these errors were encountered: