[Bug 2089827] Re: Openssl can't find libs and finally crashes on "missing shared library libssl.so.1.0.0"

Adrien Nader 2089827 at bugs.launchpad.net
Fri Nov 29 08:50:43 UTC 2024


I guess that splunk is shipping its own libraries somewhere in
/opt/splunk but somehow they're not being used. I'm not familiar with
splunk at all and I don't know how they integrate with the system:
LD_LIBRARY_PATH, some other ld.so config, or maybe there's a special
environment to run? I can only guess. You should probably ask splunk
instead as it's probably a situation several splunk users have already
encountered.

Also, Ubuntu has mobed away from openssl 1.1 (the latest in the 1
branch) because it has reached EOL upstream, which directly impact its
maintenance.

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

Title:
  Openssl can't find libs and finally crashes on "missing shared library
  libssl.so.1.0.0"

Status in openssl package in Ubuntu:
  Invalid

Bug description:
  If I want to run openssl --help for example, it gives me:

  openssl: error while loading shared libraries: libssl.so.1.0.0: cannot
  open shared object file: No such file or directory


  If I do an strace, you can see it does not find a lot of libs:

  $ echo -n "my_fixed_seed" | strace openssl dgst -sha256 -binary > private_key.bin
  execve("/opt/splunk/bin/openssl", ["openssl", "dgst", "-sha256", "-binary"], 0x7ffd8d439bf8 /* 54 vars */) = 0
  brk(NULL)                               = 0x5b020241b000
  mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7eb63a447000
  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=110347, ...}) = 0
  mmap(NULL, 110347, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7eb63a42c000
  close(3)                                = 0
  openat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/lib/x86_64-linux-gnu/", {st_mode=S_IFDIR|0755, st_size=135168, ...}, 0) = 0
  openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/", {st_mode=S_IFDIR|0755, st_size=135168, ...}, 0) = 0
  openat(AT_FDCWD, "/lib/glibc-hwcaps/x86-64-v3/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/lib/glibc-hwcaps/x86-64-v3/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/lib/glibc-hwcaps/x86-64-v2/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/lib/glibc-hwcaps/x86-64-v2/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/lib/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/lib/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
  openat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v3/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v3/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v2/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/usr/lib/glibc-hwcaps/x86-64-v2/", 0x7ffd4701dba0, 0) = -1 ENOENT (No such file or directory)
  openat(AT_FDCWD, "/usr/lib/libssl.so.1.0.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  newfstatat(AT_FDCWD, "/usr/lib/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
  writev(2, [{iov_base="openssl", iov_len=7}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="libssl.so.1.0.0", iov_len=15}, {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}], 10openssl: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
  ) = 122
  exit_group(127)                         = ?
  +++ exited with 127 +++


  I tried apt install openssl --reinstall but nothing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/2089827/+subscriptions




More information about the foundations-bugs mailing list