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

SIGABRT: AsyncStream<String>(context: Found a null pointer in a value of type 'Swift.AsyncStream<Swift.String>._Context' #80002

Open
barnard-b opened this issue Mar 13, 2025 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software triage needed This issue needs more specific labels

Comments

@barnard-b
Copy link
Contributor

barnard-b commented Mar 13, 2025

Description

No warnings during build, crashes at runtime.

Reproduction

@main
struct App {
    static func main() async throws {
        let stream = AsyncStream<String> { continuation in
            print(stream)
        }
    }
}

Stack dump

AsyncStream<String>(context: Found a null pointer in a value of type 'Swift.AsyncStream<Swift.String>._Context' (0x2043f4160). Non-Optional values are not allowed to hold null pointers. (Detected while casting to 'Swift.CustomDebugStringConvertible' (0x2043f47a8))
Found a null pointer in a value of type 'Swift.AsyncStream<Swift.String>._Context' (0x2043f4160). Non-Optional values are not allowed to hold null pointers. (Detected while casting to 'Swift.CustomReflectable' (0x2043f4898))

Expected behavior

Does not compile if not valid.

Environment

swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0

Additional information

No response

@barnard-b barnard-b added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software triage needed This issue needs more specific labels labels Mar 13, 2025
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. crash Bug: A crash, i.e., an abnormal termination of software triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant