Timeline wise, my debugging below was performed before seeing comment
#19.

So, running $ pkcsconf -t, under gdb is not helpful, as the segfault is in the 
non-existant/non-loaded object.
Running same command like so:
 LD_DEBUG=all LD_BIND_NOT=1 pkcsconf -t

Reveals in the debug output that:
    187548:     file=libep11.so [0];  dynamically loaded by 
/usr/lib/s390x-linux-gnu/libpkcs11_ep11.so [0]
    187548:     find library=libep11.so [0]; searching
    187548:      search cache=/etc/ld.so.cache

However, libep11.so does not exist on Ubuntu. I would call this
"dependency hell". It appears that libpkcs11_ep11.so requires
dependencies that are not declared by the package in the Ubuntu archive,
and which do not appear to be satisfiable from the Ubuntu archive. This
error path is not nice, so I guess libpkcs11_ep11.so does not handle
lack of libep11.so gracefully?

What is libep11.so and where is it supposed to come from? Since we do
not appear like we have it in the Ubuntu archive, I guess we should not
be shipping libpkcs11_ep11.so as it cannot be used at all =/ and causes
crashes. I wonder if it is my mistake for packaging libpkcs11_ep11.so in
the first place.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1725250

Title:
  Ubuntu 17.10 - opencryptoki 3.7.0 segmentation fault on pkcsconf -t

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1725250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to