Open swift-ci opened 6 years ago
I think this has been fixed on master. Gregor, would you mind trying a master branch toolchain? @gottesmm, does this sound familiar?
And yes, please separate out the generics issue to a different bug.
Comment by Gregor Milos (Grzegorz Miłoś) (JIRA)
Hi @belkadan
It looks like this is indeed fixed in swift-DEVELOPMENT-SNAPSHOT-2017-11-14-a. Closing as resolved.
I filed the crash separately as: SR-6388
Comment by Gregor Milos (Grzegorz Miłoś) (JIRA)
Fixed as of swift-DEVELOPMENT-SNAPSHOT-2017-11-14-a (Apple Swift version 4.1-dev (LLVM 23b3d8ddc9, Clang 7729192d63, Swift 7ba352c4d7). Maybe earlier.
Comment by Gregor Milos (Grzegorz Miłoś) (JIRA)
On the second thought (thanks @alblue), would it be possible to pull the fix into 4.1 too? I've tested with swift-4.1-DEVELOPMENT-SNAPSHOT-2017-11-14-a, but the issue is still there.
We haven't hit the final branch point for 4.1 yet; the branch we have right now is just to shake out some early issues.
Attachment: Download
Environment
swift --version Apple Swift version 4.0.2 (swift-4.0.2-RELEASE) Target: x86_64-apple-macosx10.9Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, Leak | |Assignee | None | |Priority | Medium | md5: 9c2a463f9c648470680d88c17c90a71dIssue Description:
I tracked down a memory leak in our production code to an unbalanced retain when operating on an indirect enum.
I'm attaching SwiftPM package with a minimal repro. Decompress and run with: