Skip to content

Instantly share code, notes, and snippets.

@cuihaoleo
Created October 1, 2018 09:30
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 cuihaoleo/ef09a628d114d162bcc67402a1556140 to your computer and use it in GitHub Desktop.
Save cuihaoleo/ef09a628d114d162bcc67402a1556140 to your computer and use it in GitHub Desktop.
execve("/usr/bin/git", ["git", "config", "test.test", "test"], [/* 18 vars */]) = 0
brk(NULL) = 0x7fffb909c000
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) = 0x7f5e08070000
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=52542, ...}) = 0
mmap(NULL, 52542, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5e08063000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpcre.so.3", 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\320\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=468920, ...}) = 0
mmap(NULL, 2564360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5e07b80000
mprotect(0x7f5e07bf2000, 2093056, PROT_NONE) = 0
mmap(0x7f5e07df1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x71000) = 0x7f5e07df1000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.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\300!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=105088, ...}) = 0
mmap(NULL, 2200072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5e07960000
mprotect(0x7f5e07979000, 2093056, PROT_NONE) = 0
mmap(0x7f5e07b78000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f5e07b78000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/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\0Pa\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=135440, ...}) = 0
mmap(NULL, 2212936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5e07740000
mprotect(0x7f5e07758000, 2093056, PROT_NONE) = 0
mmap(0x7f5e07957000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f5e07957000
mmap(0x7f5e07959000, 13384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5e07959000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.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\340 \0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=31744, ...}) = 0
mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5e07530000
mprotect(0x7f5e07537000, 2093056, PROT_NONE) = 0
mmap(0x7f5e07736000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f5e07736000
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=1689360, ...}) = 0
mmap(NULL, 3795296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5e07190000
mprotect(0x7f5e07325000, 2097152, PROT_NONE) = 0
mmap(0x7f5e07525000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x7f5e07525000
mmap(0x7f5e0752b000, 14688, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5e0752b000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5e08060000
arch_prctl(ARCH_SET_FS, 0x7f5e08061400) = 0
mprotect(0x7f5e07525000, 16384, PROT_READ) = 0
mprotect(0x7f5e07957000, 4096, PROT_READ) = 0
mprotect(0x7f5e07736000, 4096, PROT_READ) = 0
mprotect(0x7f5e07b78000, 4096, PROT_READ) = 0
mprotect(0x7f5e07df1000, 4096, PROT_READ) = 0
mprotect(0x7f5e085f0000, 12288, PROT_READ) = 0
mprotect(0x7f5e08023000, 4096, PROT_READ) = 0
munmap(0x7f5e08063000, 52542) = 0
set_tid_address(0x7f5e080616d0) = 124
set_robust_list(0x7f5e080616e0, 24) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7f5e07745bd0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f5e077510c0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7f5e07745c60, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f5e077510c0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=8192*1024}) = 0
open("/dev/null", O_RDWR) = 3
close(3) = 0
brk(NULL) = 0x7fffb909c000
brk(0x7fffb90bd000) = 0x7fffb90bd000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1679776, ...}) = 0
mmap(NULL, 1679776, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5e07e88000
close(3) = 0
rt_sigprocmask(SIG_UNBLOCK, [PIPE], NULL, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_DFL, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f5e071c3060}, {sa_handler=SIG_DFL, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f4e85933060}, 8) = 0
getcwd("/mnt/e/test", 129) = 12
stat(".", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
stat(".git", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
lstat(".git/HEAD", {st_mode=S_IFREG|0777, st_size=23, ...}) = 0
open(".git/HEAD", O_RDONLY) = 3
read(3, "ref: refs/heads/master\n", 255) = 23
read(3, "", 232) = 0
close(3) = 0
lstat(".git/commondir", 0x7fffc04f67a0) = -1 ENOENT (No such file or directory)
access(".git/objects", X_OK) = 0
access(".git/refs", X_OK) = 0
lstat(".git/commondir", 0x7fffc04f6730) = -1 ENOENT (No such file or directory)
open(".git/config", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=130, ...}) = 0
read(3, "[core]\n\trepositoryformatversion "..., 512) = 130
read(3, "", 512) = 0
close(3) = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
getcwd("/mnt/e/test", 129) = 12
chdir(".") = 0
getcwd("/mnt/e/test", 130) = 12
lstat("/mnt/e/test", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
chdir("/mnt/e/test") = 0
stat(".git", {st_mode=S_IFDIR|0777, st_size=512, ...}) = 0
lstat(".git/commondir", 0x7fffc04f65d0) = -1 ENOENT (No such file or directory)
access("/etc/gitconfig", R_OK) = -1 ENOENT (No such file or directory)
access("/home/cuihao/.config/git/config", R_OK) = -1 ENOENT (No such file or directory)
access("/home/cuihao/.gitconfig", R_OK) = 0
open("/home/cuihao/.gitconfig", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
read(3, "[user]\n\temail = cuihao.leo@gmail"..., 4096) = 53
read(3, "", 4096) = 0
close(3) = 0
access(".git/config", R_OK) = 0
open(".git/config", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=130, ...}) = 0
read(3, "[core]\n\trepositoryformatversion "..., 512) = 130
read(3, "", 512) = 0
close(3) = 0
readlink(".git/config", 0x7fffb909d350, 32) = -1 EINVAL (Invalid argument)
rt_sigaction(SIGINT, {sa_handler=0x7f5e08351dc0, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f5e071c3060}, {sa_handler=SIG_DFL, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f4e85933060}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x7f5e08351dc0, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f5e071c3060}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_INTERRUPT, sa_restorer=0x7f4e85933060}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x7f5e08351dc0, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f5e071c3060}, {sa_handler=SIG_DFL, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f4e85933060}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=0x7f5e08351dc0, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f5e071c3060}, {sa_handler=SIG_DFL, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f4e85933060}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x7f5e08351dc0, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f5e071c3060}, {sa_handler=SIG_DFL, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f5e071c3060}, 8) = 0
getcwd("/mnt/e/test", 129) = 12
open("/mnt/e/test/.git/config.lock", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) = 3
getpid() = 124
access("/etc/gitconfig", R_OK) = -1 ENOENT (No such file or directory)
access("/home/cuihao/.config/git/config", R_OK) = -1 ENOENT (No such file or directory)
access("/home/cuihao/.gitconfig", R_OK) = 0
open("/home/cuihao/.gitconfig", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=53, ...}) = 0
read(4, "[user]\n\temail = cuihao.leo@gmail"..., 4096) = 53
read(4, "", 4096) = 0
close(4) = 0
access(".git/config", R_OK) = 0
open(".git/config", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0777, st_size=130, ...}) = 0
read(4, "[core]\n\trepositoryformatversion "..., 512) = 130
read(4, "", 512) = 0
close(4) = 0
open(".git/config", O_RDONLY) = 4
open(".git/config", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0777, st_size=130, ...}) = 0
read(5, "[core]\n\trepositoryformatversion "..., 512) = 130
read(5, "", 512) = 0
close(5) = 0
fstat(4, {st_mode=S_IFREG|0777, st_size=130, ...}) = 0
mmap(NULL, 130, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f5e08077000
close(4) = 0
chmod("/mnt/e/test/.git/config.lock", 0777) = 0
write(3, "[core]\n\trepositoryformatversion "..., 130) = 130
write(3, "[test]\n", 7) = 7
write(3, "\ttest = test\n", 13) = 13
munmap(0x7f5e08077000, 130) = 0
close(3) = 0
rename("/mnt/e/test/.git/config.lock", "/mnt/e/test/.git/config"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment