-
Notifications
You must be signed in to change notification settings - Fork 10.5k
{JSON,Plist}{En,De}coder defer container pops #13879
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
{JSON,Plist}{En,De}coder defer container pops #13879
Conversation
Resolve SR-6078 by restoring the JSON/PlistEncoder stack if an error is thrown after a container was pushed during encode.
Resolve SR-6408 by restoring the JSON/PlistDecoder stack if an error is thrown after a container was pushed during encode.
@swift-ci Please smoke test Linux |
@swift-ci Please test macOS |
Build failed |
Given the number of reports this may be worth cherry-picking to 4.1 as well. |
@jrose-apple Yep, that's the plan. BTW, looks like unrelated test failure in |
@swift-ci Please clean test macOS |
Looks like a real mistake from someone who forgot we don't have the |
Looks like job #1021 hit this this morning, too: https://ci.swift.org//job/oss-swift-package-osx/1021/consoleFull#-303088932ba62d58e-7248-467b-91e0-c7508d5cf947 |
I'm likely going to need to re-run this after #13883 is merged. @shahmishal Is there a way to kill CI jobs so they don't waste needless resources? |
Build failed |
@swift-ci Please test macOS |
What's in this pull request?
Resolves #48633 (rdar://problem/34857336) resolves swiftlang/swift-corelibs-foundation#4051 (rdar://problem/36336754), which became more common failures after #13178.
Thanks to @zintus for #12969 — this expands on that and adds unit tests.