-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwareregressionswift 5.0
Description
Previous ID | SR-10206 |
Radar | rdar://problem/49380933 |
Original Reporter | @keith |
Type | Bug |
Environment
Ubuntu 18.04
Swift version 5.0 (swift-5.0-RELEASE)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
Votes | 1 |
Component/s | Compiler |
Labels | Bug, 5.0Regression, CompilerCrash |
Assignee | None |
Priority | Medium |
md5: ccca405c547b834e4db17bd67e989462
Issue Description:
When running tests for PathKit at this commit kylef/PathKit@4151a7e on Linux, the compiler crashes with this error:
# swift test
swift: /home/buildnode/jenkins/workspace/oss-swift-5.0-package-linux-ubuntu-18_04/swift/include/swift/SIL/TypeLowering.h:765: swift::SILType swift::Lowering::TypeConverter::getLoweredLoadableType(swift::Type): Assertion `(ti.isLoadable() || !SILModuleConventions(M).useLoweredAddresses()) && "unexpected address-only type"' failed.
Stack dump:
0. Program arguments: /usr/local/bin/swift -frontend -c -primary-file /code/containers/swiftbase/PathKit/Tests/PathKitTests/PathKitSpec.swift /code/containers/swiftbase/PathKit/Tests/PathKitTests/XCTest.swift -emit-module-path /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug/PathKitTests.build/PathKitSpec~partial.swiftmodule -emit-module-doc-path /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug/PathKitTests.build/PathKitSpec~partial.swiftdoc -emit-dependencies-path /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug/PathKitTests.build/PathKitSpec.d -emit-reference-dependencies-path /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug/PathKitTests.build/PathKitSpec.swiftdeps -target x86_64-unknown-linux -disable-objc-interop -sdk / -I /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug -enable-testing -g -module-cache-path /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug/ModuleCache -swift-version 4.2 -Onone -D SWIFT_PACKAGE -D DEBUG -color-diagnostics -enable-anonymous-context-mangled-names -parse-as-library -module-name PathKitTests -o /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug/PathKitTests.build/PathKitSpec.swift.o -index-store-path /code/containers/swiftbase/PathKit/.build/x86_64-unknown-linux/debug/index/store -index-system-modules
1. While emitting SIL for 'testPathKit()' (at /code/containers/swiftbase/PathKit/Tests/PathKitTests/PathKitSpec.swift:10:8)
2. While silgen emitFunction SIL function "@$s12PathKitTests04testaB0yyF".
for 'testPathKit()' (at /code/containers/swiftbase/PathKit/Tests/PathKitTests/PathKitSpec.swift:10:8)
3. While silgen closureexpr SIL function "@$s12PathKitTests04testaB0yyFy7Spectre11ContextType_pXEfU_".
for expression at [/code/containers/swiftbase/PathKit/Tests/PathKitTests/PathKitSpec.swift:11:21 - line:512:1] RangeText="{
let fixtures = Path(#file).parent() + "Fixtures"
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwareregressionswift 5.0