FML 編集: つまり.....長い話を短くすると、これは私の 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、読み取り、実行のみを表示しますsyscall::open*:entry
。git を区別する方法がよくわかりませんでしたが、プロセス名は出力で簡単に識別できるので、そのコマンドを使用して と の IO を比較しましたsudo git submodule
。git 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を1行ずつ比較することができ、コマンドの分岐点が非常に明確になります。
2 171 open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n
そこで、??/git-sh-i18nにnanoコマンドを実行し、echo "debug n"
セグメント違反が発生している場所を特定するためにいくつかの行を追加しました。
それは 1 行で発生していたことが判明しtest -z
、クラッシュしなかった理由はsudo git submodule
sudo が新しいシェルを開くためでした。
それで...
ええ.... 今後の参考までに.... これはエラー「git-submodule がシグナル 11 で死亡しました」の唯一の Google 検索結果です
でも、人生の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: OS X 10.13.4
git: 2.21.0
ノード: 10.15.3
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トレースをやってみましたが、これが出ました
スーパーユーザーの文字数制限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、読み取り、実行のみを表示しますsyscall::open*:entry
。git を区別する方法がよくわかりませんでしたが、プロセス名は出力で簡単に識別できるので、そのコマンドを使用して と の IO を比較しましたsudo git submodule
。git 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を1行ずつ比較することができ、コマンドの分岐点が非常に明確になります。
2 171 open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n
そこで、??/git-sh-i18nにnanoコマンドを実行し、echo "debug n"
セグメント違反が発生している場所を特定するためにいくつかの行を追加しました。
それは 1 行で発生していたことが判明しtest -z
、クラッシュしなかった理由はsudo git submodule
sudo が新しいシェルを開くためでした。
それで...
ええ.... 今後の参考までに.... これはエラー「git-submodule がシグナル 11 で死亡しました」の唯一の Google 検索結果です
でも、人生の10時間なんて必要なかった