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-10905] Memory Corruption while Building Recursive Enumeration Instance #53295

Closed
swift-ci opened this issue Jun 10, 2019 · 3 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-10905
Radar rdar://problem/51587827
Original Reporter CTMacUser (JIRA User)
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

macOS 10.14.5 with Xcode 10.2.1 on a 2014 MacBook Air.

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Miscompile
Assignee None
Priority Medium

md5: 30b0ba27ec4a7afbd3a547f864f3513a

Issue Description:

This is based off a post I made on the Swift forums. It concerns a NeverEmptyTrie type, along with a LinkedList support type, both of which are enumeration types with indirect cases.

The NeverEmptyTrie.doInsert seemed to have worked in its initial test cases. It was created in the middle of all the code I wrote. As I made test cases for later code in the library, the insertion tests started failing, with the payload having garbage values. There are several initializers that compose two tries together, but they haven't shown corruption in their tests (yet).

@jckarter
Copy link
Member

@gottesmm might be interested in this. We've reworked a lot of the pattern matching code to be more robust and ownership-correct.

@gottesmm
Copy link
Member

With:

Apple Swift version 5.1 (swiftlang-1100.0.266.1 clang-1100.0.32.1)
Target: x86_64-apple-darwin18.6.0

This doesn't reproduce anymore. CTMacUser (JIRA User) can you confirm if you are still seeing this?

@gottesmm
Copy link
Member

We believe this is fixed. CTMacUser (JIRA User) if you are still seeing this please re-open this issue.

@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. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

3 participants