錯誤:git-submodule 死於訊號 11

錯誤:git-submodule 死於訊號 11

FML 編輯:所以......長話短說,這是我在 bashrc 設定檔中的一個函數... test() { npm run test $1 $2 $3 $4 ;};導出-f測試

但!

您可能會問,我是如何追蹤到這一點的?

好吧,在使用 iosnoop 進行一些挖掘之後,我查找了為什麼 iosnoop 在路徑中給出??'s ,這使我得到了這個答案:https://stackoverflow.com/questions/18191708/why-iosnoop-io-snooping-files-on-disk-returns-paths-with-question-marks

它為我提供了這個神奇的命令 sudo dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }'

該命令只給你 io, read 實際上,我相信,顯然也執行了每個syscall::open*:entry.我不確定如何挑選出 git,但進程名稱在輸出中很容易識別,因此使用該命令來比較sudo git submodule和的 IOgit submodule

結果如下:

# git submodule
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  2    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  2    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  2    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x10b832652) in action #2 at DIF offset 12
  2    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  2    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  2    957              open_nocancel:entry git .
  2    957              open_nocancel:entry git /usr/local/etc/gitconfig
  0    171                       open:entry sh /dev/dtracehelper
  4    171                       open:entry sh /dev/tty
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-submodule
  2    171                       open:entry basename /dev/dtracehelper
  4    171                       open:entry sed /dev/dtracehelper
  2    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  2    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_TIME
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-setup
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  4    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  4    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  4    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x10f47f652) in action #2 at DIF offset 12
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n
  0    957              open_nocancel:entry ReportCrash /bin
sudo git submodule
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  2    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  2    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  2    171                       open:entry git /dev/dtracehelper
  6    957              open_nocancel:entry git /etc/master.passwd
  4    171                       open:entry git /dev/autofs_nowait
  4    171                       open:entry git /var/root/.CFUserTextEncoding
  4    957              open_nocancel:entry git /etc/master.passwd
  4    171                       open:entry git /dev/autofs_nowait
  4    171                       open:entry git /var/root/.CFUserTextEncoding
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x107dd7652) in action #2 at DIF offset 12
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry git .
  4    957              open_nocancel:entry git /usr/local/etc/gitconfig
  0    171                       open:entry sh /dev/dtracehelper
  4    171                       open:entry sh /dev/tty
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    957              open_nocancel:entry sh .
  4    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-submodule
  4    171                       open:entry basename /dev/dtracehelper
  2    171                       open:entry sed /dev/dtracehelper
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-setup
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  0    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  0    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  0    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x10af1c652) in action #2 at DIF offset 12
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  2    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n
  2    171                       open:entry sh /dev/null
  2    171                       open:entry sh /opt/local/bin/gettext.sh
  0    171                       open:entry sh /dev/null
  0    171                       open:entry sh /dev/null
  4    171                       open:entry basename /dev/dtracehelper
  2    171                       open:entry sed /dev/dtracehelper
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_TIME
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    957              open_nocancel:entry taskgated /opt/local/bin
  2    957              open_nocancel:entry taskgated /opt/local/bin
  2    171                       open:entry taskgated /opt/local/bin/gettext
  2    171                       open:entry gettext /opt/local/lib/libintl.8.dylib
  2    171                       open:entry gettext /opt/local/lib/libiconv.2.dylib
  2    171                       open:entry gettext /dev/dtracehelper
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    171                       open:entry taskgated /opt/local/bin/envsubst
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  6    171                       open:entry envsubst /opt/local/lib/libintl.8.dylib
  4    957              open_nocancel:entry gettext /opt/local/share/locale/locale.alias
  6    171                       open:entry envsubst /opt/local/lib/libiconv.2.dylib
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en_AU.UTF-8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en_AU.utf8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en_AU/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en.UTF-8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en.utf8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en/LC_MESSAGES/git.mo
  6    171                       open:entry envsubst /dev/dtracehelper
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    171                       open:entry taskgated /opt/local/bin/envsubst
  6    171                       open:entry envsubst /opt/local/lib/libintl.8.dylib
  6    171                       open:entry envsubst /opt/local/lib/libiconv.2.dylib
  6    171                       open:entry envsubst /dev/dtracehelper
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_TIME
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    171                       open:entry uname /dev/dtracehelper
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  0    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  0    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  0    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x101b2d652) in action #2 at DIF offset 12
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    957              open_nocancel:entry git .
  0    957              open_nocancel:entry git /usr/local/Cellar/gettext/0.19.8.1/share/locale/locale.alias
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en_AU.UTF-8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en_AU.utf8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en_AU/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en.UTF-8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en.utf8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en/LC_MESSAGES/git.mo

這讓我可以逐行比較每個命令的 IOps,從而得出命令的非常清晰的分支點 2 171 open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n

所以我進入 ??/git-sh-i18n 並添加了一些echo "debug n"行來找出發生段錯誤的位置

事實證明它發生在一行test -z,而它沒有崩潰的原因sudo git submodule是因為 sudo 打開了一個新的 shell。

所以...

是的......供將來參考......這是錯誤的唯一谷歌搜尋結果:git-submodule dead of signal 11

但嘿,我不需要這 10 小時的生命

編輯:所以我發現運行sudo git submodule有效,所以這是一個權限錯誤,我做了一個 dtruss 跟踪,您可以在此處閱讀,https://pastebin.com/k1qNCsTY

但我不知道 dtruss 是如何工作的,所以我無法弄清楚哪個 fs 物件正在以錯誤的權限訪問,看起來它試圖在拋出1477/0x3e98: write_nocancel(0x1, "/usr/local/Cellar/git/2.21.0/libexec/git-core\n\b\0", 0x2E) = 46 0錯誤之前訪問1471/0x3e8b: write_nocancel(0x2, "error: git-submodule died of signal 11\n\0", 0x27) = 39 0,但我不知道 write_nocancel 是什麼意思,

事實證明 git-submodule 駐留在裡面libexec/git-core並且權限是

lopu@lopu-pro:~/tmp/test2$ ls -l /usr/local/Cellar/git/2.21.0/libexec/git-core/ | grep submodule -rwxr-xr-x 1 lopu admin 23373 25 Feb 03:31 git-submodule

在我的電腦上

結束編輯。

截至昨天,我遇到了一個非常奇怪的問題。

軟體規格是

作業系統:OS X 10.13.4

git:2.21.0

節點:10.15.3

npm:6.4.1

珀爾:5.18.2

我遇到的問題是git submodule update在系統中的任何位置運行都會回傳錯誤error: git-submodule died of signal 11

當我嘗試從 git 儲存庫 url 安裝 npm 模組時,我發現了這個錯誤

例如

mkdir test ; cd test ; npm init -y
npm i lopugit/test# https://github.com/lopugit/test if you want to take a look, literally an empty npm package

對我來說,這就帶來了

lopu@lopu-pro:~/tmp/test2$ npm i lopugit/test
npm ERR! code 139
npm ERR! Command failed: /usr/local/bin/git submodule update -q --init --recursive
npm ERR! error: git-submodule died of signal 11
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/lopu/.npm/_logs/2019-03-31T10_48_41_525Z-debug.log
# /Users/lopu/.npm/_logs/2019-03-31T10_48_41_525Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/lopu/.nvm/versions/node/v10.15.3/bin/node',
1 verbose cli   '/Users/lopu/.nvm/versions/node/v10.15.3/bin/npm',
1 verbose cli   'i',
1 verbose cli   'lopugit/test' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 24a6679416e47473
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for github:lopugit/test Command failed: /usr/local/bin/git submodule update -q --init --recursive
7 silly fetchPackageMetaData error: git-submodule died of signal 11
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 2532ms
10 verbose stack Error: Command failed: /usr/local/bin/git submodule update -q --init --recursive
10 verbose stack error: git-submodule died of signal 11
10 verbose stack
10 verbose stack     at ChildProcess.exithandler (child_process.js:294:12)
10 verbose stack     at ChildProcess.emit (events.js:189:13)
10 verbose stack     at maybeClose (internal/child_process.js:970:16)
10 verbose stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
10 verbose stack     at Socket.emit (events.js:189:13)
10 verbose stack     at Pipe._handle.close (net.js:597:12)
11 verbose cwd /Users/lopu/tmp/test2
12 verbose Darwin 17.5.0
13 verbose argv "/Users/lopu/.nvm/versions/node/v10.15.3/bin/node" "/Users/lopu/.nvm/versions/node/v10.15.3/bin/npm" "i" "lopugit/test"
14 verbose node v10.15.3
15 verbose npm  v6.4.1
16 error code 139
17 error Command failed: /usr/local/bin/git submodule update -q --init --recursive
17 error error: git-submodule died of signal 11
18 verbose exit [ 1, true ]

我想也許是perl,但是在osx上你不能更新perl,我研究了activeperl,但這意味著改變git使用的perl版本。

有人知道這可能是什麼?

我嘗試用​​這個修復 perl: sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'

並透過應用程式商店更新 xcode。

讓我認為這是一個 perl 問題的是,當我考慮升級 perl 時,我嘗試安裝brewperl,這導致我在安裝後運行這個命令

brewperl install-5.18.1

取得此錯誤日誌文件

Auto-guessed '5.18.1'
patching Configure
patching ext/Errno/Errno_pm.PL
sh: line 1:  2709 Segmentation fault: 11  sh Configure -de '-Dprefix=/Users/lopu/perl5/perlbrew/perls/perl-5.18.1' '-A'eval:scriptdir=/Users/lopu/perl5/perlbrew/perls/perl-5.18.1/bin''
##### Brew Failed #####

我還做了 dtruss 跟踪並得到了這個

https://pastebin.com/k1qNCsTY

違反 30000 個超級使用者字元限制

天哪,以 sudo 運行使其工作,一定是權限問題...

答案1

長話短說,我的個人.bashrc資料有以下功能:

test() { npm run test $1 $2 $3 $4 ;}; export -f test

但!

您可能會問,我是如何追蹤到這一點的?

好吧,在使用 iosnoop 進行一些挖掘之後,我查找了為什麼 iosnoop 在路徑中給出??'s ,這使我得到了這個答案:https://stackoverflow.com/questions/18191708/why-iosnoop-io-snooping-files-on-disk-returns-paths-with-question-marks

它為我提供了這個神奇的命令 sudo dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }'

該命令只給你 io, read 實際上,我相信,顯然也執行了每個syscall::open*:entry.我不確定如何挑選出 git,但進程名稱在輸出中很容易識別,因此使用該命令來比較sudo git submodule和的 IOgit submodule

結果如下:

# git submodule
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  2    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  2    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  2    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x10b832652) in action #2 at DIF offset 12
  2    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  2    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  2    957              open_nocancel:entry git .
  2    957              open_nocancel:entry git /usr/local/etc/gitconfig
  0    171                       open:entry sh /dev/dtracehelper
  4    171                       open:entry sh /dev/tty
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-submodule
  2    171                       open:entry basename /dev/dtracehelper
  4    171                       open:entry sed /dev/dtracehelper
  2    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  2    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_TIME
  1    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-setup
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  4    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  4    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  4    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x10f47f652) in action #2 at DIF offset 12
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n
  0    957              open_nocancel:entry ReportCrash /bin
sudo git submodule
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  2    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  2    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  2    171                       open:entry git /dev/dtracehelper
  6    957              open_nocancel:entry git /etc/master.passwd
  4    171                       open:entry git /dev/autofs_nowait
  4    171                       open:entry git /var/root/.CFUserTextEncoding
  4    957              open_nocancel:entry git /etc/master.passwd
  4    171                       open:entry git /dev/autofs_nowait
  4    171                       open:entry git /var/root/.CFUserTextEncoding
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x107dd7652) in action #2 at DIF offset 12
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry git .
  4    957              open_nocancel:entry git /usr/local/etc/gitconfig
  0    171                       open:entry sh /dev/dtracehelper
  4    171                       open:entry sh /dev/tty
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry sh /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    957              open_nocancel:entry sh .
  4    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-submodule
  4    171                       open:entry basename /dev/dtracehelper
  2    171                       open:entry sed /dev/dtracehelper
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  4    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-setup
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  2    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  0    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  0    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  0    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x10af1c652) in action #2 at DIF offset 12
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  2    171                       open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n
  2    171                       open:entry sh /dev/null
  2    171                       open:entry sh /opt/local/bin/gettext.sh
  0    171                       open:entry sh /dev/null
  0    171                       open:entry sh /dev/null
  4    171                       open:entry basename /dev/dtracehelper
  2    171                       open:entry sed /dev/dtracehelper
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_TIME
  6    957              open_nocancel:entry sed /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    957              open_nocancel:entry taskgated /opt/local/bin
  2    957              open_nocancel:entry taskgated /opt/local/bin
  2    171                       open:entry taskgated /opt/local/bin/gettext
  2    171                       open:entry gettext /opt/local/lib/libintl.8.dylib
  2    171                       open:entry gettext /opt/local/lib/libiconv.2.dylib
  2    171                       open:entry gettext /dev/dtracehelper
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    171                       open:entry taskgated /opt/local/bin/envsubst
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry gettext /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  6    171                       open:entry envsubst /opt/local/lib/libintl.8.dylib
  4    957              open_nocancel:entry gettext /opt/local/share/locale/locale.alias
  6    171                       open:entry envsubst /opt/local/lib/libiconv.2.dylib
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en_AU.UTF-8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en_AU.utf8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en_AU/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en.UTF-8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en.utf8/LC_MESSAGES/git.mo
  4    171                       open:entry gettext /usr/local/Cellar/git/2.21.0/share/locale/en/LC_MESSAGES/git.mo
  6    171                       open:entry envsubst /dev/dtracehelper
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_TIME
  4    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    957              open_nocancel:entry taskgated /opt/local/bin
  0    171                       open:entry taskgated /opt/local/bin/envsubst
  6    171                       open:entry envsubst /opt/local/lib/libintl.8.dylib
  6    171                       open:entry envsubst /opt/local/lib/libiconv.2.dylib
  6    171                       open:entry envsubst /dev/dtracehelper
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_TIME
  6    957              open_nocancel:entry envsubst /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  2    171                       open:entry uname /dev/dtracehelper
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_COLLATE
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_MONETARY
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_NUMERIC
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry uname /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    957              open_nocancel:entry taskgated /usr/local/Cellar/git/2.21.0/bin
  0    171                       open:entry taskgated /usr/local/Cellar/git/2.21.0/bin/git
  0    171                       open:entry git /usr/local/opt/pcre2/lib/libpcre2-8.0.dylib
  0    171                       open:entry git /usr/local/opt/gettext/lib/libintl.8.dylib
  0    171                       open:entry git /dev/dtracehelper
dtrace: error on enabled probe ID 7 (ID 171: syscall::open:entry): invalid address (0x101b2d652) in action #2 at DIF offset 12
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_MESSAGES/LC_MESSAGES
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_TIME
  0    957              open_nocancel:entry git /usr/share/locale/en_AU.UTF-8/LC_CTYPE
  0    957              open_nocancel:entry git .
  0    957              open_nocancel:entry git /usr/local/Cellar/gettext/0.19.8.1/share/locale/locale.alias
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en_AU.UTF-8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en_AU.utf8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en_AU/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en.UTF-8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en.utf8/LC_MESSAGES/git.mo
  0    171                       open:entry git /usr/local/Cellar/git/2.21.0/share/locale/en/LC_MESSAGES/git.mo

這讓我可以逐行比較每個命令的 IOps,從而得出命令的非常清晰的分支點 2 171 open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n

所以我進入 ??/git-sh-i18n 並添加了一些echo "debug n"行來找出發生段錯誤的位置

事實證明它發生在一行test -z,而它沒有崩潰的原因sudo git submodule是因為 sudo 打開了一個新的 shell。

所以...

是的......供將來參考......這是錯誤的唯一谷歌搜尋結果:git-submodule dead of signal 11

但是,嘿,我不需要這 10 小時的生命

相關內容