Skip to content

[SR-2486] NSDictionary with NSSet inside crashes during printing #4330

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-2486
Radar None
Original Reporter vadim (JIRA User)
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Linux, RunTimeCrash
Assignee saiHema (JIRA)
Priority Medium

md5: eecfc423c77c0be1058908e05dc9b348

Issue Description:

The following code crashes with core dump on Ubuntu:

import Foundation

let aSet = NSMutableSet()
let dictionary = NSMutableDictionary()
let key = NSString(string: "collection")

aSet.add(["key": "value"])

dictionary.setObject(aSet, forKey: key)
print("dictionary = \(dictionary)")

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