Skip to content

Instantly share code, notes, and snippets.

@fmitha
Created October 22, 2021 17:41
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 fmitha/8d18990b81e55ade456efb3df93bafa2 to your computer and use it in GitHub Desktop.
Save fmitha/8d18990b81e55ade456efb3df93bafa2 to your computer and use it in GitHub Desktop.
execve("./execlp2", ["./execlp2"], 0x7ffefe2ae0d0 /* 78 vars */) = 0
brk(NULL) = 0x5583216d4000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=265036, ...}) = 0
mmap(NULL, 265036, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd1bfbc8000
close(3) = 0
openat(AT_FDCWD, "/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\0@n\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1bfc40000
mmap(NULL, 1852680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd1bfa00000
mprotect(0x7fd1bfa25000, 1662976, PROT_NONE) = 0
mmap(0x7fd1bfa25000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7fd1bfa25000
mmap(0x7fd1bfb70000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x7fd1bfb70000
mmap(0x7fd1bfbbb000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7fd1bfbbb000
mmap(0x7fd1bfbc1000, 13576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd1bfbc1000
close(3) = 0
arch_prctl(ARCH_SET_FS, 0x7fd1bfc41540) = 0
mprotect(0x7fd1bfbbb000, 12288, PROT_READ) = 0
mprotect(0x5583207a9000, 4096, PROT_READ) = 0
mprotect(0x7fd1bfc3a000, 4096, PROT_READ) = 0
munmap(0x7fd1bfbc8000, 265036) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd1bfc41810) = 140266
wait4(140266, [{WIFEXITED(s) && WEXITSTATUS(s) == 17}], 0, NULL) = 140266
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=140266, si_uid=1000, si_status=17, si_utime=0, si_stime=0} ---
fstat(1, {st_mode=S_IFREG|0644, st_size=1920, ...}) = 0
brk(NULL) = 0x5583216d4000
brk(0x5583216f5000) = 0x5583216f5000
write(1, "wait exited with process ID of t"..., 80wait exited with process ID of the terminated child 140266
Child's exit code 17
) = 80
exit_group(0) = ?
+++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment