Skip to content

[SR-3563] EXC_BAD_ACCESS related to returning nested tuples from closures #46151

Open
@swift-ci

Description

@swift-ci
Previous ID SR-3563
Radar None
Original Reporter Thomvis (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 8.2, macOS Sierra

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

md5: 6d23a2ff463bf13de8dd3be5247673cf

Issue Description:

After upgrading from Swift 2.3 to Swift 3, I've encountered a new runtime crash having to do with returning nested typealiased tuples. I've not yet been able to reduce the issue to a simple example, but I thought I should file it nonetheless. I hope you can point me in the right direction as to how to make a minimal example.

To work around the issue, I had to replace a tuple with a struct. You can see the diff in the attached screenshot. The crash happens on the original (right) line 37.

Other info:

  • `HSCartDataController.TokenContext` is a typealias of a tuple itself

  • happens in debug and release builds

I apologise if a bug report like this, with code that has so much going on, is not useful. Let me know how I can help!

Metadata

Metadata

Assignees

No one assigned

    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 softwareregressionrun-time crashBug → crash: Swift code crashed during executionswift 3.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions