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-12332] Swift 5.2 build hangs until crash #4577

Open
swift-ci opened this issue Mar 7, 2020 · 5 comments
Open

[SR-12332] Swift 5.2 build hangs until crash #4577

swift-ci opened this issue Mar 7, 2020 · 5 comments
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Mar 7, 2020

Previous ID SR-12332
Radar rdar://problem/60189083
Original Reporter ltwyd (JIRA User)
Type Bug

Attachment: Download

Environment

Ubuntu 18.04 and 5.2-DEVELOPMENT-SNAPSHOT-2020-03-06-a.
Also tried 5.2-DEVELOPMENT-SNAPSHOT-2020-02-27-a before and it was the same behavior.

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

md5: 2cfbfb889134b56e36fc641c3efe9db2

Issue Description:

Hi,

when building my project (swift build) it just hangs on updating the packages until it crashes/terminates with "Invalid machine command (memory dump written)" (translated, not a english system) after 10-15 minutes.

This just happened after I updated my package dependencys (swift package update) and can be resolved by using the previous Package.resolved. Deleting the .build folder also didnt help.

I attached my Package.swift, Package.resolved and Package.resolved.old (which is the working one before updating).

I was testing a little more and this seems to be caused from
.package(url: "https://github.com/vapor/redis", from: "4.0.0-beta.3")
when removing it from Package.swift, it builds fine.

@ankitspd
Copy link
Member

ankitspd commented Mar 7, 2020

Thanks for the bug report. The attached Package.swift is resolving fine for me with swift-5.2-DEVELOPMENT-SNAPSHOT-2020-03-06-a snapshot. This indicates that the crash is probably not in SwiftPM's dependency resolver but some other component. Do you mind attaching a complete zipped package that reproduces this issue? A crash report will be also helpful if you're on macOS.

Update: I found the issue. It's happening because swift-redi-stack@1.0.0-alpha.7.1 depends on https://github.com/apple/swift-metrics.git from 1.0.0 where as vapor@4.0.0-rc.3.1 depends on swift-metrics from 2.0.0. Updating to a newer version of swift-metrics should fix this issue for your package.

@ankitspd
Copy link
Member

ankitspd commented Mar 7, 2020

@swift-ci create

@swift-ci
Copy link
Contributor Author

swift-ci commented Mar 7, 2020

Comment by Sam S (JIRA)

Awesome, thank you for the fast help!

But just wondering, shouldn't Swift give any errors/information in a case like that?

@ankitspd
Copy link
Member

ankitspd commented Mar 7, 2020

Yeah, it should emit an error explaining the issue. It looks like some issue around pre-release versions.

@Mordil
Copy link

Mordil commented Mar 7, 2020

RediStack has been updated to have a wider range of version support for SwiftMetrics: https://github.com/Mordil/swift-redi-stack/releases/tag/1.0.0-alpha.7.2

@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

4 participants