错误:git-submodule 因信号 11 而死亡

错误:git-submodule 因信号 11 而死亡

FML 编辑:所以.....长话短说,这是我在 bashrc 配置文件中的一个功能... test() { npm run test $1 $2 $3 $4 ;}; export -f test

但!

你可能会问,我是如何找到这个线索的?

好吧,在对 iosnoop 进行一些挖掘之后,我查找了为什么 iosnoop??在路径中给出 ,这让我得到了这个答案: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,但进程名称在输出中很容易识别,因此使用该命令比较 和 的sudo git submoduleIOgit 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 因信号 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

perl: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??在路径中给出 ,这让我得到了这个答案: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,但进程名称在输出中很容易识别,因此使用该命令比较 和 的sudo git submoduleIOgit 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 因信号 11 而死亡

但是,我并不需要这 10 个小时

相关内容