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-15241] async let causes a segmentation fault #57563

Closed
tayloraswift opened this issue Sep 24, 2021 · 2 comments
Closed

[SR-15241] async let causes a segmentation fault #57563

tayloraswift opened this issue Sep 24, 2021 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. concurrency Feature: umbrella label for concurrency language features

Comments

@tayloraswift
Copy link
Contributor

Previous ID SR-15241
Radar rdar://problem/83635953
Original Reporter @Kelvin13
Type Bug
Status Resolved
Resolution Done
Environment

$ swiftc --version
Swift version 5.5 (swift-5.5-RELEASE)
Target: x86_64-unknown-linux-gnu

Additional Detail from JIRA
Votes 3
Component/s
Labels Bug, Concurrency
Assignee None
Priority Medium

md5: 5266402fe2febb2edd87ce3d66ca68a9

Issue Description:

the following test program suffers a segmentation fault, on both debug and release builds:

@main 
enum Main 
{
    static 
    func foo() async -> [Void]
    {
        try? await Task.sleep(nanoseconds: 1)
        return []
    }
    static 
    func main() async
    {
        async let task:Void = 
        {
            () async -> () in 
            try? await Task.sleep(nanoseconds: 1)
        }()
        while true 
        {
            let _:[Void] = await Self.foo()
        }
    }
}

This issue is present in the 5.5-RELEASE toolchain, and all of the recent nightlies.

@benlangmuir
Copy link
Member

@swift-ci create

@tayloraswift
Copy link
Contributor Author

appears to be fixed, after testing with a locally-compiled swift toolchain

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 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. concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

No branches or pull requests

2 participants