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-2852] String interpolation causes segmentation fault #45446

Closed
swift-ci opened this issue Oct 4, 2016 · 1 comment
Closed

[SR-2852] String interpolation causes segmentation fault #45446

swift-ci opened this issue Oct 4, 2016 · 1 comment
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 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Oct 4, 2016

Previous ID SR-2852
Radar None
Original Reporter Vermeulen (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, TypeChecker
Assignee @rudkx
Priority Medium

md5: 2a522a50d49ad946b391a8a831aa5af1

duplicates:

  • SR-1512 Assertion failure: "Already marked as a fixed binding" when implementing index(_:offsetBy:limit:)

Issue Description:

This code causes a segmentation fault:

let x: String? = nil
let y: String? = nil

let z = x.map { xx in
    y.map { _ in "" } ?? "\(xx)"
}

Manually specifying the type with `let z: String? = ...` gets rid of the segmentation fault. Replacing `(xx)` by simply `xx` also gets rid of the segmentation fault.

@belkadan
Copy link
Contributor

belkadan commented Oct 5, 2016

@rudkx, another one of these (on master):

Assertion failed: (!adjacency.FixedBinding && "Already marked as a fixed binding?"), function addFixedBinding, file /Volumes/Data/swift-public/swift/lib/Sema/ConstraintGraph.cpp, line 207.

@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
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 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

3 participants