Skip to content

Instantly share code, notes, and snippets.

@tnguyen14
Last active May 11, 2017 22:02
Show Gist options
  • Save tnguyen14/f3598a542751eb0fd5efa6b9ae32a791 to your computer and use it in GitHub Desktop.
Save tnguyen14/f3598a542751eb0fd5efa6b9ae32a791 to your computer and use it in GitHub Desktop.
execve("/bin/systemctl", ["systemctl", "status", "nginx"], [/* 88 vars */]) = 0
brk(NULL) = 0x7fffcec7e000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d8620000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=90051, ...}) = 0
mmap(NULL, 90051, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f46d860a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260Z\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=130224, ...}) = 0
mmap(NULL, 2234080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d7fd0000
mprotect(0x7f46d7fef000, 2093056, PROT_NONE) = 0
mmap(0x7f46d81ee000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7f46d81ee000
mmap(0x7f46d81f0000, 5856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f46d81f0000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=31712, ...}) = 0
mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d7dc0000
mprotect(0x7f46d7dc7000, 2093056, PROT_NONE) = 0
mmap(0x7f46d7fc6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f46d7fc6000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320 \0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=137400, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d8600000
mmap(NULL, 2232456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d7b90000
mprotect(0x7f46d7bb1000, 2093056, PROT_NONE) = 0
mmap(0x7f46d7db0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7f46d7db0000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\215\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=919168, ...}) = 0
mmap(NULL, 3015360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d78a0000
mprotect(0x7f46d7978000, 2093056, PROT_NONE) = 0
mmap(0x7f46d7b77000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd7000) = 0x7f46d7b77000
mmap(0x7f46d7b80000, 704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f46d7b80000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260`\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=138696, ...}) = 0
mmap(NULL, 2212904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d7680000
mprotect(0x7f46d7698000, 2093056, PROT_NONE) = 0
mmap(0x7f46d7897000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f46d7897000
mmap(0x7f46d7899000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f46d7899000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1864888, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d85f0000
mmap(NULL, 3967392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d72b0000
mprotect(0x7f46d746f000, 2097152, PROT_NONE) = 0
mmap(0x7f46d766f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bf000) = 0x7f46d766f000
mmap(0x7f46d7675000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f46d7675000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=456632, ...}) = 0
mmap(NULL, 2552072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d7040000
mprotect(0x7f46d70ae000, 2097152, PROT_NONE) = 0
mmap(0x7f46d72ae000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6e000) = 0x7f46d72ae000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14608, ...}) = 0
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d6e30000
mprotect(0x7f46d6e33000, 2093056, PROT_NONE) = 0
mmap(0x7f46d7032000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f46d7032000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320(\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=80496, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d85e0000
mmap(NULL, 2175544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f46d6c10000
mprotect(0x7f46d6c22000, 2097152, PROT_NONE) = 0
mmap(0x7f46d6e22000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12000) = 0x7f46d6e22000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d85d0000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d85c0000
arch_prctl(ARCH_SET_FS, 0x7f46d85c0880) = 0
mprotect(0x7f46d766f000, 16384, PROT_READ) = 0
mprotect(0x7f46d6e22000, 4096, PROT_READ) = 0
mprotect(0x7f46d7032000, 4096, PROT_READ) = 0
mprotect(0x7f46d7897000, 4096, PROT_READ) = 0
mprotect(0x7f46d72ae000, 4096, PROT_READ) = 0
mprotect(0x7f46d7b77000, 4096, PROT_READ) = 0
mprotect(0x7f46d7db0000, 4096, PROT_READ) = 0
mprotect(0x7f46d7fc6000, 4096, PROT_READ) = 0
mprotect(0x7f46d81ee000, 4096, PROT_READ) = 0
mprotect(0x7f46d86be000, 20480, PROT_READ) = 0
mprotect(0x7f46d8425000, 4096, PROT_READ) = 0
munmap(0x7f46d860a000, 90051) = 0
set_tid_address(0x7f46d85c0b50) = 3285
set_robust_list(0x7f46d85c0b60, 24) = 0
rt_sigaction(SIGRTMIN, {0x7f46d7685b50, [], SA_RESTORER|SA_SIGINFO, 0x7f46d7691390}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f46d7685be0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f46d7691390}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=8192*1024}) = 0
brk(NULL) = 0x7fffcec7e000
brk(0x7fffcec9f000) = 0x7fffcec9f000
statfs("/sys/fs/selinux", 0x7fffd59b4080) = -1 ENOENT (No such file or directory)
statfs("/selinux", 0x7fffd59b4080) = -1 ENOENT (No such file or directory)
open("/proc/filesystems", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "nodev sysfs\nnodev root"..., 4096) = 367
read(3, "", 4096) = 0
close(3) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1668976, ...}) = 0
mmap(NULL, 1668976, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f46d8428000
close(3) = 0
open("/proc/self/stat", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "3285 (systemctl) R 3283 3283 110"..., 4096) = 167
close(3) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
stat("/proc/1/root", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
stat("/", {st_mode=S_IFDIR|0755, st_size=512, ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=48, ws_col=190, ws_xpixel=0, ws_ypixel=0}) = 0
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f46d85c0b50) = 3286
dup2(4, 1) = 1
dup2(4, 2) = 2
close(3) = 0
close(4) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=16*1024, rlim_max=16*1024}) = -1 EINVAL (Invalid argument)
geteuid() = 1000
open("/sys/fs/kdbus/0-system/bus", O_RDWR|O_NOCTTY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
getsockopt(3, SOL_SOCKET, SO_RCVBUF, [0], [4]) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUFFORCE, [8388608], 4) = -1 EINVAL (Invalid argument)
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [8388608], 4) = 0
getsockopt(3, SOL_SOCKET, SO_SNDBUF, [0], [4]) = 0
setsockopt(3, SOL_SOCKET, SO_SNDBUFFORCE, [8388608], 4) = -1 EINVAL (Invalid argument)
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [8388608], 4) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/dbus/system_bus_socket"}, 33) = 0
getsockopt(3, SOL_SOCKET, SO_PEERCRED, {pid=2571, uid=0, gid=0}, [12]) = 0
clock_gettime(CLOCK_MONOTONIC, {10429, 668907000}) = 0
fstat(3, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
getsockopt(3, SOL_SOCKET, SO_ACCEPTCONN, 0x7fffd59b3838, 0x7fffd59b383c) = -1 EINVAL (Invalid argument)
geteuid() = 1000
sendmsg(3, {msg_name(0)=NULL, msg_iov(3)=[{"\0AUTH EXTERNAL ", 15}, {"31303030", 8}, {"\r\nBEGIN\r\n", 9}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 32
gettid() = 3285
getrandom("\270\252\31\355\320\223\23\3E\372\336\2z\315\246\375", 16, GRND_NONBLOCK) = 16
clock_gettime(CLOCK_MONOTONIC, {10429, 670233000}) = 0
gettid() = 3285
clock_gettime(CLOCK_MONOTONIC, {10429, 670549000}) = 0
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"OK d1c5a195b57bcfa3db5d51535914d"..., 256}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 37
clock_gettime(CLOCK_MONOTONIC, {10429, 670953000}) = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\1\0\1\0\0\0\0\1\0\0\0m\0\0\0\1\1o\0\25\0\0\0/org/fre"..., 128}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 128
clock_gettime(CLOCK_MONOTONIC, {10429, 671339000}) = 0
recvmsg(3, 0x7fffd59b2610, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {10429, 671666000}) = 0
ppoll([{fd=3, events=POLLIN}], 1, {24, 998567000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {24, 998566000})
clock_gettime(CLOCK_MONOTONIC, {10429, 672088000}) = 0
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\2\1\1\t\0\0\0\1\0\0\0=\0\0\0\6\1s\0\4\0\0\0", 24}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{":1.7\0\0\0\0\5\1u\0\1\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0"..., 65}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 65
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\4\1\5\0\0\0\2\0\0\0\237\0\0\0\1\1o\0.\0\0\0/org/fre"..., 176}, {"\0\0\0\0\0", 5}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 181
clock_gettime(CLOCK_MONOTONIC, {10429, 672934000}) = 0
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\4\1\1\t\0\0\0\2\0\0\0\215\0\0\0\1\1o\0\25\0\0\0", 24}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"/org/freedesktop/DBus\0\0\0\2\1s\0\24\0\0\0"..., 145}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 145
recvmsg(3, 0x7fffd59b2750, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {10429, 673681000}) = 0
ppoll([{fd=3, events=POLLIN}], 1, {24, 999253000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {24, 970860000})
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\3\1\0014\0\0\0\3\0\0\0u\0\0\0\6\1s\0\4\0\0\0", 24}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{":1.7\0\0\0\0\4\1s\0,\0\0\0org.freedesktop."..., 164}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) = 164
writev(2, [{"Failed to get properties: Launch"..., 73}, {"\n", 1}], 2) = 74
close(1) = 0
close(2) = 0
kill(3286, SIGCONT) = 0
waitid(P_PID, 3286, {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3286, si_uid=1000, si_status=0, si_utime=0, si_stime=0}, WEXITED, NULL) = 0
close(3) = 0
exit_group(1) = ?
+++ exited with 1 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment