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-11391] REPL crashes on Arch Linux while demangling symbol #53792
Comments
@jckarter, any theories? |
Does the crash only happen in the integrated REPL? Can you also reproduce it in "script mode" if you try putting the code in a file and run it with `swift foo.swift`? We've had integrated-REPL and JIT mode specific problems with relative references in the past. |
Comment by Gábor Sebestyén (JIRA) As far as I remember running script went fine but let me check it again. |
Comment by Gábor Sebestyén (JIRA) I can confirm script mode runs fine.
|
Comment by Gábor Sebestyén (JIRA) In this case I wanted to know the result of 2*2. I got core dump:
But this expression was evaluated from file
|
As noted, you're not running the real REPL, which is supported by LLDB. The integrated REPL is just meant for testing the compiler and isn't an officially-supported part of the product. (That doesn't mean we wouldn't take patches to improve things, but it does mean a fix probably won't be prioritized.) |
@swift-ci create |
Comment by Gábor Sebestyén (JIRA) Somehow I missed the “integrated” word sorry. I gonna check it with the real REPL. |
Comment by Gábor Sebestyén (JIRA) I found a serious flaw in the build script that possibly caused this issue. After fixing it the build completed successfully and initial tests in Swift REPL are also good. |
Environment
OS: Linux
System Version: Linux csihuhu 5.2.9-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 16 11:29:43 UTC 2019 x86_64 GNU/Linux
Snapshot: swift-5.1-DEVELOPMENT-SNAPSHOT-2019-08-28-a
Additional Detail from JIRA
md5: 8568b029247b96cae9e017d96be45ead
Issue Description:
Apart from the fact the whole snapshot does not build (aborts at swiftpm projects), swift interpreter crashes.
I started binary under
build/buildbot_linux/swift-linux-x86_64/bin/swift
in REPL mode and entered just one linelet a="hello"
it instantly crashed with the following stack traceThe text was updated successfully, but these errors were encountered: