Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created March 22, 2018 21:11
Show Gist options
  • Save LnL7/e6b613f4016a60c3c478d4c078af8212 to your computer and use it in GitHub Desktop.
Save LnL7/e6b613f4016a60c3c478d4c078af8212 to your computer and use it in GitHub Desktop.
[pid 13220] chown("/tmp/nix-build-foo.drv-0/.attr-0", 30001, 30000) = 0
[pid 13220] lstat("/homeless-shelter", 0x7fffac5c1d50) = -1 ENOENT (No such file or directory)
[pid 13220] lstat("/nix/var/log/nix/drvs/x1/", {st_mode=S_IFDIR|0755, st_size=3, ...}) = 0
[pid 13220] openat(AT_FDCWD, "/nix/var/log/nix/drvs/x1//2z2wx6ii1addhgaksmhqypcb1s9yzq-foo.drv.bz2", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 11
[pid 13220] mmap(NULL, 3600384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc6419f0000
[pid 13220] mmap(NULL, 3600384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc641681000
[pid 13220] mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc648954000
[pid 13220] pipe2([12, 13], O_CLOEXEC) = 0
[pid 13220] clone(strace: Process 13227 attached
child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fc6489a3890) = 82
[pid 13227] set_robust_list(0x7fc6489a38a0, 24 <unfinished ...>
[pid 13220] close(13 <unfinished ...>
[pid 13227] <... set_robust_list resumed> ) = 0
[pid 13220] <... close resumed> ) = 0
[pid 13220] read(12, <unfinished ...>
[pid 13227] ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
[pid 13227] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
[pid 13227] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 13227] setsid() = 82
[pid 13227] dup2(13, 2) = 2
[pid 13227] dup2(2, 1) = 1
[pid 13227] openat(AT_FDCWD, "/dev/null", O_RDWR) = 14
[pid 13227] dup2(14, 0) = 0
[pid 13227] close(14) = 0
[pid 13227] brk(0x25bd000) = 0x25bd000
[pid 13227] prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) = 0
[pid 13227] seccomp(SECCOMP_SET_MODE_STRICT, 1, NULL) = -1 EINVAL (Invalid argument)
[pid 13227] seccomp(SECCOMP_SET_MODE_FILTER, 0, {len=45, filter=0x259cde0}) = 0
[pid 13227] chdir("/tmp/nix-build-foo.drv-0") = 0
[pid 13227] open("/proc/self/fd", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 14
[pid 13227] fstat(14, {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0
[pid 13227] getdents(14, /* 17 entries */, 32768) = 408
[pid 13227] getdents(14, /* 0 entries */, 32768) = 0
[pid 13227] close(14) = 0
[pid 13227] close(3) = 0
[pid 13227] close(4) = 0
[pid 13227] close(5) = 0
[pid 13227] close(6) = 0
[pid 13227] close(7) = 0
[pid 13227] close(8) = 0
[pid 13227] close(9) = 0
[pid 13227] close(10) = 0
[pid 13227] close(11) = 0
[pid 13227] close(12) = 0
[pid 13227] close(13) = 0
[pid 13227] close(14) = -1 EBADF (Bad file descriptor)
[pid 13227] uname({sysname="Linux", nodename="2cbe892b0585", ...}) = 0
[pid 13227] personality(0xffffffff) = 0 (PER_LINUX)
[pid 13227] personality(PER_LINUX|ADDR_NO_RANDOMIZE) = 0 (PER_LINUX)
[pid 13227] prlimit64(0, RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM64_INFINITY}, NULL) = 0
[pid 13227] setgroups(1, [30000]) = 0
[pid 13227] setgid(30000) = 0
[pid 13227] getgid() = 30000
[pid 13227] getegid() = 30000
[pid 13227] setuid(30001) = 0
[pid 13227] getuid() = 30001
[pid 13227] geteuid() = 30001
[pid 13227] write(2, "\1\n", 2) = 2
[pid 13220] <... read resumed> "\1", 1) = 1
[pid 13227] execve("/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash", ["bash", "-e", "/nix/store/9krlzvny65gdc8s7kpb6l"...], 0x2538f30 /* 31 vars */ <unfinished ...>
[pid 13220] read(12, <unfinished ...>
[pid 13227] <... execve resumed> ) = -1 EACCES (Permission denied)
[pid 13220] <... read resumed> "\n", 1) = 1
[pid 13220] write(2, "building '/nix/store/x12z2wx6ii1"..., 66) = 66
[pid 13220] select(13, [12], NULL, NULL, NULL <unfinished ...>
[pid 13227] write(2, "\1while setting up the build envi"..., 138) = 138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment