[gnutls-devel] GnuTLS | p11-kit / p11tool hang on clang (#965)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Thu Apr 16 09:52:02 CEST 2020
Andreas Fuchs commented:
I got an strace of the whole thing. Maybe this helps ?
```c
+ strace -e trace=file p11tool --list-tokens
execve("/usr/bin/p11tool", ["p11tool", "--list-tokens"], 0x7ffc2137c6e8 /* 46 vars */) = 0
openat(AT_FDCWD, "/usr/lib64/clang/8.0.0/lib/linux/libclang_rt.asan-x86_64.so", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/tls/haswell/x86_64/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls/haswell/x86_64", 0x7ffdd98d2e10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/tls/haswell/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls/haswell", 0x7ffdd98d2e10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/tls/x86_64/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls/x86_64", 0x7ffdd98d2e10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/tls/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/tls", 0x7ffdd98d2e10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/haswell/x86_64/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/haswell/x86_64", 0x7ffdd98d2e10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/haswell/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/haswell", 0x7ffdd98d2e10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/x86_64/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/x86_64", 0x7ffdd98d2e10) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libopts.so.25", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libopts.so.25", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libtasn1.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libtasn1.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libp11-kit.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libp11-kit.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libidn2.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libidn2.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libunistring.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libunistring.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libnettle.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libnettle.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libhogweed.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libhogweed.so.4", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libgmp.so.10", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/lib/libffi.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
readlink("/proc/self/exe", "/usr/bin/p11tool", 4096) = 16
open("/proc/self/cmdline", O_RDONLY) = 3
open("/proc/self/environ", O_RDONLY) = 3
open("/proc/self/environ", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
open("/proc/self/maps", O_RDONLY) = 3
stat("llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/workspace/tpm2-pkcs11/build/../tools/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("./src/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/root/.local/bin//llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/ibmtpm974/src/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/usr/local/sbin/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/usr/sbin/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/usr/bin/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/sbin/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/bin/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
stat("/workspace/tpm2-pkcs11/tools/llvm-symbolizer", 0x7ffdd98d3020) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/proc/sys/crypto/fips_enabled", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/system-fips", F_OK) = -1 ENOENT (No such file or directory)
stat("/etc/crypto-policies/back-ends/gnutls.config", {st_mode=S_IFREG|0644, st_size=394, ...}) = 0
openat(AT_FDCWD, "/etc/crypto-policies/back-ends/gnutls.config", O_RDONLY) = 3
openat(AT_FDCWD, "/workspace/tpm2-pkcs11/build/../tools", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "./src", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/root/.local/bin/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/ibmtpm974/src", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/sbin", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/bin", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/sbin", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/bin", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
access("/usr/bin/p11tool", R_OK|X_OK) = 0
openat(AT_FDCWD, "/etc/pkcs11/pkcs11.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/pkcs11/modules", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
stat("/etc/pkcs11/modules/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/etc/pkcs11/modules/..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/etc/pkcs11/modules/tpm2_pkcs11.module", {st_mode=S_IFREG|0644, st_size=65, ...}) = 0
openat(AT_FDCWD, "/etc/pkcs11/modules/tpm2_pkcs11.module", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/share/p11-kit/modules", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
stat("/usr/share/p11-kit/modules/p11-kit-trust.module", {st_mode=S_IFREG|0644, st_size=902, ...}) = 0
openat(AT_FDCWD, "/usr/share/p11-kit/modules/p11-kit-trust.module", O_RDONLY|O_CLOEXEC) = 4
stat("/usr/share/p11-kit/modules/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/p11-kit/modules/..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/p11-kit/modules/opensc.module", {st_mode=S_IFREG|0644, st_size=383, ...}) = 0
openat(AT_FDCWD, "/usr/share/p11-kit/modules/opensc.module", O_RDONLY|O_CLOEXEC) = 4
openat(AT_FDCWD, "/usr/lib64/pkcs11/p11-kit-trust.so", O_RDONLY|O_CLOEXEC) = 3
[ hangs here ]
```
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/965#note_325020424
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200416/a7c59f71/attachment-0001.html>
More information about the Gnutls-devel
mailing list