Skip to content

Instantly share code, notes, and snippets.

@belonesox
Created February 9, 2024 04:41
Show Gist options
  • Select an option

  • Save belonesox/df24d03c7db9681dc19cc6eea32d4938 to your computer and use it in GitHub Desktop.

Select an option

Save belonesox/df24d03c7db9681dc19cc6eea32d4938 to your computer and use it in GitHub Desktop.
strace-go-build-01
[pid 286726] newfstatat(AT_FDCWD, "/usr/lib/golang/pkg/tool/linux_amd64/buildid", {st_mode=S_IFREG|0755, st_size=2549500, ...}, 0) = 0
/usr/lib/golang/pkg/tool/linux_amd64/buildid -w $WORK/b855/_pkg_.a # internal
[pid 286837] newfstatat(AT_FDCWD, "/home/stas/.cache/go-build/e3/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-d", {st_mode=S_IFREG|0644, st_size=0, ...}, 0) = 0
[pid 286837] openat(AT_FDCWD, "/home/stas/.cache/go-build/e3/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-d", O_RDONLY|O_CLOEXEC) = 3
[pid 286837] openat(AT_FDCWD, "/home/stas/.cache/go-build/5b/5be0a9afd5d9181c8f7d133ef2c02b11bc73fc9379cce5056191c67df81b36e8-a", O_WRONLY|O_CREAT|O_CLOEXEC, 0666) = 3
[pid 286837] utimensat(AT_FDCWD, "/home/stas/.cache/go-build/5b/5be0a9afd5d9181c8f7d133ef2c02b11bc73fc9379cce5056191c67df81b36e8-a", [{tv_sec=1707315301, tv_nsec=395381622} /* 2024-02-07T17:15:01.395381622+0300 */, {tv_sec=1707315301, tv_nsec=395381699} /* 2024-02-07T17:15:01.395381699+0300 */], 0) = 0
[pid 286837] openat(AT_FDCWD, "/tmp/go-build2623159924/b855/_pkg_.a", O_RDONLY|O_CLOEXEC) = 3
[pid 286837] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=286726, si_uid=1000} ---
[pid 286837] openat(AT_FDCWD, "/tmp/go-build2623159924/b855/_pkg_.a", O_RDWR|O_CLOEXEC) = 3
[pid 286837] openat(AT_FDCWD, "/tmp/go-build2623159924/b855/_pkg_.a", O_RDONLY|O_CLOEXEC) = 3
[pid 286837] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=286726, si_uid=1000} ---
[pid 286837] --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=286726, si_uid=1000} ---
[pid 286837] newfstatat(AT_FDCWD, "/home/stas/.cache/go-build/d3/d36285adc99a8d1ab05376fc821751be51099cfff2f151658295641526e8df56-d", {st_mode=S_IFREG|0644, st_size=3173176, ...}, 0) = 0
[pid 286837] openat(AT_FDCWD, "/home/stas/.cache/go-build/d3/d36285adc99a8d1ab05376fc821751be51099cfff2f151658295641526e8df56-d", O_RDONLY|O_CLOEXEC) = 8
[pid 286726] openat(AT_FDCWD, "/home/stas/.cache/go-build/b7/b70b9db40389b0c0a130a4429ddc4a7e6a2ac43ec28bc0f6b81e7e1056c66ab0-a", O_WRONLY|O_CREAT|O_CLOEXEC, 0666) = 8
[pid 286726] utimensat(AT_FDCWD, "/home/stas/.cache/go-build/b7/b70b9db40389b0c0a130a4429ddc4a7e6a2ac43ec28bc0f6b81e7e1056c66ab0-a", [{tv_sec=1707315301, tv_nsec=473999875} /* 2024-02-07T17:15:01.473999875+0300 */, {tv_sec=1707315301, tv_nsec=473999958} /* 2024-02-07T17:15:01.473999958+0300 */], 0) = 0
[pid 286726] newfstatat(AT_FDCWD, "/home/stas/.cache/go-build/d3/d36285adc99a8d1ab05376fc821751be51099cfff2f151658295641526e8df56-d", {st_mode=S_IFREG|0644, st_size=3173176, ...}, 0) = 0
cp $WORK/b855/_pkg_.a /home/stas/.cache/go-build/d3/d36285adc99a8d1ab05376fc821751be51099cfff2f151658295641526e8df56-d # internal
[pid 286726] openat(AT_FDCWD, "/home/stas/.cache/go-build/trim.txt", O_RDONLY|O_CLOEXEC) = 3
[pid 286837] +++ exited with 1 +++
[pid 286729] +++ exited with 1 +++
[pid 286728] +++ exited with 1 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment