-
Notifications
You must be signed in to change notification settings - Fork 625
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
TCPThroughputBenchmark has a crashing race #2649
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Test runs reliably.
Actual behavior
Test crashes occasionally with
Unexpectedly found nil while implicitly unwrapping an Optional value
Steps to reproduce
NIOPerformanceTester
in release modeIf possible, minimal yet complete reproducer code (or URL to code)
I can do one better, and explain the crash:
swift-nio/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift
Line 49 in 82fd942
is invoked before the channel is active (and sets the implicitly unwrapping optional
context
)swift-nio/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift
Lines 43 to 45 in 82fd942
SwiftNIO version/commit hash
https://github.com/apple/swift-nio/tree/82fd942745b11ccebbf0db3e9e4bf150b60e5e44
System & version information
An internal 23E macOS build, with an internal 15A Xcode / toolchain build.
Crash details
The text was updated successfully, but these errors were encountered: