Skip to content

Instantly share code, notes, and snippets.

@agostini01
Created April 27, 2020 13:55
Show Gist options
  • Save agostini01/dfa637de22743894ca845039f1d3e3f6 to your computer and use it in GitHub Desktop.
Save agostini01/dfa637de22743894ca845039f1d3e3f6 to your computer and use it in GitHub Desktop.
htop strace
241 execve("/usr/bin/htop", ["htop"], 0x7fffeaaf9b78 /* 24 vars */) = 0
241 brk(NULL) = 0x7fffd27d9000
241 arch_prctl(0x3001 /* ARCH_??? */, 0x7fffdaf59710) = -1 EINVAL (Invalid argument)
241 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
241 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
241 fstat(3, {st_mode=S_IFREG|0644, st_size=27438, ...}) = 0
241 mmap(NULL, 27438, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7facd63d6000
241 close(3) = 0
241 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3
241 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\221\0\0\0\0\0\0"..., 832) = 832
241 fstat(3, {st_mode=S_IFREG|0644, st_size=231504, ...}) = 0
241 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7facd63d0000
241 mmap(NULL, 233912, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7facd6360000
241 mmap(0x7facd6368000, 159744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7facd6368000
241 mmap(0x7facd638f000, 36864, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f000) = 0x7facd638f000
241 mmap(0x7facd6398000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x37000) = 0x7facd6398000
241 close(3) = 0
241 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3
241 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\346\0\0\0\0\0\0"..., 832) = 832
241 fstat(3, {st_mode=S_IFREG|0644, st_size=192032, ...}) = 0
241 mmap(NULL, 194944, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7facd6330000
241 mmap(0x7facd633e000, 61440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7facd633e000
241 mmap(0x7facd634d000, 57344, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x7facd634d000
241 mmap(0x7facd635b000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2a000) = 0x7facd635b000
241 close(3) = 0
241 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
241 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\363\0\0\0\0\0\0"..., 832) = 832
241 fstat(3, {st_mode=S_IFREG|0644, st_size=1369352, ...}) = 0
241 mmap(NULL, 1368336, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7facd61e1000
241 mmap(0x7facd61f0000, 684032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7facd61f0000
241 mmap(0x7facd6297000, 618496, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb6000) = 0x7facd6297000
241 mmap(0x7facd632e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14c000) = 0x7facd632e000
241 close(3) = 0
241 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
241 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360q\2\0\0\0\0\0"..., 832) = 832
241 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
241 pread64(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, 848) = 32
241 pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0cBR\340\305\370\2609W\242\345)q\235A\1"..., 68, 880) = 68
241 fstat(3, {st_mode=S_IFREG|0755, st_size=2029224, ...}) = 0
241 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
241 pread64(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, 848) = 32
241 pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0cBR\340\305\370\2609W\242\345)q\235A\1"..., 68, 880) = 68
241 mmap(NULL, 2036952, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7facd5fe0000
241 mprotect(0x7facd6005000, 1847296, PROT_NONE) = 0
241 mmap(0x7facd6005000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7facd6005000
241 mmap(0x7facd617d000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19d000) = 0x7facd617d000
241 mmap(0x7facd61c8000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7facd61c8000
241 mmap(0x7facd61ce000, 13528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7facd61ce000
241 close(3) = 0
241 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
241 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \22\0\0\0\0\0\0"..., 832) = 832
241 fstat(3, {st_mode=S_IFREG|0644, st_size=18816, ...}) = 0
241 mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7facd5fd0000
241 mmap(0x7facd5fd1000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7facd5fd1000
241 mmap(0x7facd5fd3000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7facd5fd3000
241 mmap(0x7facd5fd4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7facd5fd4000
241 close(3) = 0
241 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7facd5fc0000
241 arch_prctl(ARCH_SET_FS, 0x7facd5fc1540) = 0
241 mprotect(0x7facd61c8000, 12288, PROT_READ) = 0
241 mprotect(0x7facd5fd4000, 4096, PROT_READ) = 0
241 mprotect(0x7facd632e000, 4096, PROT_READ) = 0
241 mprotect(0x7facd635b000, 16384, PROT_READ) = 0
241 mprotect(0x7facd6398000, 4096, PROT_READ) = 0
241 mprotect(0x7facd6407000, 8192, PROT_READ) = 0
241 mprotect(0x7facd63cd000, 4096, PROT_READ) = 0
241 munmap(0x7facd63d6000, 27438) = 0
241 brk(NULL) = 0x7fffd27d9000
241 brk(0x7fffd27fa000) = 0x7fffd27fa000
241 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
241 fstat(3, {st_mode=S_IFREG|0644, st_size=3035952, ...}) = 0
241 mmap(NULL, 3035952, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7facd5cda000
241 close(3) = 0
241 openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
241 fstat(3, {st_mode=S_IFREG|0644, st_size=2996, ...}) = 0
241 read(3, "# Locale name alias data base.\n#"..., 4096) = 2996
241 read(3, "", 4096) = 0
241 close(3) = 0
241 openat(AT_FDCWD, "/usr/lib/locale/C.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
241 fstat(3, {st_mode=S_IFREG|0644, st_size=201272, ...}) = 0
241 mmap(NULL, 201272, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7facd5ca8000
241 close(3) = 0
241 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
241 fstat(3, {st_mode=S_IFREG|0644, st_size=27002, ...}) = 0
241 mmap(NULL, 27002, PROT_READ, MAP_SHARED, 3, 0) = 0x7facd63d6000
241 close(3) = 0
241 openat(AT_FDCWD, "/proc/sys/kernel/pid_max", O_RDONLY) = 3
241 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
241 read(3, "32768\n", 4096) = 6
241 close(3) = 0
241 openat(AT_FDCWD, "/proc/tty/drivers", O_RDONLY) = -1 ENOENT (No such file or directory)
241 openat(AT_FDCWD, "/proc/stat", O_RDONLY) = 3
241 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
241 read(3, "cpu 18600 0 72203 7648580 0 293"..., 4096) = 2517
241 close(3) = 0
241 mkdir("/home/agostini/.config", 0700) = -1 EEXIST (File exists)
241 mkdir("/home/agostini/.config/htop", 0700) = -1 EEXIST (File exists)
241 lstat("/home/agostini/.htoprc", 0x7fffdaf59580) = -1 ENOENT (No such file or directory)
241 openat(AT_FDCWD, "/home/agostini/.config/htop/htoprc", O_RDONLY) = -1 ENOENT (No such file or directory)
241 openat(AT_FDCWD, "/etc/htoprc", O_RDONLY) = -1 ENOENT (No such file or directory)
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 stat("/home/agostini/.terminfo", 0x7fffd27de900) = -1 ENOENT (No such file or directory)
241 stat("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
241 stat("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
241 stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
241 time(NULL) = 1587995587 (2020-04-27T09:53:07-0400)
241 access("/etc/terminfo/x/xterm-256color", R_OK) = -1 ENOENT (No such file or directory)
241 access("/lib/terminfo/x/xterm-256color", R_OK) = 0
241 openat(AT_FDCWD, "/lib/terminfo/x/xterm-256color", O_RDONLY) = 3
241 fstat(3, {st_mode=S_IFREG|0644, st_size=3503, ...}) = 0
241 read(3, "\36\2%\0&\0\17\0\235\1\356\5xterm-256color|xterm"..., 32768) = 3503
241 read(3, "", 28672) = 0
241 close(3) = 0
241 time(NULL) = 1587995587 (2020-04-27T09:53:07-0400)
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, TIOCGWINSZ, {ws_row=55, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, TIOCGWINSZ, {ws_row=55, ws_col=110, ws_xpixel=0, ws_ypixel=0}) = 0
241 brk(0x7fffd281b000) = 0x7fffd281b000
241 brk(0x7fffd283c000) = 0x7fffd283c000
241 brk(0x7fffd285d000) = 0x7fffd285d000
241 brk(0x7fffd287e000) = 0x7fffd287e000
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon echo ...}) = 0
241 ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 rt_sigaction(SIGTSTP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f4ce18f6210}, 8) = 0
241 rt_sigaction(SIGTSTP, {sa_handler=0x7facd637cef0, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7facd6026210}, NULL, 8) = 0
241 rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f4ce18f6210}, 8) = 0
241 rt_sigaction(SIGINT, {sa_handler=0x7facd637ce00, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7facd6026210}, NULL, 8) = 0
241 rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f4ce18f6210}, 8) = 0
241 rt_sigaction(SIGTERM, {sa_handler=0x7facd637ce00, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7facd6026210}, NULL, 8) = 0
241 rt_sigaction(SIGWINCH, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f4ce18f6210}, 8) = 0
241 rt_sigaction(SIGWINCH, {sa_handler=0x7facd637cde0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7facd6026210}, NULL, 8) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 write(1, "\33[?1049h\33[22;0;0t\33[1;55r\33(B\33[m\33["..., 46) = 46
241 write(1, "\33[?25l", 6) = 6
241 rt_sigaction(SIGSEGV, {sa_handler=0x7facd63fd250, sa_mask=[SEGV], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7facd6026210}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f4ce18f6210}, 8) = 0
241 rt_sigaction(SIGTERM, {sa_handler=0x7facd63eb3d0, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7facd6026210}, {sa_handler=0x7facd637ce00, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7facd6026210}, 8) = 0
241 rt_sigaction(SIGQUIT, {sa_handler=0x7facd63eb3d0, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7facd6026210}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f4ce18f6210}, 8) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 write(1, "\33[39;49m\33[?1000h", 16) = 16
241 openat(AT_FDCWD, "/proc/meminfo", O_RDONLY) = 3
241 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
241 read(3, "MemTotal: 33501488 kB\nMemF"..., 4096) = 1164
241 read(3, "", 4096) = 0
241 close(3) = 0
241 openat(AT_FDCWD, "/proc/stat", O_RDONLY) = 3
241 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
241 read(3, "cpu 18600 0 72203 7648580 0 293"..., 4096) = 2517
241 close(3) = 0
241 gettimeofday({tv_sec=1587995587, tv_usec=403039}, NULL) = 0
241 openat(AT_FDCWD, "/proc", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
241 fstat(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 getdents64(3, /* 24 entries */, 32768) = 672
241 getuid() = 1000
241 openat(AT_FDCWD, "/proc/1/task", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
241 fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 getdents64(4, /* 4 entries */, 32768) = 96
241 openat(AT_FDCWD, "/proc/1/task/5/task", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
241 openat(AT_FDCWD, "/proc/1/task/5/statm", O_RDONLY) = 5
241 read(5, "2223 77 68 103 0 2078 0\n", 512) = 24
241 read(5, "", 488) = 0
241 close(5) = 0
241 openat(AT_FDCWD, "/proc/1/task/5/stat", O_RDONLY) = 5
241 read(5, "5 (init) S 0 1 1 0 0 0 0 0 0 0 0"..., 2048) = 141
241 read(5, "", 1907) = 0
241 close(5) = 0
241 stat("/proc/1/task/5", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 5
241 fstat(5, {st_mode=S_IFREG|0644, st_size=1446, ...}) = 0
241 fstat(5, {st_mode=S_IFREG|0644, st_size=1446, ...}) = 0
241 read(5, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0\0\0\0"..., 4096) = 1446
241 lseek(5, -907, SEEK_CUR) = 539
241 read(5, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0\0\0\0"..., 4096) = 907
241 close(5) = 0
241 socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
241 connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
241 close(5) = 0
241 socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
241 connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
241 close(5) = 0
241 openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 5
241 fstat(5, {st_mode=S_IFREG|0644, st_size=510, ...}) = 0
241 read(5, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 510
241 read(5, "", 4096) = 0
241 close(5) = 0
241 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 5
241 fstat(5, {st_mode=S_IFREG|0644, st_size=27438, ...}) = 0
241 mmap(NULL, 27438, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7facd61da000
241 close(5) = 0
241 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 5
241 read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3005\0\0\0\0\0\0"..., 832) = 832
241 fstat(5, {st_mode=S_IFREG|0644, st_size=51832, ...}) = 0
241 mmap(NULL, 79672, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7facd5c90000
241 mmap(0x7facd5c93000, 28672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x3000) = 0x7facd5c93000
241 mmap(0x7facd5c9a000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xa000) = 0x7facd5c9a000
241 mmap(0x7facd5c9c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xb000) = 0x7facd5c9c000
241 mmap(0x7facd5c9e000, 22328, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7facd5c9e000
241 close(5) = 0
241 mprotect(0x7facd5c9c000, 4096, PROT_READ) = 0
241 munmap(0x7facd61da000, 27438) = 0
241 openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 5
241 lseek(5, 0, SEEK_CUR) = 0
241 fstat(5, {st_mode=S_IFREG|0644, st_size=1643, ...}) = 0
241 brk(0x7fffd289f000) = 0x7fffd289f000
241 read(5, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1643
241 close(5) = 0
241 brk(0x7fffd289e000) = 0x7fffd289e000
241 openat(AT_FDCWD, "/proc/1/task/5/cmdline", O_RDONLY) = 5
241 read(5, "/init\0", 4096) = 6
241 read(5, "", 4090) = 0
241 close(5) = 0
241 getdents64(4, /* 0 entries */, 32768) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/1/statm", O_RDONLY) = 4
241 read(4, "2223 77 68 103 0 2078 0\n", 512) = 24
241 read(4, "", 488) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/1/stat", O_RDONLY) = 4
241 read(4, "1 (init) S 0 1 1 0 0 0 0 0 0 0 0"..., 2048) = 140
241 read(4, "", 1908) = 0
241 close(4) = 0
241 stat("/proc/1", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 openat(AT_FDCWD, "/proc/1/cmdline", O_RDONLY) = 4
241 read(4, "/init\0", 4096) = 6
241 read(4, "", 4090) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/6/task", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
241 fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 getdents64(4, /* 3 entries */, 32768) = 72
241 getdents64(4, /* 0 entries */, 32768) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/6/statm", O_RDONLY) = 4
241 read(4, "2224 53 43 103 0 2079 0\n", 512) = 24
241 read(4, "", 488) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/6/stat", O_RDONLY) = 4
241 read(4, "6 (init) S 1 6 6 1025 0 0 0 0 0 "..., 2048) = 144
241 read(4, "", 1904) = 0
241 close(4) = 0
241 stat("/proc/6", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 openat(AT_FDCWD, "/proc/6/cmdline", O_RDONLY) = 4
241 read(4, "/init\0", 4096) = 6
241 read(4, "", 4090) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/7/task", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
241 fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 getdents64(4, /* 3 entries */, 32768) = 72
241 getdents64(4, /* 0 entries */, 32768) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/7/statm", O_RDONLY) = 4
241 read(4, "4555 971 934 177 0 2477 0\n", 512) = 26
241 read(4, "", 486) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/7/stat", O_RDONLY) = 4
241 read(4, "7 (bash) S 6 7 6 1025 0 0 0 0 0 "..., 2048) = 154
241 read(4, "", 1894) = 0
241 close(4) = 0
241 stat("/proc/7", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 4
241 lseek(4, 0, SEEK_CUR) = 0
241 fstat(4, {st_mode=S_IFREG|0644, st_size=1643, ...}) = 0
241 read(4, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1643
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/7/cmdline", O_RDONLY) = 4
241 read(4, "-bash\0", 4096) = 6
241 read(4, "", 4090) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/238/task", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
241 fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 getdents64(4, /* 3 entries */, 32768) = 72
241 getdents64(4, /* 0 entries */, 32768) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/238/statm", O_RDONLY) = 4
241 read(4, "4342 545 519 101 0 2136 0\n", 512) = 26
241 read(4, "", 486) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/238/stat", O_RDONLY) = 4
241 read(4, "238 (strace) S 7 238 6 1025 0 0 "..., 2048) = 156
241 read(4, "", 1892) = 0
241 close(4) = 0
241 stat("/proc/238", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 openat(AT_FDCWD, "/proc/238/cmdline", O_RDONLY) = 4
241 read(4, "strace\0-o\0log.strace\0-f\0htop\0", 4096) = 29
241 read(4, "", 4067) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/241/task", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
241 fstat(4, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 getdents64(4, /* 3 entries */, 32768) = 72
241 getdents64(4, /* 0 entries */, 32768) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/241/statm", O_RDONLY) = 4
241 read(4, "4109 587 350 22 0 2262 0\n", 512) = 25
241 read(4, "", 487) = 0
241 close(4) = 0
241 openat(AT_FDCWD, "/proc/241/stat", O_RDONLY) = 4
241 read(4, "241 (htop) R 238 238 6 1025 0 0 "..., 2048) = 156
241 read(4, "", 1892) = 0
241 close(4) = 0
241 stat("/proc/241", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
241 openat(AT_FDCWD, "/proc/241/cmdline", O_RDONLY) = 4
241 read(4, "htop\0", 4096) = 5
241 read(4, "", 4091) = 0
241 close(4) = 0
241 getdents64(3, /* 0 entries */, 32768) = 0
241 close(3) = 0
241 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=75000000}, 0x7fffdaf59680) = -1 EINVAL (Invalid argument)
241 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=75000000}, 0x7fffdaf59680) = -1 EINVAL (Invalid argument)
241 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=75000000}, 0x7fffdaf59680) = -1 EINVAL (Invalid argument)
241 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=75000000}, 0x7fffdaf59680) = -1 EINVAL (Invalid argument)
241 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=75000000}, 0x7fffdaf59680) = -1 EINVAL (Invalid argument)
241 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=75000000}, 0x7fffdaf59680) = -1 EINVAL (Invalid argument)
241 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=75000000}, 0x7fffdaf59680) = -1 EINVAL (Invalid argument)
... continues forever ...
CTRL+C is issued:
241 --- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
241 rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7facd6026211}, NULL, 8) = 0
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 write(1, "\33[?1000l", 8) = 8
241 write(1, "\33[39;49m\33(B\33[m\33[55;1H\33[?12l\33[?25"..., 33) = 33
241 write(1, "\33[?1049l\33[23;0;0t\r\33[?1l\33>", 25) = 25
241 ioctl(1, TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
241 ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
241 ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
241 exit_group(1) = ?
241 +++ exited with 1 +++
241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment