Skip to content

Instantly share code, notes, and snippets.

@keithpitt
Created October 13, 2015 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keithpitt/041b1534f1b15fb86731 to your computer and use it in GitHub Desktop.
Save keithpitt/041b1534f1b15fb86731 to your computer and use it in GitHub Desktop.
execve("./pty-test", ["./pty-test"], [/* 21 vars */]) = 0
arch_prctl(ARCH_SET_FS, 0x5fb988) = 0
sched_getaffinity(0, 8192, {1, 0, 0, 0}) = 32
mmap(0xc000000000, 65536, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc000000000
munmap(0xc000000000, 65536) = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f8851a000
mmap(0xc820000000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc820000000
mmap(0xc81fff8000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc81fff8000
mmap(0xc000000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc000000000
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f8850a000
clock_gettime(CLOCK_MONOTONIC, {64335, 902829756}) = 0
mmap(NULL, 1439992, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f883aa000
clock_gettime(CLOCK_MONOTONIC, {64335, 903458933}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 903615363}) = 0
sigaltstack({ss_sp=0xc820002000, ss_flags=0, ss_size=32672}, NULL) = 0
gettid() = 6727
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGHUP, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGILL, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGILL, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGTRAP, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTRAP, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGABRT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGABRT, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGUSR1, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR1, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGUSR2, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR2, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGPIPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGALRM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGSTKFLT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSTKFLT, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGURG, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGURG, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGXCPU, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXCPU, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGXFSZ, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXFSZ, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGVTALRM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGVTALRM, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGPROF, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPROF, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGIO, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGIO, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGPWR, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPWR, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGSYS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSYS, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRTMIN, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRTMIN, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_1, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_1, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_2, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_2, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_3, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_3, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_4, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_4, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_5, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_5, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_6, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_6, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_7, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_7, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_8, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_8, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_9, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_9, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_10, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_10, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_11, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_11, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_12, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_12, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_13, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_13, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_14, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_14, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_15, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_15, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_16, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_16, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_17, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_17, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_18, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_18, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_19, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_19, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_20, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_20, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_21, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_21, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_22, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_22, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_23, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_23, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_24, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_24, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_25, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_25, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_26, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_26, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_27, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_27, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_28, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_28, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_29, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_29, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_30, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_30, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_31, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_31, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
rt_sigaction(SIGRT_32, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_32, {0x456e60, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x456e80}, NULL, 8) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 927624758}) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0
clone(child_stack=0xc82003bfc0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD) = 6728
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7f8836a000
clock_gettime(CLOCK_MONOTONIC, {64335, 928735995}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 928882899}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929019052}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929130529}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929240282}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929349219}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929457612}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929565349}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929673806}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929783722}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 929891722}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 930010952}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 930223353}) = 0
clock_gettime(CLOCK_MONOTONIC, {64335, 930372229}) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0
clone(child_stack=0xc820037fc0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD) = 6729
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x5d8750, FUTEX_WAIT, 0, NULLProcess 6728 attached
<unfinished ...>
[pid 6728] gettid() = 6728
[pid 6728] arch_prctl(ARCH_SET_FS, 0xc82002c080) = 0
[pid 6728] sigaltstack({ss_sp=0xc82002e000, ss_flags=0, ss_size=32672}, NULL) = 0
[pid 6728] gettid() = 6728
[pid 6728] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 932188543}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20}Process 6729 attached
) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 932576714}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 569942291}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] gettid( <unfinished ...>
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 933120754}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 570476941}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] <... gettid resumed> ) = 6729
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 933624374}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 570979851}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] arch_prctl(ARCH_SET_FS, 0xc82002c500 <unfinished ...>
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 934164814}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 571519725}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] <... arch_prctl resumed> ) = 0
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 934668144}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 572023955}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] sigaltstack({ss_sp=0xc820046000, ss_flags=0, ss_size=32672} <unfinished ...>
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6729] <... sigaltstack resumed> , NULL) = 0
[pid 6728] clock_gettime(CLOCK_MONOTONIC, <unfinished ...>
[pid 6729] gettid( <unfinished ...>
[pid 6728] <... clock_gettime resumed> {64335, 935323445}) = 0
[pid 6729] <... gettid resumed> ) = 6729
[pid 6728] clock_gettime(CLOCK_REALTIME, <unfinished ...>
[pid 6729] rt_sigprocmask(SIG_SETMASK, [], <unfinished ...>
[pid 6728] <... clock_gettime resumed> {1444710912, 572866735}) = 0
[pid 6729] <... rt_sigprocmask resumed> NULL, 8) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] futex(0x5d8750, FUTEX_WAKE, 1 <unfinished ...>
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6729] <... futex resumed> ) = 1
[pid 6728] clock_gettime(CLOCK_MONOTONIC, <unfinished ...>
[pid 6729] futex(0xc82002c590, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 6728] <... clock_gettime resumed> {64335, 936320425}) = 0
[pid 6727] <... futex resumed> ) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, <unfinished ...>
[pid 6727] stat(".", <unfinished ...>
[pid 6728] <... clock_gettime resumed> {1444710912, 574403319}) = 0
[pid 6727] <... stat resumed> {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 6728] futex(0xc82002c590, FUTEX_WAKE, 1 <unfinished ...>
[pid 6727] futex(0x5d8750, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 6729] <... futex resumed> ) = 0
[pid 6728] <... futex resumed> ) = 1
[pid 6729] stat("/root", <unfinished ...>
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] <... stat resumed> {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6729] openat(AT_FDCWD, "/dev/ptmx", O_RDWR|O_CLOEXEC <unfinished ...>
[pid 6728] clock_gettime(CLOCK_MONOTONIC, <unfinished ...>
[pid 6729] <... openat resumed> ) = 3
[pid 6728] <... clock_gettime resumed> {64335, 938560673}) = 0
[pid 6729] ioctl(3, TIOCGPTN <unfinished ...>
[pid 6728] clock_gettime(CLOCK_REALTIME, <unfinished ...>
[pid 6729] <... ioctl resumed> , [2]) = 0
[pid 6728] <... clock_gettime resumed> {1444710912, 576148924}) = 0
[pid 6729] ioctl(3, TIOCSPTLCK <unfinished ...>
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] <... ioctl resumed> , [0]) = 0
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6729] openat(AT_FDCWD, "/dev/pts/2", O_RDWR|O_NOCTTY|O_CLOEXEC <unfinished ...>
[pid 6728] clock_gettime(CLOCK_MONOTONIC, <unfinished ...>
[pid 6729] <... openat resumed> ) = 4
[pid 6728] <... clock_gettime resumed> {64335, 939646330}) = 0
[pid 6729] pipe2( <unfinished ...>
[pid 6728] clock_gettime(CLOCK_REALTIME, <unfinished ...>
[pid 6729] <... pipe2 resumed> [5, 6], O_CLOEXEC) = 0
[pid 6728] <... clock_gettime resumed> {1444710912, 577353961}) = 0
[pid 6729] getpid() = 6727
[pid 6729] clone( <unfinished ...>
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6729] <... clone resumed> child_stack=0, flags=SIGCHLD) = 6730
[pid 6729] close(6 <unfinished ...>
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6729] <... close resumed> ) = 0
[pid 6729] read(5, <unfinished ...>
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 941273387}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 578610488}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20}Process 6730 attached
) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 941694071}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 579030661}) = 0
[pid 6728] futex(0x5d8750, FUTEX_WAKE, 1) = 1
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6727] <... futex resumed> ) = 0
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 942280554}) = 0
[pid 6728] futex(0x5d81c0, FUTEX_WAIT, 0, {60, 0} <unfinished ...>
[pid 6727] futex(0x5d8750, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 6730] setsid() = 6730
[pid 6730] setpgid(0, 0) = -1 EPERM (Operation not permitted)
[pid 6730] write(6, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 6730] _exit(253) = ?
[pid 6730] +++ exited with 253 +++
[pid 6729] <... read resumed> "\1\0\0\0\0\0\0\0", 8) = 8
[pid 6729] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6730, si_status=253, si_utime=0, si_stime=0} ---
[pid 6729] rt_sigreturn() = 8
[pid 6729] futex(0x5d81c0, FUTEX_WAKE, 1) = 1
[pid 6729] close(5) = 0
[pid 6729] wait4(6730, [{WIFEXITED(s) && WEXITSTATUS(s) == 253}], 0, NULL) = 6730
[pid 6729] close(3) = 0
[pid 6729] close(4) = 0
[pid 6729] select(0, NULL, NULL, NULL, {0, 1000} <unfinished ...>
[pid 6728] <... futex resumed> ) = 0
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 944308842}) = 0
[pid 6728] clock_gettime(CLOCK_REALTIME, {1444710912, 581646022}) = 0
[pid 6728] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 6727] <... futex resumed> ) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
[pid 6728] <... select resumed> ) = 0 (Timeout)
[pid 6728] clock_gettime(CLOCK_MONOTONIC, {64335, 944741109}) = 0
[pid 6728] futex(0x5d81c0, FUTEX_WAIT, 0, {60, 0} <unfinished ...>
[pid 6727] futex(0x5d8750, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 6729] <... select resumed> ) = 0 (Timeout)
[pid 6729] select(0, NULL, NULL, NULL, {0, 1000}) = 0 (Timeout)
[pid 6729] write(2, "panic: ", 7panic: ) = 7
[pid 6729] write(2, "fork/exec /root/pty-test.sh: ope"..., 52fork/exec /root/pty-test.sh: operation not permitted) = 52
[pid 6729] write(2, "\n", 1
) = 1
[pid 6729] write(2, "\n", 1
) = 1
[pid 6729] write(2, "goroutine ", 10goroutine ) = 10
[pid 6729] write(2, "1", 11) = 1
[pid 6729] write(2, " [", 2 [) = 2
[pid 6729] write(2, "running", 7running) = 7
[pid 6729] write(2, "]:\n", 3]:
) = 3
[pid 6729] write(2, "main.main", 9main.main) = 9
[pid 6729] write(2, "(", 1() = 1
[pid 6729] write(2, ")\n", 2)
) = 2
[pid 6729] write(2, "\t", 1 ) = 1
[pid 6729] write(2, "/root/pty-test.go", 17/root/pty-test.go) = 17
[pid 6729] write(2, ":", 1:) = 1
[pid 6729] write(2, "24", 224) = 2
[pid 6729] write(2, " +", 2 +) = 2
[pid 6729] write(2, "0x229", 50x229) = 5
[pid 6729] write(2, "\n", 1
) = 1
[pid 6729] exit_group(2) = ?
[pid 6729] +++ exited with 2 +++
[pid 6728] +++ exited with 2 +++
+++ exited with 2 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment