[SR-9744] Swift 4.2.1: runtime crash on swift_dynamicCastMetatypeImpl #52175
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
standard library
Area: Standard library umbrella
Environment
Ubuntu 16.04
Swift version 4.2.1 (swift-4.2.1-RELEASE)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: a45a97a62d8c0db772a41323be90935d
Issue Description:
I'm experiencing a runtime crash on Ubuntu when executing tests for this SPM project https://github.com/broadwaylamb/DependencyFetcher/tree/03e329d5aeeec928546e055a9ea08cd7a4e74c24 on Ubuntu:
Here's the code where the crash occurs:
The crash occurs only when running `swift test` for the package. When the package is added as a dependency for an executable with the same code as in the testing method, everything is fine.
This code works fine though:
Unfortunately, I wasn't able to reduce the test case.
The text was updated successfully, but these errors were encountered: