yihua@ubuntu:~/test/dynamic$ strace ./bin/main execve(“./bin/main”, [“./bin/main”], 0x7ffdfd030ae0 /* 26 vars */) = 0 brk(NULL) = 0x5643c65c3000 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=104673, …}) = 0 mmap(NULL, 104673, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff91b2ed000 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/tls/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux–gnu/tls/haswell/x86_64″, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64-linux–gnu/tls/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux–gnu/tls/haswell“, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64-linux–gnu/tls/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux–gnu/tls/x86_64″, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64-linux–gnu/tls/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux-gnu/tls“, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64-linux-gnu/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux-gnu/haswell/x86_64″, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64-linux-gnu/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux-gnu/haswell”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64-linux-gnu/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux-gnu/x86_64″, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64-linux-gnu/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64-linux-gnu”, {st_mode=S_IFDIR|0755, st_size=16384, …}) = 0 openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/tls/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu/tls/haswell/x86_64″, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/tls/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu/tls/haswell”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/tls/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu/tls/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/tls/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu/tls”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu/haswell/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu/haswell”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64-linux-gnu/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64-linux-gnu”, {st_mode=S_IFDIR|0755, st_size=81920, …}) = 0 openat(AT_FDCWD, “/lib/tls/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/tls/haswell/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/tls/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/tls/haswell”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/tls/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/tls/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/tls/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/tls”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/haswell/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/haswell”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/lib/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/lib”, {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0 openat(AT_FDCWD, “/usr/lib/tls/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/tls/haswell/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/tls/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/tls/haswell”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/tls/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/tls/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/tls/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/tls”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/haswell/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/haswell/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/haswell/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/haswell”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/x86_64/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib/x86_64”, 0x7fffcd77f4e0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, “/usr/lib/liba.so”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat(“/usr/lib”, {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0 writev(2, [{iov_base=”./bin/main”, iov_len=10}, {iov_base=”: “, iov_len=2}, {iov_base=”error while loading shared libra”…, iov_len=36}, {iov_base=”: “, iov_len=2}, {iov_base=”liba.so”, iov_len=7}, {iov_base=”: “, iov_len=2}, {iov_base=”cannot open shared object file”, iov_len=30}, {iov_base=”: “, iov_len=2}, {iov_base=”No such file or directory”, iov_len=25}, {iov_base=”n”, iov_len=1}], 10./bin/main: error while loading shared libraries: liba.so: cannot open shared object file: No such file or directory ) = 117 exit_group(127) = ? +++ exited with 127 +++
|