[SR-6268] Possible incorrect memory management for boxed types #48818
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
SILGen
Area → compiler: The SIL generation stage
Additional Detail from JIRA
md5: 57df5705c5cdb0437c9c17d5fbec3537
is duplicated by:
Issue Description:
The following test case seems to cause the runtime to abort due to the boxed type being discarded is not marked as Deiniting.
/Users/compnerd/Source/apple-swift/swift/stdlib/public/runtime/HeapObject.cpp:781: void swift::swift_deallocObject(swift::HeapObject *, size_t, size_t): Assertion `object->refCounts.isDeiniting()' failed.
The text was updated successfully, but these errors were encountered: