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-14038] Package Manager crashes about system library hint for yum #4453

Open
swift-ci opened this issue Jan 12, 2021 · 1 comment
Open
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-14038
Radar rdar://problem/73045145
Original Reporter ChaosCoder (JIRA User)
Type Bug
Environment
$ xcodebuild -version
Xcode 12.3
Build version 12C33
$ swift build --version
Swift Package Manager - Swift 5.3.0

But this especially happens on linux, where it should be helpful. That's where I first encountered that error.

Additional Detail from JIRA
Votes 2
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: b4cf4b681f1f3b8255b8e07bec9abf13

Issue Description:

The Swift Package Manager crashes with a fatal error, when the `.yum` provider for a system library is used.

Here is a minimal example:

// swift-tools-version:5.3
import PackageDescription
let package = Package(name: "Bug", targets: [
    .systemLibrary(
        name: "Crash-Min-Example",
        providers: [.yum(["just-anything-here-crashes"])]
    )
])

Which leads to the following output when running `swift package resolve`:

Fatal error: file PackageLoading/PackageDescription4Loader.swift, line 223
[1]    98803 illegal hardware instruction  swift package resolve

I assume the error thrown is here:
https://github.com/apple/swift-package-manager/blob/main/Sources/PackageLoading/PackageDescription4Loader.swift#L219

@typesanitizer
Copy link

@swift-ci 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