Skip to content

[SR-1177] Getting value from Dictionary crashes when built with -Onone #43785

@swift-ci

Description

@swift-ci
Previous ID SR-1177
Radar None
Original Reporter wczekalski (JIRA User)
Type Bug
Status Resolved
Resolution Invalid

Attachment: Download

Environment

Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3d) (03/01/2016 development snapshot)

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, NotOptimizedOnly
Assignee None
Priority Medium

md5: 9ab249de5a5e7ae6894b3afdf799732d

Issue Description:

When I get a value from a Dictionary it crashes. The crash happens in various places in the call stack of the subscript getter. It happens only if the build is compiled without Swift compiler optimizations on biggish data sets (tested with 10000 elements). It is probably generics related. I attached a sample program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.non-optimized onlyFlag: An issue whose reproduction requires non-optimized compilationstandard libraryArea: Standard library umbrella

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions