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-13758] Crash in PubgrubDependencyResolver.propagate(_:) #4485

Open
sharplet opened this issue Oct 20, 2020 · 1 comment
Open

[SR-13758] Crash in PubgrubDependencyResolver.propagate(_:) #4485

sharplet opened this issue Oct 20, 2020 · 1 comment
Assignees
Labels

Comments

@sharplet
Copy link

Previous ID SR-13758
Radar None
Original Reporter @sharplet
Type Bug
Environment
% xcodebuild -version
Xcode 12.1
Build version 12A7403

% swift --version
Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
Target: x86_64-apple-darwin19.6.0
Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Bug
Assignee @abertelrud
Priority Medium

md5: dd5d3c7df0c5402303f5287b36d4d3ae

Issue Description:

The following Package.swift file will crash the dependency resolver:

// swift-tools-version:5.3

import PackageDescription

let package = Package(
  name: "PubGrubCrash",
  products: [
    .library(name: "PubGrubCrash", targets: ["PubGrubCrash"]),
  ],
  dependencies: [
    .package(url: "https://github.com/RxSwiftCommunity/Action.git", from: "4.2.0"),
    .package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.0.0-rc.1"),
  ],
  targets: [
    .target(name: "PubGrubCrash", dependencies: ["Action"]),
  ]
)

It results in the following fatal error:

% swift package resolve
Updating https://github.com/ReactiveX/RxSwift.git
Updating https://github.com/RxSwiftCommunity/Action.git
Fatal error: Expected root cause {action[https://github.com/RxSwiftCommunity/Action.git] 4.2.0, ¬rxswift[https://github.com/ReactiveX/RxSwift.git] 5.0.0..<7.0.0} to almost satisfy the current partial solution:
 * [Decision 0: <synthesized-root>[<synthesized-root-path>] 1.0.0]
 * [Derivation: rxswift[https://github.com/ReactiveX/RxSwift.git] 6.0.0-rc.1..<7.0.0 ← {<synthesized-root>[<synthesized-root-path>] 1.0.0, ¬rxswift[https://github.com/ReactiveX/RxSwift.git] 6.0.0-rc.1..<7.0.0}]
 * [Derivation: action[https://github.com/RxSwiftCommunity/Action.git] 4.2.0..<5.0.0 ← {<synthesized-root>[<synthesized-root-path>] 1.0.0, ¬action[https://github.com/RxSwiftCommunity/Action.git] 4.2.0..<5.0.0}]
 * [Derivation: ¬action[https://github.com/RxSwiftCommunity/Action.git] 4.2.1..<5.0.0 ← {action[https://github.com/RxSwiftCommunity/Action.git] 4.2.1..<5.0.0}]
: file PackageGraph/Pubgrub.swift, line 1004
zsh: illegal hardware instruction  swift package resolve
@abertelrud
Copy link
Contributor

@swift-ci please create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants