Navigation Menu

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-11548] Segmentation fault #53949

Open
swift-ci opened this issue Sep 30, 2019 · 7 comments
Open

[SR-11548] Segmentation fault #53949

swift-ci opened this issue Sep 30, 2019 · 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 regression swift 5.1

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-11548
Radar rdar://57226682
Original Reporter mihaicris (JIRA User)
Type Bug

Attachment: Download

Environment

macOS Version 10.14.6 (18G95)
Xcode Version 11.0 (11A420a)
Target iOS Version 11.0
Compiling for device: Simulator iPAd Pro (11-inch), iOS 13.0 (17A577a)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.1Regression, CompilerCrash
Assignee mihaicris (JIRA)
Priority Medium

md5: 5294c4ca04a35c0a87d856534400d991

Issue Description:

I get this segmentation fault (in attachment) when trying to compile the project with the latest Xcode/Swift version. Project is compiling fine with Xcode 10.1 (10B61).
I would like to provide more information but not sure where to start.

@belkadan
Copy link
Contributor

Is this a project you can share? If not here, than maybe just with Apple at https://feedbackassistant.apple.com ?

@swift-ci
Copy link
Collaborator Author

swift-ci commented Oct 1, 2019

Comment by Mihai Cristescu (JIRA)

Unfortunately I can not share the project.

I will see what are the options, maybe the company could use one of the Technical Support Incident (TSI) included in the Apple Developer Enterprise Program.

@swift-ci
Copy link
Collaborator Author

Comment by Mihai Cristescu (JIRA)

Filed a bug at Feedback Assistant:

No. FB7448788

@aschwaighofer
Copy link
Member

Does this reproduce with a recent swift.org snapshot toolchain? https://swift.org/download/#snapshots

@swift-ci
Copy link
Collaborator Author

swift-ci commented Dec 4, 2019

Comment by Mihai Cristescu (JIRA)

Yes, I tried it today, the defect is still there. 🙁

The main project doesn't compile, but I was able to comment some code and compile the rest of the project. So I identified some files which are creating the issues.

Now, I am still trying to create a sample project with a subset of files that can be shared with you.

Unfortunately, until now I could not reproduce this defect with only a few files (which are involved), the smaller project compiles fine and the defect doesn't manifest.

I am still working on providing you a sample project.

Please let me know if the team fixes any defect in this area (Keypaths) such that I can try again with a new snapshot.

Thank you.

@swift-ci
Copy link
Collaborator Author

swift-ci commented Jan 6, 2020

Comment by Mihai Cristescu (JIRA)

Hi, I am trying to compile the project with a newer snapshot.

I am getting this error:

ld: file not found: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2020-01-05-a.xctoolchain/usr/lib/clang/7.0.0/lib/darwin/libclang_rt.profile_iossim.a

Version 11.3 (11C29)
Toolchain: Swift Development Snapshot 2020-01-05 (a)

@aschwaighofer
Copy link
Member

It seems the snapshots are not including these runtime libraries for platforms other than Mac OS.

A workaround (copy the version from the Xcode sdk) is described here:
https://forums.swift.org/t/undefined-symbol-isosversionatleast/29782/17

You could also try disabling profiling. I think this library dependency is due to enabling profiling.

@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 regression swift 5.1
Projects
None yet
Development

No branches or pull requests

4 participants