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

libmbedcrypto breaking some apps #37665

Closed
CaptainDrewBoy opened this issue Jun 24, 2022 · 12 comments
Closed

libmbedcrypto breaking some apps #37665

CaptainDrewBoy opened this issue Jun 24, 2022 · 12 comments
Labels
needs-testing Testing a PR or reproducing an issue needed

Comments

@CaptainDrewBoy
Copy link

CaptainDrewBoy commented Jun 24, 2022

(notes with an asterix are largely anecdotal and people smarter than me can probably think of reasons to disregard them)

mpv and qutebrowser won't start for me anymore, both citing an error while loading shared libraries: /usr/lib64/libmbedcrypto.so.3: file too short
The cited file does exist, but is empty. I have mbedtls installed, but Void's version appears to be out of date from upstream.
* I have also had difficulties getting apps to register mic input, but I can't tell if these are related.
* I suspect, but don't have the technical know-how to prove, that this is related to a recent update that pulled librist onto my system, which depends on mbedtls.

@HadetTheUndying
Copy link
Contributor

I tried to verify this on my own, but it is not reproducible on my system. However after talking in IRC it does appear the LTS version has changed. I'm unsure if it's related.

@sgn
Copy link
Member

sgn commented Jun 24, 2022

Please run xbps-pkgdb -a and check if there is any problems in your machine.

@CaptainDrewBoy
Copy link
Author

Please run xbps-pkgdb -a and check if there is any problems in your machine.

Produces no output. I was having some output before in relation to arc-theme, but after fixing them, and reconfiguring mbedtls and the apps that wouldn't work, nothing changed.

@sgn
Copy link
Member

sgn commented Jun 24, 2022

How about: ls -al /usr/lib/libmbedcrypto*

@CaptainDrewBoy
Copy link
Author

CaptainDrewBoy commented Jun 24, 2022

How about: ls -al /usr/lib/libmbedcrypto*

-rwxr-xr-x 1 root root 0 Feb 20 00:15 /usr/lib/libmbedcrypto.so.2.16.12 lrwxrwxrwx 1 root root 24 Feb 20 00:15 /usr/lib/libmbedcrypto.so.3 -> libmbedcrypto.so.2.16.12

As far as I can tell these files are empty.

@paper42 paper42 added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Jun 24, 2022
@paper42
Copy link
Member

paper42 commented Jun 24, 2022

I can not reproduce this, the file is not empty on my system. What's the output of xuname on your system? Please use the bug issue template next time when reporting bugs.

@sgn
Copy link
Member

sgn commented Jun 25, 2022

/usr/lib/libmbedcrypto.so.2.16.12 if this file is empty, xbps-pkgdb should report an errors.
Are you sure you install mbedtls correctly?

@CaptainDrewBoy
Copy link
Author

I can not reproduce this, the file is not empty on my system. What's the output of xuname on your system? Please use the bug issue template next time when reporting bugs.

Firstly, sorry for not using the template.
xuname gives Void 5.15.47_1 x86_64 GenuineIntel uptodate rrrmFFFFFF

/usr/lib/libmbedcrypto.so.2.16.12 if this file is empty, xbps-pkgdb should report an errors. Are you sure you install mbedtls correctly?

mbedtls was pulled in as a dependency for something pretty quickly after I setup my system iirc. I've never really messed with its installation, xbps has just managed it for me.

@sgn
Copy link
Member

sgn commented Jun 25, 2022

I meant, are you sure, sudo xbps-pkgdb -a reports no errors? With an empty /usr/lib/libmbedcrypto.so.2.16.12, it should report some error like:

ERROR: linux5.15: hash mismatch for /boot/vmlinuz-5.15.47_1.

Your installation is somewhat broken, and you should be told that.

@CaptainDrewBoy
Copy link
Author

CaptainDrewBoy commented Jun 25, 2022

I meant, are you sure, sudo xbps-pkgdb -a reports no errors? With an empty /usr/lib/libmbedcrypto.so.2.16.12, it should report some error like:

ERROR: linux5.15: hash mismatch for /boot/vmlinuz-5.15.47_1.

Your installation is somewhat broken, and you should be told that.

I swear this wasn't popping up before, but I ran this command again to triple check and now there is more output.

ERROR: mbedtls: hash mismatch for /usr/lib/libmbedtls.so.2.16.12.
ERROR: mbedtls: hash mismatch for /usr/lib/libmbedx509.so.2.16.12.
ERROR: mbedtls: files check FAILED.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/java has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/jjs has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/keytool has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/orbd has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/pack200 has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/policytool has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/rmid has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/rmiregistry has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/servertool has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/tnameserv has wrong target.
ERROR: openjdk8: alternatives group jdk symlink /usr/bin/unpack200 has wrong target.

@sgn
Copy link
Member

sgn commented Jun 25, 2022

OK. So, only mbedtls is broken. Please re-install that package: sudo xbps-install -yff mbedtls

@CaptainDrewBoy
Copy link
Author

It would appear that fixed my issue.
Which is weird, because I tried reinstalling mbedtls before filing the issue.
Maybe one of the flags were different?
Whatever, it's fixed now. Thank you for all the help.

@sgn sgn closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2022
@sgn sgn removed the bug Something isn't working label Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

4 participants