Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL:nss_util.cc(156)] nss_error=-5925, os_error=0 #1

Closed
probonopd opened this issue Jan 5, 2019 · 10 comments
Closed

FATAL:nss_util.cc(156)] nss_error=-5925, os_error=0 #1

probonopd opened this issue Jan 5, 2019 · 10 comments

Comments

@probonopd
Copy link
Owner

probonopd commented Jan 5, 2019

Does not run on xubuntu-18.04-desktop-amd64.iso:

Downloads/NoteCAD-1cbe7ae-x86_64.AppImage: /tmp/.mount_NoteCAnDXIM7/usr/bin/../lib/libdbus-1.so.3: no version information available (required by Downloads/NoteCAD-1cbe7ae-x86_64.AppImage)
/tmp/.mount_NoteCAnDXIM7/usr/bin/note-cad: /tmp/.mount_NoteCAnDXIM7/usr/bin/../lib/libdbus-1.so.3: no version information available (required by /tmp/.mount_NoteCAnDXIM7/usr/bin/note-cad)
[4418:0105/133327.616142:FATAL:nss_util.cc(156)] nss_error=-5925, os_error=0
Aborted

me@host:~$ sudo apt-get install libnss3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libnss3 is already the newest version (2:3.35-2ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 435 not upgraded.
@probonopd
Copy link
Owner Author

Possibly related to probonopd/linuxdeployqt#35

@probonopd
Copy link
Owner Author

probonopd commented Jan 5, 2019

me@host:~$ LD_DEBUG=libs Downloads/NoteCAD-1cbe7ae-x86_64.AppImage
(...)
      4998:	  trying file=/usr/lib/libsoftokn3.so
      4998:	
      4998:	/tmp/.mount_NoteCADSheYd/usr/bin/note-cad: error: symbol lookup error: undefined symbol: localtime64 (fatal)
      4998:	/tmp/.mount_NoteCADSheYd/usr/bin/note-cad: error: symbol lookup error: undefined symbol: localtime64_r (fatal)
[4998:0105/133835.092086:FATAL:nss_util.cc(156)] nss_error=-5925, os_error=0

me@host:~$ grep -r libsoftokn3 squashfs-root/
Binary file squashfs-root/usr/lib/libnss3.so matches

@probonopd
Copy link
Owner Author

probonopd commented Jan 5, 2019

me@host:~$ rm ssquashfs-root/usr/lib/libnss*

Runs. But it may have undesired side effects for some distributions.

@probonopd
Copy link
Owner Author

probonopd commented Jan 5, 2019

Only shows a white page though; not sure yet why.

When using http rather than https, then it loads.

@probonopd
Copy link
Owner Author

probonopd commented Jan 5, 2019

https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.AppImage works; what have they done differently?

They are not shipping the problematic libs:

me@host:~$ find /tmp/.mount_UnityHdCJ1L6/ | grep nss
me@host:~$ find /tmp/.mount_UnityHdCJ1L6/ | grep soft

Reference:
AppImage/appimage.github.io#928

@liyuzhao
Copy link

liyuzhao commented Oct 19, 2020

I met the same problem, how did you solve it? @probonopd

@probonopd
Copy link
Owner Author

probonopd commented Oct 19, 2020

@azubieta
Copy link

Regarding the issue, provably some required lib is not being bundled (maybe a plug-in), strace -ff -e trace=file <your binary> may help you find what's being loaded from the system. Once you find it just add it to the bundle.

appimage-builder does embed that lib and many others, it relies on the knowledge contained the Debian/Ubuntu package system to resolve dependencies (reading the needed section of an ELF binary is not enough).

@probonopd
Copy link
Owner Author

@liyuzhao Which distribution are you using? Please retry using Ubuntu xenial. Does the problem also exist there?

@liyuzhao
Copy link

Regarding the issue, provably some required lib is not being bundled (maybe a plug-in), strace -ff -e trace=file <your binary> may help you find what's being loaded from the system. Once you find it just add it to the bundle.

appimage-builder does embed that lib and many others, it relies on the knowledge contained the Debian/Ubuntu package system to resolve dependencies (reading the needed section of an ELF binary is not enough).

thanks so much ,I solve my problem with you remind(strace -ff -e trace=file  ).
You are very strong!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants