Skip to content

[SR-6422] Encountering "Constant strings cannot be deallocated" in Linux foundation  #3785

Closed
@mbrandonw

Description

@mbrandonw
Previous ID SR-6422
Radar None
Original Reporter @mbrandonw
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, RunTimeCrash
Assignee None
Priority Medium

md5: 591e29ee8530d7b357e7037d4dee4824

duplicates:

  • SR-6398 Constant strings cannot be deallocated: file Foundation/NSCFString.swift, line 118

Issue Description:

Hello! I have a test case that when run on Linux somehow encounters the "Constant strings cannot be deallocated” fatal error thrown in NSCFString.swift, as seen here:

https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSCFString.swift#L118

The test that does it is here:

https://github.com/pointfreeco/swift-web/blob/5f19a0264be5d369ee0438da8599e3c478a6573b/Tests/ApplicativeRouterTests/SyntaxRouterTests.swift#L88-L93

Now there’s a lot to unravel here and I haven’t been able to find a minimal test case yet, but I thought I would at least file this for now and can update if I find the minimal test case.

I have also raised this issue not he corelibs-dev mailing list:

https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20171113/001351.html

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions