Skip to content

Instantly share code, notes, and snippets.

@kalbasit
Created May 15, 2017 19:13
Show Gist options
  • Select an option

  • Save kalbasit/b75dd6c88b7988568a2b6f28900d082a to your computer and use it in GitHub Desktop.

Select an option

Save kalbasit/b75dd6c88b7988568a2b6f28900d082a to your computer and use it in GitHub Desktop.
kalbasit@cratos  ~/.dotfiles   master ●  strace less ~/.fzf.zsh
execve("/usr/bin/less", ["less", "/home/kalbasit/.fzf.zsh"], [/* 137 vars */]) = 0
brk(NULL) = 0x91f000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("tls/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/kalbasit/.filesystem/lib/tls/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kalbasit/.filesystem/lib/tls/x86_64", 0x7ffc47c458b0) = -1 ENOENT (No such file or directory)
open("/home/kalbasit/.filesystem/lib/tls/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kalbasit/.filesystem/lib/tls", 0x7ffc47c458b0) = -1 ENOENT (No such file or directory)
open("/home/kalbasit/.filesystem/lib/x86_64/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kalbasit/.filesystem/lib/x86_64", 0x7ffc47c458b0) = -1 ENOENT (No such file or directory)
open("/home/kalbasit/.filesystem/lib/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/kalbasit/.filesystem/lib", 0x7ffc47c458b0) = -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=148117, ...}) = 0
mmap(NULL, 148117, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd46444a000
close(3) = 0
open("/usr/lib/libncursesw.so.6", 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@|\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=448944, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd464448000
mmap(NULL, 2546584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd463fdf000
mprotect(0x7fd464048000, 2093056, PROT_NONE) = 0
mmap(0x7fd464247000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x68000) = 0x7fd464247000
close(3) = 0
open("tls/x86_64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libpcre.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libpcre.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpcre.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\27\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=469288, ...}) = 0
mmap(NULL, 2564584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd463d6c000
mprotect(0x7fd463dde000, 2093056, PROT_NONE) = 0
mmap(0x7fd463fdd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x71000) = 0x7fd463fdd000
close(3) = 0
open("tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/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\0000\6\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1977568, ...}) = 0
mmap(NULL, 3815728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd4639c8000
mprotect(0x7fd463b63000, 2093056, PROT_NONE) = 0
mmap(0x7fd463d62000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7fd463d62000
mmap(0x7fd463d68000, 14640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd463d68000
close(3) = 0
open("tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/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\200_\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=146824, ...}) = 0
mmap(NULL, 2216432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd4637aa000
mprotect(0x7fd4637c3000, 2093056, PROT_NONE) = 0
mmap(0x7fd4639c2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7fd4639c2000
mmap(0x7fd4639c4000, 12784, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd4639c4000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd464446000
arch_prctl(ARCH_SET_FS, 0x7fd464446b40) = 0
mprotect(0x7fd463d62000, 16384, PROT_READ) = 0
mprotect(0x7fd4639c2000, 4096, PROT_READ) = 0
mprotect(0x7fd463fdd000, 4096, PROT_READ) = 0
mprotect(0x7fd464247000, 16384, PROT_READ) = 0
mprotect(0x622000, 4096, PROT_READ) = 0
mprotect(0x7fd46446f000, 4096, PROT_READ) = 0
munmap(0x7fd46444a000, 148117) = 0
set_tid_address(0x7fd464446e10) = 6043
set_robust_list(0x7fd464446e20, 24) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7fd4637afa00, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fd4637bbfe0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7fd4637afa90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd4637bbfe0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(NULL) = 0x91f000
brk(0x940000) = 0x940000
stat("/home/kalbasit/.terminfo", 0x91f210) = -1 ENOENT (No such file or directory)
stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=84, ...}) = 0
access("/usr/share/terminfo/x/xterm-termite", R_OK) = 0
open("/usr/share/terminfo/x/xterm-termite", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2433, ...}) = 0
read(3, "\32\1!\0\35\0\17\0\235\1\315\5xterm-termite|VTE-ba"..., 4096) = 2433
read(3, "", 4096) = 0
close(3) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=92, ws_col=214, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(2, TIOCGWINSZ, {ws_row=92, ws_col=214, ws_xpixel=0, ws_ypixel=0}) = 0
open("/usr/bin/.sysless", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/sysless", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/kalbasit/.less", O_RDONLY) = 3
close(3) = 0
open("/home/kalbasit/.less", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=96, ...}) = 0
lseek(3, 0, SEEK_SET) = 0
read(3, "\0M+Gc\22\0n\0)e\0\fi\0\2o\0*k\0+K\0-e\0\0v=\0L"..., 96) = 96
close(3) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1966480, ...}) = 0
mmap(NULL, 1966480, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd4635c9000
close(3) = 0
open("/home/kalbasit/.lesshst", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0600, st_size=645, ...}) = 0
read(3, ".less-history-file:\n.search\n\"ali"..., 4096) = 645
read(3, "", 4096) = 0
close(3) = 0
open("/dev/tty", O_RDONLY) = 3
ioctl(3, TCGETS, {B38400 opost isig icanon echo ...}) = 0
fsync(3) = -1 EINVAL (Invalid argument)
ioctl(3, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigaction(SIGINT, {sa_handler=0x415c30, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd4639fba90}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTSTP, {sa_handler=0x415bf0, sa_mask=[TSTP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd4639fba90}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGWINCH, {sa_handler=0x415bb0, sa_mask=[WINCH], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd4639fba90}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_IGN, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fd4639fba90}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
stat("/home/kalbasit/.fzf.zsh", {st_mode=S_IFREG|0644, st_size=330, ...}) = 0
stat("/home/kalbasit/.fzf.zsh", {st_mode=S_IFREG|0644, st_size=330, ...}) = 0
open("/home/kalbasit/.fzf.zsh", O_RDONLY) = 4
lseek(4, 1, SEEK_SET) = 1
lseek(4, 0, SEEK_SET) = 0
read(4, "# Setup fzf\n# ---------\nif [[ ! "..., 256) = 256
lseek(4, 1, SEEK_SET) = 1
fstat(4, {st_mode=S_IFREG|0644, st_size=330, ...}) = 0
lseek(4, 0, SEEK_SET) = 0
stat("/home/kalbasit/.fzf.zsh", {st_mode=S_IFREG|0644, st_size=330, ...}) = 0
write(1, "\33[?1049h\33[?1h\33=\r", 16) = 391
fsync(3) = -1 EINVAL (Invalid argument)
ioctl(3, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
exit_group(0) = ?
+++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment