romkatv / romkatv/gitstatus

gitstatus fails to initialize on iOS 16.5 w/ Dopamine

Open
#482 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.8k
Forks
134
Avg merge
2d 18h
Merged PRs (30d)
1

Description


[ERROR]: gitstatus failed to initialize.


  Zsh log (/private/preboot/1C3EAA454E71D0BAB60BEAC18EE2A92E0365BC278D5E2E0E5E8283B9E4AE57B551428C48023003949DDCEDD67F262B6A/dopamine-Zvbyg2/procursus/tmp/gitstatus.POWERLEVEL9K.501.52641.1765063707.1.xtrace.log):

    +(anon):7> setopt monitor
    +(anon):9> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
    +(anon):10> [[ -r /proc/version ]]
    +(anon):13> print -rn
    +(anon):14> zsystem flock -f lock_fd /private/preboot/1C3EAA454E71D0BAB60BEAC18EE2A92E0365BC278D5E2E0E5E8283B9E4AE57B551428C48023003949DDCEDD67F262B6A/dopamine-Zvbyg2/procursus/tmp/gitstatus.POWERLEVEL9K.501.52641.1765063707.1.lock
    +(anon):15> [[ 15 == <1-> ]]
    +(anon):18> typeset -gi '_GITSTATUS_LOCK_FD_POWERLEVEL9K=lock_fd'
    +(anon):20> [[ darwin == cygwin* ]]
    +(anon):41> sysopen -r -o cloexec -u resp_fd /dev/fd/14
    (anon):sysopen:41: can't open file /dev/fd/14: no such file or directory
    +(anon):41> return

  System information:

    zsh:      5.9
    uname -a: Darwin b 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 21:09:37 PDT 2023; root:xnu-8796.122.4~1/RELEASE_ARM64_T8110 iPhone14,3 arm Darwin

  If you need help, open an issue and attach this whole error message to it:

    https://github.com/romkatv/gitstatus/issues/new
_p9k_worker_start:sysopen:12: can't open file /dev/fd/11: no such file or directory

[ERROR]: gitstatus failed to initialize.


  Zsh log (/private/preboot/1C3EAA454E71D0BAB60BEAC18EE2A92E0365BC278D5E2E0E5E8283B9E4AE57B551428C48023003949DDCEDD67F262B6A/dopamine-Zvbyg2/procursus/tmp/gitstatus.POWERLEVEL9K.501.52641.1765063707.2.xtrace.log):

    +(anon):7> setopt monitor
    +(anon):9> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
    +(anon):10> [[ -r /proc/version ]]
    +(anon):13> print -rn
    +(anon):14> zsystem flock -f lock_fd /private/preboot/1C3EAA454E71D0BAB60BEAC18EE2A92E0365BC278D5E2E0E5E8283B9E4AE57B551428C48023003949DDCEDD67F262B6A/dopamine-Zvbyg2/procursus/tmp/gitstatus.POWERLEVEL9K.501.52641.1765063707.2.lock
    +(anon):15> [[ 13 == <1-> ]]
    +(anon):18> typeset -gi '_GITSTATUS_LOCK_FD_POWERLEVEL9K=lock_fd'
    +(anon):20> [[ darwin == cygwin* ]]
    +(anon):41> sysopen -r -o cloexec -u resp_fd /dev/fd/12
    (anon):sysopen:41: can't open file /dev/fd/12: no such file or directory
    +(anon):41> return

  System information:

    zsh:      5.9
    uname -a: Darwin b 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 21:09:37 PDT 2023; root:xnu-8796.122.4~1/RELEASE_ARM64_T8110 iPhone14,3 arm Darwin

  If you need help, open an issue and attach this whole error message to it:

    https://github.com/romkatv/gitstatus/issues/new

iPhone 13 Pro Max iOS 16.5 Dopamine Jailbreak

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied Zsh xtrace logs, especially the _p9k_worker_start path and the sysopen call that cannot open /dev/fd/14 or /dev/fd/12. Reproduce gitstatus initialization on iOS 16.5 with Dopamine and investigate the platform-specific file-descriptor behavior. Done means gitstatus initializes without the reported errors on that environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios, zsh
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.