Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execve("./bash_hook.sh", ["./bash_hook.sh"], [/* 62 vars */]) = 0
- brk(NULL) = 0x78f000
- access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
- mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa75f5cc000
- access("/etc/ld.so.preload", R_OK) = -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=145236, ...}) = 0
- mmap(NULL, 145236, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa75f5a8000
- close(3) = 0
- access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
- open("/lib/x86_64-linux-gnu/libtinfo.so.5", 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\260\315\0\0\0\0\0\0"..., 832) = 832
- fstat(3, {st_mode=S_IFREG|0644, st_size=171362, ...}) = 0
- mmap(NULL, 2267936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa75f182000
- mprotect(0x7fa75f1a8000, 2093056, PROT_NONE) = 0
- mmap(0x7fa75f3a7000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0
- x7fa75f3a7000
- close(3) = 0
- access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
- open("/lib/x86_64-linux-gnu/libdl.so.2", 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\r\0\0\0\0\0\0"..., 832) = 832
- fstat(3, {st_mode=S_IFREG|0644, st_size=15227, ...}) = 0
- mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa75ef7e000
- mprotect(0x7fa75ef81000, 2093056, PROT_NONE) = 0
- mmap(0x7fa75f180000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7
- fa75f180000
- close(3) = 0
- access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
- open("/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\0\4\2\0\0\0\0\0"..., 832) = 832
- fstat(3, {st_mode=S_IFREG|0755, st_size=1689947, ...}) = 0
- mmap(NULL, 3795296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa75ebdf000
- mprotect(0x7fa75ed74000, 2097152, PROT_NONE) = 0
- mmap(0x7fa75ef74000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) =
- 0x7fa75ef74000
- mmap(0x7fa75ef7a000, 14688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa7
- 5ef7a000
- close(3) = 0
- mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa75f5a6000
- arch_prctl(ARCH_SET_FS, 0x7fa75f5a6b40) = 0
- mprotect(0x7fa75ef74000, 16384, PROT_READ) = 0
- mprotect(0x7fa75f180000, 4096, PROT_READ) = 0
- mprotect(0x7fa75f3a7000, 16384, PROT_READ) = 0
- mprotect(0x700000, 12288, PROT_READ) = 0
- mprotect(0x7fa75f5cf000, 4096, PROT_READ) = 0
- munmap(0x7fa75f5a8000, 145236) = 0
- open("/dev/tty", O_RDWR|O_NONBLOCK) = 3
- close(3) = 0
- brk(NULL) = 0x78f000
- brk(0x790000) = 0x790000
- open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
- fstat(3, {st_mode=S_IFREG|0644, st_size=1679808, ...}) = 0
- mmap(NULL, 1679808, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa75f40b000
- close(3) = 0
- brk(0x791000) = 0x791000
- brk(0x792000) = 0x792000
- getuid() = 2506
- getgid() = 2500
- geteuid() = 2506
- getegid() = 2500
- rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
- ioctl(-1, TIOCGPGRP, 0x7fff0d59ba6c) = -1 EBADF (Bad file descriptor)
- brk(0x793000) = 0x793000
- sysinfo({uptime=9523, loads=[4512, 1536, 224], totalram=16781271040, freeram=15109185536, sharedram=48
- 812032, bufferram=100511744, totalswap=8787062784, freeswap=8787062784, procs=263, totalhigh=0, freehi
- gh=0, mem_unit=1}) = 0
- brk(0x794000) = 0x794000
- rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x
- 7fa75ec12060}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
- rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x
- 7fa75ec12060}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fa75ec
- 12060}, 8) = 0
- rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060
- }, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
- rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060
- }, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
- rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigaction(SIGTSTP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
- rt_sigaction(SIGTSTP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigaction(SIGTTIN, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
- rt_sigaction(SIGTTIN, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigaction(SIGTTOU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
- rt_sigaction(SIGTTOU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
- rt_sigaction(SIGQUIT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- uname({sysname="Linux", nodename="p5657", ...}) = 0
- brk(0x798000) = 0x798000
- brk(0x79a000) = 0x79a000
- brk(0x79c000) = 0x79c000
- brk(0x79d000) = 0x79d000
- brk(0x79e000) = 0x79e000
- brk(0x79f000) = 0x79f000
- stat("/home/xintrea/work/develop/bash/00010_gitVersioning_remove_trouble", {st_mode=S_IFDIR|0755, st_s
- ize=4096, ...}) = 0
- stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
- stat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
- stat("/home/xintrea", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
- stat("/home/xintrea/work", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
- stat("/home/xintrea/work/develop", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
- stat("/home/xintrea/work/develop/bash", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
- stat("/home/xintrea/work/develop/bash/00010_gitVersioning_remove_trouble", {st_mode=S_IFDIR|0755, st_s
- ize=4096, ...}) = 0
- stat("/home/xintrea/work/develop/bash/00010_gitVersioning_remove_trouble/.git", {st_mode=S_IFDIR|0755,
- st_size=4096, ...}) = 0
- getpid() = 18396
- open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
- fstat(3, {st_mode=S_IFREG|0644, st_size=26258, ...}) = 0
- mmap(NULL, 26258, PROT_READ, MAP_SHARED, 3, 0) = 0x7fa75f5c5000
- close(3) = 0
- getppid() = 18394
- brk(0x7a0000) = 0x7a0000
- getpid() = 18396
- brk(0x7a1000) = 0x7a1000
- brk(0x7a2000) = 0x7a2000
- getpgrp() = 18391
- ioctl(2, TIOCGPGRP, [18391]) = 0
- rt_sigaction(SIGCHLD, {sa_handler=0x44cf90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0
- x7fa75ec12060}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fa75e
- c12060}, 8) = 0
- getrlimit(RLIMIT_NPROC, {rlim_cur=63019, rlim_max=63019}) = 0
- brk(0x7a3000) = 0x7a3000
- rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
- open("/home/xintrea/.bashrc", O_RDONLY) = 3
- fstat(3, {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
- brk(0x7a4000) = 0x7a4000
- read(3, "export PATH=/usr/local/bin:/usr/"..., 675) = 675
- close(3) = 0
- rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
- brk(0x7a5000) = 0x7a5000
- brk(0x7a6000) = 0x7a6000
- stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
- stat("/opt/qt_5_12_6/Tools/QtCreator/bin/stty", 0x7fff0d59b370) = -1 ENOENT (No such file or directory
- )
- stat("/opt/qt_5_12_6/5.12.6/gcc_64/bin/stty", 0x7fff0d59b370) = -1 ENOENT (No such file or directory)
- stat("/usr/local/bin/stty", 0x7fff0d59b370) = -1 ENOENT (No such file or directory)
- stat("/usr/bin/stty", 0x7fff0d59b370) = -1 ENOENT (No such file or directory)
- stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=77269, ...}) = 0
- stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=77269, ...}) = 0
- geteuid() = 2506
- getegid() = 2500
- getuid() = 2506
- getgid() = 2500
- access("/bin/stty", X_OK) = 0
- stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=77269, ...}) = 0
- geteuid() = 2506
- getegid() = 2500
- getuid() = 2506
- getgid() = 2500
- access("/bin/stty", R_OK) = 0
- stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=77269, ...}) = 0
- stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=77269, ...}) = 0
- geteuid() = 2506
- getegid() = 2500
- getuid() = 2506
- getgid() = 2500
- access("/bin/stty", X_OK) = 0
- stat("/bin/stty", {st_mode=S_IFREG|0755, st_size=77269, ...}) = 0
- geteuid() = 2506
- getegid() = 2500
- getuid() = 2506
- getgid() = 2500
- access("/bin/stty", R_OK) = 0
- rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
- clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fa75f5a
- 6e10) = 18397
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
- rt_sigaction(SIGINT, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 18397
- rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060
- }, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18397, si_uid=2506, si_status=1, si_utime=0,
- si_stime=0} ---
- wait4(-1, 0x7fff0d59aed0, WNOHANG, NULL) = -1 ECHILD (No child processes)
- rt_sigreturn({mask=[]}) = 0
- rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
- clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fa75f5a
- 6e10) = 18398
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
- rt_sigaction(SIGINT, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 18398
- rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060
- }, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18398, si_uid=2506, si_status=1, si_utime=0,
- si_stime=0} ---
- wait4(-1, 0x7fff0d59aed0, WNOHANG, NULL) = -1 ECHILD (No child processes)
- rt_sigreturn({mask=[]}) = 0
- rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
- clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fa75f5a
- 6e10) = 18399
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
- rt_sigaction(SIGINT, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec1206
- 0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 18399
- rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060
- }, {sa_handler=0x449930, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fa75ec12060}, 8) = 0
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18399, si_uid=2506, si_status=1, si_utime=0,
- si_stime=0} ---
- wait4(-1, 0x7fff0d59aed0, WNOHANG, NULL) = -1 ECHILD (No child processes)
- rt_sigreturn({mask=[]}) = 0
- brk(0x7a7000) = 0x7a7000
- brk(0x7a8000) = 0x7a8000
- open("./bash_hook.sh", O_RDONLY) = 3
- stat("./bash_hook.sh", {st_mode=S_IFREG|0755, st_size=38, ...}) = 0
- ioctl(3, TCGETS, 0x7fff0d59ba00) = -1 ENOTTY (Inappropriate ioctl for device)
- lseek(3, 0, SEEK_CUR) = 0
- read(3, "#!/bin/bash\necho \"This is pre-co"..., 80) = 38
- lseek(3, 0, SEEK_SET) = 0
- getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024*1024}) = 0
- fcntl(255, F_GETFD) = -1 EBADF (Bad file descriptor)
- dup2(3, 255) = 255
- close(3) = 0
- fcntl(255, F_SETFD, FD_CLOEXEC) = 0
- fcntl(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
- fstat(255, {st_mode=S_IFREG|0755, st_size=38, ...}) = 0
- lseek(255, 0, SEEK_CUR) = 0
- brk(0x7a9000) = 0x7a9000
- read(255, "#!/bin/bash\necho \"This is pre-co"..., 38) = 38
- write(1, "This is pre-commit\n", 19) = 19
- read(255, "", 38) = 0
- rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
- exit_group(0) = ?
- +++ exited with 0 +++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement