Skip to content

Instantly share code, notes, and snippets.

@rektide
Last active September 3, 2015 23:57
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 rektide/b807221458a016e42d22 to your computer and use it in GitHub Desktop.
Save rektide/b807221458a016e42d22 to your computer and use it in GitHub Desktop.
qemu-static-arm trying to find libselinux.so.1
$ strace -f -e trace=file /usr/bin/qemu-static-arm bin/ls
execve("/usr/bin/qemu-arm-static", ["/usr/bin/qemu-arm-static", "bin/ls"], [/* 19 vars */]) = 0
readlink("/proc/self/exe", "/usr/bin/qemu-arm-static", 4096) = 24
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
Process 10943 attached
[pid 10942] openat(AT_FDCWD, "/etc/qemu-binfmt/arm", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] open("/proc/sys/vm/mmap_min_addr", O_RDONLY) = 3
[pid 10942] open("bin/ls", O_RDONLY) = 3
[pid 10942] open("/lib/ld-linux-armhf.so.3", O_RDONLY) = 3
[pid 10942] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid 10942] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
[pid 10942] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/i386-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/tls/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf/tls/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/tls/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf/tls/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/tls/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf/tls/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/tls/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf/tls", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/arm-linux-gnueabihf/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/arm-linux-gnueabihf", {st_mode=S_IFDIR|0755, st_size=1368, ...}) = 0
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/tls/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf/tls/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/tls/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf/tls/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/tls/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf/tls/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/tls/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf/tls", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/arm-linux-gnueabihf", {st_mode=S_IFDIR|0755, st_size=322, ...}) = 0
[pid 10942] openat(AT_FDCWD, "/lib/tls/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/tls/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/tls/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/tls/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/tls/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/tls/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/tls/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/tls", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/lib/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/lib", {st_mode=S_IFDIR|0755, st_size=1004, ...}) = 0
[pid 10942] openat(AT_FDCWD, "/usr/lib/tls/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/tls/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/tls/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/tls/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/tls/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/tls/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/tls/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/tls", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/neon/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/neon/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/neon/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/neon", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/vfp/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib/vfp", 0x7ffd46869b80) = -1 ENOENT (No such file or directory)
[pid 10942] openat(AT_FDCWD, "/usr/lib/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 10942] stat("/usr/lib", {st_mode=S_IFDIR|0775, st_size=51762, ...}) = 0
bin/ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
[pid 10943] +++ exited with 127 +++
+++ exited with 127 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment