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-11655] Segmentation fault 11 on Xcode 11.0, 11.1, 11.2 beta 2 #54066

Closed
swift-ci opened this issue Oct 23, 2019 · 2 comments
Closed

[SR-11655] Segmentation fault 11 on Xcode 11.0, 11.1, 11.2 beta 2 #54066

swift-ci opened this issue Oct 23, 2019 · 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 duplicate Resolution: Duplicates another issue optimized only Flag: An issue whose reproduction requires optimized compilation protocol compositions Feature → types: protocol composition types SILOptimizer Area → compiler: SIL optimization passes swift 5.1 types Feature: types

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Oct 23, 2019

Previous ID SR-11655
Radar rdar://problem/56542663
Original Reporter alex_kuzyaev (JIRA User)
Type Bug
Status Closed
Resolution Duplicate

Attachment: Download

Environment

Xcode 11.2 beta 2 (11B44)
Xcode 11.1 (11A1027)
Xcode 11.0 (11A420a)

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

md5: ca297e5ed2e65791bbaf9cc92387c3dc

duplicates:

Issue Description:

The attached project demonstrates the issue - when creating archive, the compiler crashes with segmentation fault 11.

changing init

public required init(
request: BaseServerRequest<ResultType> & ReusablePagingRequest, 
completedEvents: Event<ResultType> = PresentEvent<ResultType>(), 
errorEvents: Event<Error> = PresentEvent<Error>())

to

public required init(
request: BaseServerRequest<ResultType>, // & ReusablePagingRequest     
completedEvents: Event<ResultType> = PresentEvent<ResultType>(), 
errorEvents: Event<Error> = PresentEvent<Error>())

fixed the issue

@belkadan
Copy link
Contributor

@swift-ci create

@atrick
Copy link
Member

atrick commented Nov 13, 2019

Fixed on master:

commit 4e106fb
Merge: a73c1f4 ddade0a
Author: Andrew Trick <atrick@apple.com>
Date: Fri Nov 1 19:52:42 2019

Merge pull request #28012 from zoecarver/fix/optimizer-and-SR-11624

Fix crash when optimizing protocol composition

@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
@AnthonyLatsis AnthonyLatsis added swift 5.1 protocol compositions Feature → types: protocol composition types types Feature: types duplicate Resolution: Duplicates another issue SILOptimizer Area → compiler: SIL optimization passes labels Jan 19, 2024
This issue was closed.
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 duplicate Resolution: Duplicates another issue optimized only Flag: An issue whose reproduction requires optimized compilation protocol compositions Feature → types: protocol composition types SILOptimizer Area → compiler: SIL optimization passes swift 5.1 types Feature: types
Projects
None yet
Development

No branches or pull requests

4 participants