apple / apple/swift-openapi-urlsession
Crash on HTTPBodyStreamDelegate
- Dominant language
- Swift
- Stars
- 216
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
### Description
We are having a crash on HTTPBodyStreamDelegate
The stack trace seems odd which may be happening because of the inline optimizations or some race condition.
- OpenAPIURLSession.BufferedStream._StateMachine._State.Initial.init(backPressureStrategy: OpenAPIURLSession.BufferedStream._InternalBackPressureStrategy, iteratorInitialized: Swift.Bool, onTermination: (@Sendable () -> ())?) -> OpenAPIURLSession.BufferedStream._StateMachine._State.Initial
- OpenAPIURLSession.BufferedStream._StateMachine._State.SourceFinished.failure.setter : Swift.Error?
- OpenAPIURLSession.BufferedStream.Source.write(contentsOf: A1) async throws -> ()
- OpenAPIURLSession.BufferedStream.Source.WriteResult.CallbackToken.id.getter : Swift.UInt
- OpenAPIURLSession.LockStorage.unlock() -> ()
### Reproduction
We don't know yet the exact steps to reproduce the issue
### Package version(s)
https://github.com/apple/swift-openapi-urlsession
version 1.0.2
### Expected behavior
not crash
### Environment
iOS 18.5
### Additional information
_No response_
Contributor guide
Research direction
Start with the HTTPBodyStreamDelegate crash report and the listed OpenAPIURLSession.BufferedStream stack trace in version 1.0.2. Check the reported iOS 18.5 environment and investigate whether the available information supports a reproducible case; the issue is complete when the crash is reproduced and its cause or a verified fix is established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100