You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Dec 16, 2018
· 6 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
We have started seeing a strange problem, appearing somewhat out of nowhere, where the compiler segfaults in handleDeferredImports. This doesn't always happen, sometimes I need to clean & rebuild 2-3 times to trigger it again, so it's very hard to determine what's the root cause of it.
I've also not been able to reproduce it in a separate sample project, but after two days of looking for solutions I'm drawing a blank.
This is the segfault: error: "Segmentation fault: 11 with following stack:"
We do use a mix of Objective-C and Swift, importing ProjectModuleName-Swift.h in a lot of files, and similar, have a very large ProjectModuleName-Bridging-Header.h file. In addition to this, for legacy reasons, there's a ProjectModuleName-Prefix.pch for default Objective-C includes (yes, I know that's awful).
Unfortunately our project is proprietary, and in general too large to be shared. But I'll be happy to test out any idea on how to try and isolate the error in a test project.
The text was updated successfully, but these errors were encountered:
Can you test to see if turning off "Precompile Swift Bridging Header" also works as a workaround?
If you've got the time, can you also try with a downloadable 5.0 toolchain from https://swift.org/download/, which might provide more information about the failure?
We're not seeing the issue with the Swift 5 toolchain (so far). But we're probably going to keep the wholemodule optimisation, as the compile time increases drastically (a factor two) when changing it to incremental.
Possibly related to rdar://problem/45584070 (which at this point in time also needs more investigation).
The compile time issue is something we'd like to investigate too, but if you can't share your project (here or just with Apple at https://bugreport.apple.com) it'd probably be difficult to find out what the problem is.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
Xcode 10, Swift 4.2
Additional Detail from JIRA
md5: a858c61247793ea4845c6517ba44fdf9
Issue Description:
We have started seeing a strange problem, appearing somewhat out of nowhere, where the compiler segfaults in handleDeferredImports. This doesn't always happen, sometimes I need to clean & rebuild 2-3 times to trigger it again, so it's very hard to determine what's the root cause of it.
I've also not been able to reproduce it in a separate sample project, but after two days of looking for solutions I'm drawing a blank.
This is the segfault: error: "Segmentation fault: 11 with following stack:"
We do use a mix of Objective-C and Swift, importing ProjectModuleName-Swift.h in a lot of files, and similar, have a very large ProjectModuleName-Bridging-Header.h file. In addition to this, for legacy reasons, there's a ProjectModuleName-Prefix.pch for default Objective-C includes (yes, I know that's awful).
Unfortunately our project is proprietary, and in general too large to be shared. But I'll be happy to test out any idea on how to try and isolate the error in a test project.
The text was updated successfully, but these errors were encountered: