Skip to content

Instantly share code, notes, and snippets.

@doxxx
Created March 1, 2021 23:04
Show Gist options
  • Save doxxx/f205cf8f6b4ad7daa327af7ddb224f20 to your computer and use it in GitHub Desktop.
Save doxxx/f205cf8f6b4ad7daa327af7ddb224f20 to your computer and use it in GitHub Desktop.
execve("/home/gtyler/tmp/a.out", ["/home/gtyler/tmp/a.out"], 0x7ffe54272900 /* 27 vars */) = 0
strace: [ Process PID=12597 runs in 32 bit mode. ]
brk(NULL) = 0x568b9000
arch_prctl(0x3001 /* ARCH_??? */, 0xffb3ad38) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7f52000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=49048, ...}) = 0
mmap2(NULL, 49048, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7f46000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib32/libc.so.6", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\360\1\0004\0\0\0"..., 512) = 512
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\205\327\273-\255\17\201r\321\300,\3\21\240\fF"..., 96, 468) = 96
fstat64(3, {st_mode=S_IFREG|0755, st_size=2002268, ...}) = 0
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\205\327\273-\255\17\201r\321\300,\3\21\240\fF"..., 96, 468) = 96
mmap2(NULL, 2010892, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf7d5b000
mmap2(0xf7d78000, 1409024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0xf7d78000
mmap2(0xf7ed0000, 458752, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x175000) = 0xf7ed0000
mmap2(0xf7f40000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e4000) = 0xf7f40000
mmap2(0xf7f44000, 7948, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf7f44000
close(3) = 0
set_thread_area({entry_number=-1, base_addr=0xf7f53100, limit=0x0fffff, seg_32bit=1, contents=0, read_exec_only=0, limit_in_pages=1, seg_not_present=0, useable=1}) = 0 (entry_number=12)
mprotect(0xf7f40000, 8192, PROT_READ) = 0
mprotect(0x565a4000, 4096, PROT_READ) = 0
mprotect(0xf7f83000, 4096, PROT_READ) = 0
munmap(0xf7f46000, 49048) = 0
getcwd("/mnt/c", 4096) = 7
stat64("/mnt/c", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}) = 0
brk(NULL) = 0x568b9000
brk(0x568da000) = 0x568da000
brk(0x568db000) = 0x568db000
write(1, "stat(/mnt/c) != 0, errno=75\n", 28stat(/mnt/c) != 0, errno=75
) = 28
exit_group(0) = ?
+++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment