Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-15536] Compiler crash while trying to build SwiftPM #57839

Open
karwa opened this issue Nov 30, 2021 · 2 comments
Open

[SR-15536] Compiler crash while trying to build SwiftPM #57839

karwa opened this issue Nov 30, 2021 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@karwa
Copy link
Contributor

karwa commented Nov 30, 2021

Previous ID SR-15536
Radar rdar://problem/86252299
Original Reporter @karwa
Type Bug

Attachment: Download

Environment

macOS 11.6, Xcode 13.1 (13A1030d)
Building with the macOS 5.5.1 release toolchain from swift.org

Apple Swift version 5.5.1 (swift-5.5.1-RELEASE)
Target: x86_64-apple-macosx11.0

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 4d12fe7dfcdf2f475ff0ac7fa5a45eae

Issue Description:

Trying to build 3af7f891c00d4a077ceca84734cccee83eeb1770 (Initial implementation of Command Plugins) from apple/swift-package-manager.

Snippet from the attached log:

1097/1138] Compiling Commands SnippetCard.swift
[1098/1138] Compiling Commands WatchmanHelper.swift
error: compile command failed due to signal 6 (use -v to see invocation)[1099/1138] Compiling Commands show-dependencies.swift
[1100/1138] Compiling Commands CardEvent.swift
[1101/1138] Compiling Commands CardStack.swift
SIL memory lifetime failure in @SPMTestSupport.MockWorkspace.ManagedDependencyResult.check(dependency: PackageModel.PackageIdentity, at: SPMTestSupport.MockWorkspace.State, file: Swift.StaticString, line: Swift.UInt) -> (): memory is not initialized, but should
memory location:   %317 = tuple_element_addr %314 : $*(basedOn: Optional<Workspace.ManagedDependency>, unmanagedPath: Optional<AbsolutePath>), 1 // user: %318
at instruction:   destroy_addr %314 : $*(basedOn: Optional<Workspace.ManagedDependency>, unmanagedPath: Optional<AbsolutePath>) // id: %336

in function:
// MockWorkspace.ManagedDependencyResult.check(dependency:at:file:line:)
sil [ossa] @SPMTestSupport.MockWorkspace.ManagedDependencyResult.check(dependency: PackageModel.PackageIdentity, at: SPMTestSupport.MockWorkspace.State, file: Swift.StaticString, line: Swift.UInt) -> () : $@convention(method) (@guaranteed PackageIdentity, @guaranteed MockWorkspace.State, StaticString, UInt, @guaranteed MockWorkspace.ManagedDependencyResult) -> () {
// %0 "dependencyId"                              // users: %13, %464, %5
// %1 "state"                                     // users: %25, %6
// %2 "file"                                      // users: %424, %398, %238, %297, %132, %100, %68, %194, %487, %7
// %3 "line"                                      // users: %424, %398, %238, %297, %132, %100, %68, %194, %487, %8
// %4 "self"                                      // users: %11, %9
bb0(%0 : @guaranteed $PackageIdentity, %1 : @guaranteed $MockWorkspace.State, %2 : $StaticString, %3 : $UInt, %4 : @guaranteed $MockWorkspace.ManagedDependencyResult):
  debug_value %0 : $PackageIdentity, let, name "dependencyId", argno 1 // id: %5
  debug_value %1 : $MockWorkspace.State, let, name "state", argno 2 // id: %6
  debug_value %2 : $StaticString, let, name "file", argno 3 // id: %7
@tomerd
Copy link
Member

tomerd commented Dec 8, 2021

@swift-ci create

@tomerd
Copy link
Member

tomerd commented Dec 8, 2021

cc @gottesmm

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants