Carthage / Carthage/Carthage

Carthage is crashing with a SIGSEGV Segmentaion Fault 11

Open
#2,973 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Swift
Stars
15.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

* carthage install method: [ ] .pkg, [X] homebrew, [ ] source
* `which carthage`: /usr/local/bin/carthage
* `carthage version`: 0.34.0
* `xcodebuild -version`: Xcode 11.3 Build version 11C29
* Are you using `--no-build`? no
* Are you using `--no-use-binaries`? no
* Are you using `--use-submodules`? no
* Are you using `--cache-builds`? no
* Are you using `--new-resolver`? no

**Cartfile**

Cant share cartfile due to pricavcy reasons
We download the binaries using carthage update from artifactory. Binary dependency has been specified in Cartwright file . It normally fails intermittently. Have verified nothing wrong from artifactory;s end

Below is the detailed analysis

CONSOLE: 3:09 crash was in thread 11 (Project.downloadBinaryFrameworkDefinition):
Dictionary.subscript.getter

So, a nil value in a dictionary? (json?)

```
Thread 11 Crashed:: Dispatch queue: org.carthage.Constants.Project.cachedBinaryProjectsQueue
0 carthage 0x0000000104b00695 specialized Dictionary.subscript.getter + 21
1 carthage 0x0000000104b03b1a closure #1 in Project.downloadBinaryFrameworkDefinition(binary:) + 234
2 carthage 0x0000000104b2f5e4 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed ResolvedCartfile) -> (@owned SignalProducer<(Dependency, PinnedVersion), CarthageError>) + 20


CONSOLE: ##### (3:09):
Process: carthage [59908]
Path: /usr/local/Cellar/carthage/0.34.0/bin/carthage
Identifier: carthage
Version: 0
Code Type: X86-64 (Native)
Parent Process: ??? [59887]
Responsible: java [91938]
User ID: 504

Date/Time: 2020-04-07 15:09:17.855 +1000
OS Version: Mac OS X 10.15.3 (19D76)
Report Version: 12
Anonymous UUID: DF5A86EE-3743-FBD8-9CE1-386E31874C3A

Time Awake Since Boot: 2900000 seconds

System Integrity Protection: enabled

Crashed Thread: 11 Dispatch queue: org.carthage.Constants.Project.cachedBinaryProjectsQueue

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [59908]
```

**Carthage Output**

```
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/helper/sh_helper.rb:12:in `sh'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/actions/carthage.rb:36:in `run'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from ../../../../../../../var/folders/tx/1mpzb4x12t96kvwk7_czmz8h0000gp/T/fl_clone20200402-66889-gzopbh/fastlane.library.ruby.git/fastlane/Fastfile:59:in `block (2 levels) in parsing_binding'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.144.0/fastlane/lib/fastlane/lane.rb:33:in `call'
```

**Actual outcome**
Carthage did or did not download the binaries from the Artifactory

**Expected outcome**
Carthage should have downloaded the binaries mentioned in the Cartwright file

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.