Skip to content
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-4646] Swift Compiler error: Segmentation fault: 11 #47223

Open
swift-ci opened this issue Apr 20, 2017 · 7 comments
Open

[SR-4646] Swift Compiler error: Segmentation fault: 11 #47223

swift-ci opened this issue Apr 20, 2017 · 7 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software optimized only Flag: An issue whose reproduction requires optimized compilation

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-4646
Radar None
Original Reporter mbelmont (JIRA User)
Type Bug

Attachment: Download

Environment

macOS Sierra, MacPro (Mid 2010), 16GB RAM, SSD480.

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 3.1Regression, CompilerCrash, OptimizedOnly
Assignee None
Priority Medium

md5: e212138119c1e0a138d314a56ec0a1bb

Issue Description:

Can compile and archive my project in xCode 8.2, no errors no warnings. After installing xCode 8.3.x can compile without any errors or warnings, run and debug it in simulator.
But when I'm trying to archive it I'm getting:
Swift Compiler Error: Command failed due to signal: Segmentation fault: 11.

Tried to clean the cashes, delete files from Library\Developer\Xcode\DerivedData directory, nothing helps. The only workable solution for now is to develop and debug in xCode 8.3.2, deploy in xCode 8.2.

@belkadan
Copy link
Contributor

There's no backtrace at all in the attached log, which implies infinite recursion in the compiler. Can you share your project with us, either here or at bugreport.apple.com?

@swift-ci
Copy link
Collaborator Author

Comment by Michael Belmont (JIRA)

Jordan,
Thank you for such a quick replay, the project what I’m working on is under enterprise license and I cannot share whole project with you. Unfortunately error didn’t specify any particular file or class what cause this error (at least I don’t see one).
Thank you,
Michael.

@belkadan
Copy link
Contributor

Yep, and since it's a whole-module optimization problem it may not be a particular file that's at fault. @bob-wilson, is there anything we can ask for?

@bob-wilson
Copy link

Michael, can you try downloading a recent development snapshot from swift.org and see if the problem is already fixed?

@swift-ci
Copy link
Collaborator Author

Comment by Michael Belmont (JIRA)

Bob,
I downloaded and installed the Apr. 18 xCode build, what should I do now?

@bob-wilson
Copy link

See the "Installation" subsection under https://swift.org/download/#using-downloads

@swift-ci
Copy link
Collaborator Author

Comment by Michael Belmont (JIRA)

Bob,

With toolchain compiler I got a bunch of warings mostly: "Argument of '#selector' refers to instance method 'LongPress_Action' in 'OrderCell' that depends on '@objc' attribute inference deprecated in Swift 4" and
"'@IBInspectable' attribute is meaningless on a property that cannot be represented in Objective-C".
When I tried to archive I got a different message: "Command failed due to signal: Abort trap: 6", I uploaded new log file.

Thank you,
Michael.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software optimized only Flag: An issue whose reproduction requires optimized compilation
Projects
None yet
Development

No branches or pull requests

4 participants