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-3302] Crash when git not installed #5160

Closed
alblue opened this issue Dec 1, 2016 · 0 comments
Closed

[SR-3302] Crash when git not installed #5160

alblue opened this issue Dec 1, 2016 · 0 comments

Comments

@alblue
Copy link
Contributor

alblue commented Dec 1, 2016

Previous ID SR-3302
Radar None
Original Reporter @alblue
Type Improvement
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Improvement
Assignee None
Priority Medium

md5: 1a4c5a9cf8084480da2386ae7e166d9a

duplicates:

  • SR-3275 Lack of command 'git' causes swift-build crash.

Issue Description:

When swift build attempts to build on a system where the `git` executable is not installed, a fatal error occurs:

$ swift build
```
Cloning https://example.com/example.git
git clone --recursive --depth 10 https://example.com/example.git /tmp/example/Packages/example.git

fatal error: unexpectedly found nil while unwrapping an Optional value
Current stack trace:
0 libswiftCore.so 0x00007f269b2888e0 swift_reportError + 117
1 libswiftCore.so 0x00007f269b299e00 _swift_stdlib_reportFatalError + 61
2 libswiftCore.so 0x00007f269b0a58a3 <unavailable> + 0
3 libswiftCore.so 0x00007f269b202ffd <unavailable> + 0
4 libswiftCore.so 0x00007f269b0a58a3 <unavailable> + 0
5 libswiftCore.so 0x00007f269b1c48b0 specialized _fatalErrorMessage(StaticString, StaticString, StaticString, UInt, flags : UInt32) -> Never + 96
6 swift-build 0x00000000004933a5 <unavailable> + 0
7 swift-build 0x0000000000650007 <unavailable> + 0
8 swift-build 0x000000000065ee5d <unavailable> + 0
9 swift-build 0x0000000000660b62 <unavailable> + 0
10 swift-build 0x0000000000655d11 <unavailable> + 0
11 swift-build 0x0000000000657c8e <unavailable> + 0
12 swift-build 0x00000000006573ad <unavailable> + 0
13 swift-build 0x0000000000657d5c <unavailable> + 0
14 libswiftCore.so 0x00007f269b1470a0 Sequence.flatMap<A where ...> ((A.Iterator.Element) throws -> A1) throws -> [A1.Iterator.Element] + 576
15 swift-build 0x0000000000653fac <unavailable> + 0
16 swift-build 0x0000000000653984 <unavailable> + 0
17 swift-build 0x000000000065c002 <unavailable> + 0
18 swift-build 0x00000000006cd67b <unavailable> + 0
19 swift-build 0x00000000006fd335 <unavailable> + 0
20 swift-build 0x00000000004166d8 <unavailable> + 0
21 libc.so.6 0x00007f269925f740 __libc_start_main + 240
22 swift-build 0x0000000000416599 <unavailable> + 0
Illegal instruction

Swift 3.0.1 on Ubuntu 16.04

@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
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant