site  contact  subhomenews

Argon2 illegal instruction problem again

August 15, 2023 — BarryK

I posted about this problem, and a fix, about a month ago:

https://bkhome.org/news/202307/argon2-illegal-instruction.html

Easy 5.4.10 is built with the argon2 PET package that I compiled in the Compaq Presario. OK, this has a very old CPU, an Intel Core2, and I did test the 'argon2' binary in the Compaq and it worked.

Well, the Core2 CPU has, I think, one more machine instruction than the very earliest 64-bit CPU released by Intel, the Nocona CPU. But, you really have to be going back a long way to have a PC with Nocona CPU.

So, I was puzzled when Caramel reported that "illegal instruction" problem again, running Easy 5.4.10:

https://forum.puppylinux.com/viewtopic.php?p=96376#p96376

I checked in woofQ, and yes, the '3buildeasydistro' script copies the 'argon2' statically-linked-with-musl binary to rootfs-complete/sbin, whereas the PET has it at rootfs-complete/usr/bin

Did a quick fix, modified '3buildeasydistro' to copy the statically-linked 'argon2' to overwrite the one from the PET.

There is still a potential problem though, as KeePassXC uses libargon2.so*, which is in the PET.

Anyway, here is the quick fix:

https://github.com/bkauler/woofq/commit/b41b17cd4369a073cc2b26bd59a72174f513e9cd   

Tags: easy