Skip to content

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

Description

@swift-ci
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.

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions