Skip to content

Instantly share code, notes, and snippets.

@ShapeShifter499
Created May 17, 2019 06:36
Show Gist options
  • Save ShapeShifter499/6de5f8c23bf5c861cff71bbdcf15905d to your computer and use it in GitHub Desktop.
Save ShapeShifter499/6de5f8c23bf5c861cff71bbdcf15905d to your computer and use it in GitHub Desktop.
4776 execve("/usr/bin/flock", ["flock", "somefile", "cat", "somefile"], 0x7fff03a0f750 /* 20 vars */) = 0
4776 brk(NULL) = 0x558c7713e000
4776 arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc3cf18ee0) = -1 EINVAL (Invalid argument)
4776 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
4776 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
4776 fstat(3, {st_mode=S_IFREG|0644, st_size=44828, ...}) = 0
4776 mmap(NULL, 44828, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3e6e20b000
4776 close(3) = 0
4776 openat(AT_FDCWD, "/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
4776 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \0\0\0\0\0\0"..., 832) = 832
4776 fstat(3, {st_mode=S_IFREG|0755, st_size=35096, ...}) = 0
4776 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3e6e209000
4776 mmap(NULL, 39416, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3e6e1ff000
4776 mmap(0x7f3e6e201000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f3e6e201000
4776 mmap(0x7f3e6e205000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f3e6e205000
4776 mmap(0x7f3e6e207000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f3e6e207000
4776 close(3) = 0
4776 openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
4776 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360=\2\0\0\0\0\0"..., 832) = 832
4776 lseek(3, 792, SEEK_SET) = 792
4776 read(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\301\234\210\303;`t,\251\6\340\371\371o\343\33"..., 68) = 68
4776 fstat(3, {st_mode=S_IFREG|0755, st_size=2141720, ...}) = 0
4776 lseek(3, 792, SEEK_SET) = 792
4776 read(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\301\234\210\303;`t,\251\6\340\371\371o\343\33"..., 68) = 68
4776 lseek(3, 864, SEEK_SET) = 864
4776 read(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32) = 32
4776 mmap(NULL, 1852992, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3e6e03a000
4776 mprotect(0x7f3e6e05c000, 1675264, PROT_NONE) = 0
4776 mmap(0x7f3e6e05c000, 1359872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7f3e6e05c000
4776 mmap(0x7f3e6e1a8000, 311296, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16e000) = 0x7f3e6e1a8000
4776 mmap(0x7f3e6e1f5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f3e6e1f5000
4776 mmap(0x7f3e6e1fb000, 13888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3e6e1fb000
4776 close(3) = 0
4776 openat(AT_FDCWD, "/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
4776 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340f\0\0\0\0\0\0"..., 832) = 832
4776 fstat(3, {st_mode=S_IFREG|0755, st_size=155600, ...}) = 0
4776 lseek(3, 808, SEEK_SET) = 808
4776 read(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32) = 32
4776 mmap(NULL, 131528, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3e6e019000
4776 mmap(0x7f3e6e01f000, 61440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f3e6e01f000
4776 mmap(0x7f3e6e02e000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f3e6e02e000
4776 mmap(0x7f3e6e034000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f3e6e034000
4776 mmap(0x7f3e6e036000, 12744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3e6e036000
4776 close(3) = 0
4776 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3e6e016000
4776 arch_prctl(ARCH_SET_FS, 0x7f3e6e016740) = 0
4776 mprotect(0x7f3e6e1f5000, 16384, PROT_READ) = 0
4776 mprotect(0x7f3e6e034000, 4096, PROT_READ) = 0
4776 mprotect(0x7f3e6e207000, 4096, PROT_READ) = 0
4776 mprotect(0x558c75476000, 4096, PROT_READ) = 0
4776 mprotect(0x7f3e6e240000, 4096, PROT_READ) = 0
4776 munmap(0x7f3e6e20b000, 44828) = 0
4776 set_tid_address(0x7f3e6e016a10) = 4776
4776 set_robust_list(0x7f3e6e016a20, 24) = 0
4776 rt_sigaction(SIGRTMIN, {sa_handler=0x7f3e6e01f130, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f3e6e02b4d0}, NULL, 8) = 0
4776 rt_sigaction(SIGRT_1, {sa_handler=0x7f3e6e01f1d0, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f3e6e02b4d0}, NULL, 8) = 0
4776 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
4776 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
4776 brk(NULL) = 0x558c7713e000
4776 brk(0x558c7715f000) = 0x558c7715f000
4776 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
4776 fstat(3, {st_mode=S_IFREG|0644, st_size=5401984, ...}) = 0
4776 mmap(NULL, 5401984, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3e6daef000
4776 close(3) = 0
4776 openat(AT_FDCWD, "somefile", O_RDONLY|O_CREAT|O_NOCTTY, 0666) = 3
4776 flock(3, LOCK_EX) = 0
4776 rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[CHLD], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f3e6e0718b0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
4776 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3e6e016a10) = 4777
4777 set_robust_list(0x7f3e6e016a20, 24) = 0
4776 wait4(4777, <unfinished ...>
4777 execve("/usr/local/sbin/cat", ["cat", "somefile"], 0x7ffc3cf18fe0 /* 20 vars */) = -1 ENOENT (No such file or directory)
4777 execve("/usr/local/bin/cat", ["cat", "somefile"], 0x7ffc3cf18fe0 /* 20 vars */) = -1 ENOENT (No such file or directory)
4777 execve("/usr/bin/cat", ["cat", "somefile"], 0x7ffc3cf18fe0 /* 20 vars */) = 0
4777 brk(NULL) = 0x55603848d000
4777 arch_prctl(0x3001 /* ARCH_??? */, 0x7ffca7d0d770) = -1 EINVAL (Invalid argument)
4777 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
4777 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
4777 fstat(4, {st_mode=S_IFREG|0644, st_size=44828, ...}) = 0
4777 mmap(NULL, 44828, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7efd29af6000
4777 close(4) = 0
4777 openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 4
4777 read(4, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360=\2\0\0\0\0\0"..., 832) = 832
4777 lseek(4, 792, SEEK_SET) = 792
4777 read(4, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\301\234\210\303;`t,\251\6\340\371\371o\343\33"..., 68) = 68
4777 fstat(4, {st_mode=S_IFREG|0755, st_size=2141720, ...}) = 0
4777 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efd29af4000
4777 lseek(4, 792, SEEK_SET) = 792
4777 read(4, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\301\234\210\303;`t,\251\6\340\371\371o\343\33"..., 68) = 68
4777 lseek(4, 864, SEEK_SET) = 864
4777 read(4, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32) = 32
4777 mmap(NULL, 1852992, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7efd2992f000
4777 mprotect(0x7efd29951000, 1675264, PROT_NONE) = 0
4777 mmap(0x7efd29951000, 1359872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x22000) = 0x7efd29951000
4777 mmap(0x7efd29a9d000, 311296, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x16e000) = 0x7efd29a9d000
4777 mmap(0x7efd29aea000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1ba000) = 0x7efd29aea000
4777 mmap(0x7efd29af0000, 13888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7efd29af0000
4777 close(4) = 0
4777 arch_prctl(ARCH_SET_FS, 0x7efd29af5580) = 0
4777 mprotect(0x7efd29aea000, 16384, PROT_READ) = 0
4777 mprotect(0x556036b15000, 4096, PROT_READ) = 0
4777 mprotect(0x7efd29b2b000, 4096, PROT_READ) = 0
4777 munmap(0x7efd29af6000, 44828) = 0
4777 brk(NULL) = 0x55603848d000
4777 brk(0x5560384ae000) = 0x5560384ae000
4777 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 4
4777 fstat(4, {st_mode=S_IFREG|0644, st_size=5401984, ...}) = 0
4777 mmap(NULL, 5401984, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7efd29408000
4777 close(4) = 0
4777 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0), ...}) = 0
4777 openat(AT_FDCWD, "somefile", O_RDONLY) = 4
4777 fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
4777 fadvise64(4, 0, 0, POSIX_FADV_SEQUENTIAL) = 0
4777 mmap(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7efd293e6000
4777 read(4, "", 131072) = 0
4777 munmap(0x7efd293e6000, 139264) = 0
4777 close(4) = 0
4777 close(1) = 0
4777 close(2) = 0
4777 exit_group(0) = ?
4777 +++ exited with 0 +++
4776 <... wait4 resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4777
4776 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4777, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
4776 close(1) = 0
4776 close(2) = 0
4776 exit_group(0) = ?
4776 +++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment