error: git-submodule murió debido a la señal 11

error: git-submodule murió debido a la señal 11

Edición FML: Entonces... para resumir, era una función que tenía en mi perfil bashrc... test() { npm run test $1 $2 $3 $4 ;}; exportar -f prueba

¡Pero!

¿Cómo rastreé esto?, te preguntarás.

Bueno, después de investigar un poco con iosnoop, busqué por qué iosnoop daba ??'s en las rutas, lo que me llevó a esta respuesta:https://stackoverflow.com/questions/18191708/why-iosnoop-io-snooping-files-on-disk-returns-paths-with-question-marks

que me proporcionó este comando mágico sudo dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }'

Ese comando solo te proporciona io, read en realidad, aparentemente también se ejecuta, creo, de cada syscall::open*:entry. No estaba seguro de cómo seleccionar git, pero el nombre del proceso es bastante fácil de identificar en el resultado, así que usé ese comando para comparar el IO de sudo git submoduleygit submodule

Y los resultados fueron los siguientes:

# 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

Esto me permite comparar línea por línea los IOps de cada comando, lo que lleva al punto de bifurcación muy claro del comando. 2 171 open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n

así que entré en ??/git-sh-i18n y agregué algunas echo "debug n"líneas para descubrir dónde estaba ocurriendo la falla de segmento

Resultó que estaba ocurriendo en una test -zlínea, y la razón por la que no falló sudo git submodulees porque sudo abre un nuevo shell.

entonces...

sí... para referencia futura... este es el único resultado de búsqueda de error en Google: git-submodule murió debido a la señal 11

Pero bueno, no necesitaba esas 10 horas de vida

Editar: Descubrí que la ejecución sudo git submodulefunciona, por lo que es un error de permiso. Hice un seguimiento de dtruss que puedes leer aquí.https://pastebin.com/k1qNCsTY

Pero no tengo idea de cómo funciona dtruss, por lo que no puedo determinar a qué objeto fs se accede con los permisos incorrectos. Parece que intenta acceder 1477/0x3e98: write_nocancel(0x1, "/usr/local/Cellar/git/2.21.0/libexec/git-core\n\b\0", 0x2E) = 46 0justo antes de que 1471/0x3e8b: write_nocancel(0x2, "error: git-submodule died of signal 11\n\0", 0x27) = 39 0se produzca el error, pero no sé qué significa write_nocancel.

Resulta que git-submodule reside dentro libexec/git-corey los permisos son

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

en mi computadora

Finalizar edición.

Tengo un problema súper extraño desde ayer.

Las especificaciones del software son

Sistema operativo: OS X 10.13.4

Git: 2.21.0

Nodo: 10.15.3

NPM: 6.4.1

Perl: 5.18.2

Lo que me encuentro es un problema en el que al ejecutar git submodule updateen cualquier parte de mi sistema se devuelve el error.error: git-submodule died of signal 11

Descubrí este error cuando intenté instalar un módulo npm desde la URL del repositorio git

Por ejemplo

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

para mí, esto trae a colación

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 ]

Pensé que tal vez era Perl, pero en OSX no se puede actualizar Perl. Busqué en activeperl, pero eso significaría cambiar la versión de Perl que usa git.

¿Alguien tiene alguna idea de qué podría ser esto?

Intenté arreglar Perl con esto: sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'

y actualizar xcode a través de la tienda de aplicaciones.

Lo que me hace pensar que es un problema de Perl es que cuando estaba pensando en actualizar Perl, intenté instalar Brewperl, lo que me llevó a ejecutar este comando después de instalarlo.

brewperl install-5.18.1

obteniendo este archivo de registro de errores

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 #####

También hice un rastreo de armadura y obtuve esto.

https://pastebin.com/k1qNCsTY

infringe el límite de 30000 caracteres de superusuario

Santa mierda, ejecutar como sudo hace que funcione, debe ser un problema de permisos.....

Respuesta1

En pocas palabras, era la siguiente función que tenía en mi .bashrcperfil:

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

¡Pero!

¿Cómo rastreé esto?, te preguntarás.

Bueno, después de investigar un poco con iosnoop, busqué por qué iosnoop daba ??'s en las rutas, lo que me llevó a esta respuesta:https://stackoverflow.com/questions/18191708/why-iosnoop-io-snooping-files-on-disk-returns-paths-with-question-marks

que me proporcionó este comando mágico sudo dtrace -n 'syscall::open*:entry { printf("%s %s",execname,copyinstr(arg0)); }'

Ese comando solo te proporciona io, read en realidad, aparentemente también se ejecuta, creo, de cada syscall::open*:entry. No estaba seguro de cómo seleccionar git, pero el nombre del proceso es bastante fácil de identificar en el resultado, así que usé ese comando para comparar el IO de sudo git submoduleygit submodule

Y los resultados fueron los siguientes:

# 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

Esto me permite comparar línea por línea los IOps de cada comando, lo que lleva al punto de bifurcación muy claro del comando. 2 171 open:entry sh /usr/local/Cellar/git/2.21.0/libexec/git-core/git-sh-i18n

así que entré en ??/git-sh-i18n y agregué algunas echo "debug n"líneas para descubrir dónde estaba ocurriendo la falla de segmento

Resultó que estaba ocurriendo en una test -zlínea, y la razón por la que no falló sudo git submodulees porque sudo abre un nuevo shell.

entonces...

sí... para referencia futura... este es el único resultado de búsqueda de error en Google: git-submodule murió debido a la señal 11

Pero bueno, no necesitaba esas 10 horas de vida

información relacionada