1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
jager@Forensic:~/debug$ uname -a
Linux Forensic 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
jager@Forensic:~/debug$ gcc *.c -Wall -Werror -g -o Deb && strace ./Deb
execve("./Deb", ["./Deb"], 0x7fff0f4ea3c0 /* 21 vars */) = 0
brk(NULL) = 0x562114625000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
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=36640, ...}) = 0
mmap(NULL, 36640, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa7cdd7d000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
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\260\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa7cdd7b000
mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa7cd76e000
mprotect(0x7fa7cd955000, 2097152, PROT_NONE) = 0
mmap(0x7fa7cdb55000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7fa7cdb55000
mmap(0x7fa7cdb5b000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa7cdb5b000
close(3) = 0
arch_prctl(ARCH_SET_FS, 0x7fa7cdd7c4c0) = 0
mprotect(0x7fa7cdb55000, 16384, PROT_READ) = 0
mprotect(0x562113766000, 4096, PROT_READ) = 0
mprotect(0x7fa7cdd86000, 4096, PROT_READ) = 0
munmap(0x7fa7cdd7d000, 36640) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
brk(NULL) = 0x562114625000
brk(0x562114646000) = 0x562114646000
write(1, "programme va s'arreter\n", 23programme va s'arreter
) = 23
write(1, "fin de programme\n", 17fin de programme
) = 17
exit_group(0) = ?
+++ exited with 0 +++
jager@Forensic:~/debug$ |