Skip to content

[SR-320] reference counting problem with NSCalendar.currentCalendar() #4370

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-320
Radar None
Original Reporter papierschiff (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

swift2.2 (10.12.15), ubuntu 14.04

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, CoreFoundation, Linux
Assignee None
Priority Medium

md5: 65e4db0691d09d7231be031ea0f38322

Issue Description:

when i use NSCalendar.currentCalendar() after a short time (in my example after the 4. call) the program crashs with the output:

/home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04/swift/include/swift/Runtime/../../../stdlib/public/SwiftShims/RefCount.h:207: bool StrongRefCount::doDecrementShouldDeallocate() [ClearPinnedFlag = false]: Assertion `newval + quantum >= RC_ONE && "releasing reference with a refcount of zero"' failed.
Aborted (core dumped)

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