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-12967] Crash in diagnostics system (Swift 5.2) #55413
Comments
Could you provide a reproducer? |
Comment by Jonathan (JIRA) Not sure if I can reproduce this problem outside the context of our very complex workspace. If I have time to make that happen then I will, but I might suggest to implement the same fix implemented by `github.com/swiftasm` repo, a swift fork, in this commit: swiftwasm@b4c73ab I wonder if whoever maintains that repo might be able to provide some details on it this particular issue? Seems that commit was by @xedin |
Gilbert (JIRA User) Looks like `swiftasm` picked that up from mainline swift, that fix is already included in master. You can use a snapshot of master compiler from swift.org to verify that it fixes this issue in your project. |
Comment by Jonathan (JIRA) Thanks @xedin, I am now downloading this guy: Once it's finished downloading, I'll try installing that one and see if it seems to fix the issue. Will I also need to install the debug symbols for Xcode and Playgrounds to be happy, or can it work without them? |
Comment by Jonathan (JIRA) BTW trying to build w/the snapshot, ran into this bug: https://forums.swift.org/t/undefined-symbol-isosversionatleast/29782/21 Mike Ash's workaround worked, albeit with some modifications. |
Comment by Jonathan (JIRA) Well @xedin, sadly, I can't use the latest master compiler snapshot because not only did it throw `Undefined symbol: ___isOSVersionAtLeast` but also, it's missing /usr/lib/libLTO.dylib which we need to compile our app's dependencies. Any idea why these things are in the normal toolchain but not the one from swift.org? Also getting build Carthage build errors like "/Users/jonathan.gilbert/code/ios/Carthage/Checkouts/CocoaLumberjack/DerivedData/Lumberjack/Build/Intermediates.noindex/Lumberjack.build/Debug-iphonesimulator/CocoaLumberjack.build/Objects-normal/x86_64/DDOSLogger.dia:1:1: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file" Either the latest master compiler is broken or it's missing some key pieces needed for compiling our dependencies. :/ |
That's very unfortunate, sounds like we'd have to either wait until new compiler is released or reduce this problem down so it could be tested with a snapshot. |
Additional Detail from JIRA
md5: 3c8a6833de10893483babbb2cea0cef5
Issue Description:
Xcode Playgrounds keep failing to compile when I'm importing certain local frameworks (which all work fine otherwise). I traced the issue to a crash with the new Swift diagnostics system.
I see the issue may have been fixed on `github.com/swiftasm` repo, a swift fork, with this commit: swiftwasm@b4c73ab
Not sure if that fixes this bug, but anyway, worth a look.
Along with this crash I often see the following types of errors in ~/Library/CoreSimulator logs:
What's weird about that is, we are linking in Apple's SwiftProtobuf in a dependency of a framework being imported to this Playground. Not sure if it could be related though, since sometimes the Playground compiles and works just fine.
Here is a StackOverflow where I describe all our travails and constant troubles with trying to use Playgrounds in Xcode:
Here's my stacktrace:
The text was updated successfully, but these errors were encountered: