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-7932] Cannot load Swift type information; AST validation error: The serialized module is corrupted. / Swift expressions require OS X 10.10 / iOS 8 SDKs or later #4495
Comments
cc jingham@apple.com (JIRA User) |
Comment by Ryan Lovelett (JIRA) This is a blocker for my work porting my Swift language server to Linux. I've already hit a few other snags trying to get a working debugger on Linux. I'm ready and willing to roll up my proverbial sleeves to help solve this. It just might take a mentor (or two) to help me; like on my last LLDB adventure. |
Comment by Jim Ingham (JIRA) That error message is pretty bogus. The error is because we couldn't make a ClangImporter to reconstruct the types of any bridged objects in your swift module. You can get some better debugging for this in a couple of ways. Turn on the types log by putting this in your .lldbinit: log enable f /tmp/lldbtypes-log.txt lldb types then generating the error and see if there are any interesting errors in that log. You can also get some diagnostics from clang & swift by setting the environment variable LLDB_SWIFT_DUMP_DIAGS before you run lldb. Clang needs to find the same system headers that it found when building your program, so that it can reconstruct any clang modules that were being used to import types into swift. The error message is just a guess of what might have happened to cause this on macOS. The output from the types log and the environment variable should give more helpful info. |
Comment by Ryan Lovelett (JIRA) Okay that definitely gives a little bit more information. Now in lldb I consistently get messages like this The Looking in |
Comment by Tabor Kelly (JIRA) I ran into this problem on my own and posted a full write-up here: It would appear that the symbols are there (look for |
Comment by Renan Jegouzo (JIRA) Should be in high priority, can't debug on linux until it's fixed.. So all linux swift works on hang.. |
CC @dcci this still reproduces on 5.1.2. Here's a one-liner to compile & install everything from a Mac:
broken into multiple lines
that will install the dependencies and compile the tests and should leave you in the lldb console. In there, do
then, depending on which breakpoint you hit, do
or
here's a full trace:
Here's a full traceback: https://gist.github.com/weissi/37c3faa688b5d8ffae60c59e234fd4c2 attached also find the lldbtypes-log.txt that jingham@apple.com (JIRA User) requested. Please also note the error message
|
@swift-ci create |
Attachment: Download
Environment
Ubuntu 18.04 bionic
lldb version 6.0.0 (revision 5f25df7854828f00daba8dd88c5886a4599f90c4)
Swift-4.2 (revision f2c0f1d9d6aa01a09093ed95d679bf3b3b6188da)
clang (revision 5272858825c89a190a98e96d457466c8db5df92d)
llvm (revision a38ff55b315aa8d181b162278dae5042a1e7e803)
Additional Detail from JIRA
md5: 95cb740bfc0f8091c81fb39249c85f43
is duplicated by:
Issue Description:
When trying to use lldb to debug I cannot seem to get variable information or really any frame information.
I have tracked that last error, the
Swift expressions require OS X 10.10 / iOS 8 SDKs or later.
to line 1101 in SwiftExpressionParser.cpp.The text was updated successfully, but these errors were encountered: