-
Notifications
You must be signed in to change notification settings - Fork 57
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
mkdwarfs always crashes with SIGABRT #210
Comments
Interesting! Can you do me a favour and run:
The output should contain something like this:
DwarFS uses Unfortunately, I have no experience with FIPS mode; from the OpenSSL documentation I would assume that SHA512/256 would even work in FIPS mode as it states "CONFORMING TO NIST FIPS 180-4". |
This is equally bizarre output. I grabbed just the
|
The top of
Which seems to be missing openssl 🤔 |
Yeah, I kinda expected something like this. Didn't quite expect that none of the OpenSSL algorithms would be present, though.
That's actually expected; the OpenSSL is not (yet) part of this list. It's nonetheless linked into the binary. I wonder if OpenSSL has some dependency on kernel functions and the (rather old) kernel and OpenSSL aren't getting along to well. |
I don't think it's that. I just installed Fedora 22 and tried:
That kernel is even older. The binary seems to work just fine:
|
I was able to build it inside a ubuntu:23:10 container it works fine, so it's probably something about FIPS not being linked in and so you get no hashes. |
That's definitely the root cause. I also installed Fedora 29 in a VM.
|
Well done @mhx. That certainly proves it. |
The funny thing is: I can build a statically linked test program on my Gentoo machine, copy it to the FIPS-enabled Fedora 29 VM, and get:
And I think that works because my Gentoo OpenSSL library is built without FIPS support:
|
Reopening as I think this is actually fixable. |
If you want, you can try dwarfs-universal-0.9.7-2-gdadc2e0254-Linux-x86_64-clang or dwarfs-0.9.7-2-gdadc2e0254-Linux-x86_64-clang.tar.zst. You'll need to be signed in to GitHub to be able to download the build artifacts. The binaries work fine on my FIPS-enabled VM. The next release will contain the fix. |
I used the $ ./bin/mkdwarfs -H | grep -A6 file-hash
--file-hash arg (=xxh3-128) choice of file hashing function (none,
blake2b512, blake2s256, md5, md5-sha1,
ripemd160, sha1, sha224, sha256,
sha3-224, sha3-256, sha3-384, sha3-512,
sha384, sha512, sha512-224, sha512-256,
shake128, shake256, sm3, xxh3-128,
xxh3-64) Well done! 🏁 🚀 |
Fixed in v0.9.8. Thanks for your help! |
I grabbed this release:
dwarfs-0.9.7-Linux-x86_64-clang
and from the same directory I issued:Kernel 4.18.0-513.18.1.el8_9.x86_64 on RHEL 8.9 if that helps.
My only guess is machine has FIPS enabled on it.
The text was updated successfully, but these errors were encountered: