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-9253] Segmentation Fault 11 on lazy property getter #51735

Open
swift-ci opened this issue Nov 14, 2018 · 2 comments
Open

[SR-9253] Segmentation Fault 11 on lazy property getter #51735

swift-ci opened this issue Nov 14, 2018 · 2 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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9253
Radar None
Original Reporter crousselle (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 10

Swift 4

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

md5: d422ce116bfa8a4f71e8475c7371538d

Issue Description:

Our application fails to build on XCode 10.1 with

While emitting SIL for getter for imitationNavBar at .... 

The faulty line is the following one:

private lazy var imitationNavBar = ProfileContactListViewController.makeImitationNavBar(mode: mode, navTitleView: navTitleView, leftButton: leftNavBarButton, rightButton: mode == .friends ? rightNavBarButton : nil)

The issue seems to be located in the ternary operation. However, moving to

private lazy var imitationNavBar: ImitationNavBarView =
{         
let bar = ProfileContactListViewController.makeImitationNavBar(mode: mode, navTitleView: navTitleView, leftButton: leftNavBarButton, rightButton: mode == .friends ? rightNavBarButton : nil)         return bar    
}()
 

fixes the issue

@belkadan
Copy link
Contributor

If you can't attach the project, can you share the build log?

@swift-ci
Copy link
Collaborator Author

Comment by Clement Rousselle (JIRA)

Attached the build log, thanks!

@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

3 participants