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-14417] A OC-Swift bridging case cause of 'Segmentation fault: 11' #56773

Open
swift-ci opened this issue Mar 29, 2021 · 4 comments
Open

[SR-14417] A OC-Swift bridging case cause of 'Segmentation fault: 11' #56773

swift-ci opened this issue Mar 29, 2021 · 4 comments
Assignees
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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-14417
Radar rdar://problem/75956839
Original Reporter C. (JIRA User)
Type Bug

Attachment: Download

Environment

Swift_MVP.zip

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, CompilerCrash
Assignee @rjmccall
Priority Medium

md5: b0be6cb984bdccfe0c9f20ab213ae338

Issue Description:

If a class property is declared in OC and modified in Swift, the Swift compiler will crash with "Segmentation fault: 11" when building the project.

If the crash doesn't occur, remembering to clean build folder and rebuild the project.

And I've built the Swift project and reproduced the crash, which is caused by verifying an abnormal SILInstruction .The crash screenshot is attached

Xcode version : 12.4 (12D4e)

MacOS version :10.15.5 (19F101)

Tthe demo project is attached.

@typesanitizer
Copy link

@swift-ci create

@nate-chandler
Copy link
Contributor

It looks like this may be fixed in Xcode 12.5 Beta 3. Can you try building the project there?

@swift-ci
Copy link
Collaborator Author

swift-ci commented Apr 2, 2021

Comment by C (JIRA)

It still crashes in Xcode 12.5 Beta 3 / MacOS 11.1 (20C69)

@swift-ci
Copy link
Collaborator Author

Comment by farm (JIRA)

Xcode 12.5/ MacOS 11.4 (20F71) ,still crash.

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

No branches or pull requests

4 participants