[swift-users] Segmentation fault: 11 after updating codebase to Swift 3.0

Rien Rien at Balancingrock.nl
Fri Oct 21 12:07:06 CDT 2016


I had a similar problem with Xcode 7.2.
The work around I found then was to remove all source files from the project in the “target membership” except for the main.swift file.
Then compile again, which will (of course) fail with normal errors.
Then I added the files back in, presto, no more segmentation fault.

Maybe worth a try?

Regards,
Rien.

> On 21 Oct 2016, at 18:26, Evan Maloney via swift-users <swift-users at swift.org> wrote:
> 
> After a gargantuan effort updating our entire codebase to Swift 3.0, we are now being greeted with "Segmentation fault: 11" compiler crash whenever attempting to build.
> 
> The issue seems to be related to generics, and sounds similar to this issue:
> 
> 	http://stackoverflow.com/questions/39426535/segmentation-fault-11-xcode-8-swift-3-after-using-notificationcenter/39426812
> 
> I've filed a bug report that includes our project codebase, which triggers the issue 100% of the time:
> 
> 	rdar://problem/28890409
> 
> The usual work-around of turning off Whole Module Optimization (which has gotten around a lot of compiler crashes in the past) does not work here.
> 
> Unfortunately, this code is in such a tangle of generics that undoing it is not going to be simple. Until a new version of Xcode ships, we're pretty much blocked from using Swift 3.0 unless another work-around is possible.
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users



More information about the swift-users mailing list