argon2 build without optimizations as the previous build caused illegal instructions on certain CPUs.
argon2 build without optimizations #30
hakerdefo/patch-1 into master
As mentioned on Matrix, Argon2 has not changed in over 2 years, issue with keepassxc strated just a week ago on your system, so not changing Argon2 for all users because of your system, until clearer what you have going on. As asked before, full SysInfo log is needed.
@demmm
I tested argon2 standalone and it gave me the following error,
Illegal instruction (core dumped)
Apparently when build with optimization, argon2 will error out with illegal instructions on many processors. Arch Linux fixed this exact bug in Jan 8, 2018,
github.com/archlinux/svntogit-packages@fdf4c3b0da
The same bug reported in Debian in 2016,
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828779
And, in Fedora in 2016,
https://bugzilla.redhat.com/show_bug.cgi?id=1512845
Why it didn't occur in my system previously? Well, I think I might have used AES-KDF in Keepassxc previously and hence argon2 wasn't used.
Again, SysInfo is needed, keepassxc is used by many in KaOS (and as soon there is anything wrong with keepassxc, it is reported immediately), so not changing Argon2 for one user who so far refuses to provide much needed logs.
Again, SysInfo is needed, keepassxc is used by many in KaOS (and as soon there is anything wrong with keepassxc, it is reported immediately), so not changing Argon2 for one user who so far refuses to provide much needed logs.
Here you go buddy,
Nothing in the logs that shows a cause for this issue.
KaOS is much more aligned with Gentoo, then distro's you link. Gentoo sets OPT still as 1 by default, if SSE2 is enabled:
https://gitweb.gentoo.org/repo/gentoo.git/commit/app-crypt/argon2?id=b71890e7ec94187258bbd0de4553d8dd8d339efd
More research needed before this PR will be considered. Will keep you posted.
See the discussion:
https://github.com/P-H-C/phc-winner-argon2/pull/113
@demmm
Okay, I hope you won't forget about this one and will get around to resolving this.
@demmm
I compiled the argon2 package on my system using makepkg without changing any flags in the default PKGFILE and then installed the compiled binary and guess what? It works like a charm. So for me, the issue is gone but hopefully, you'll dig deep and may be figure out why pre-compiled binary ended-up throwing illegal instructions error on my CPU.
P.S. The working self compiled binary perhaps explains why Gentoo hasn't changed OPT as it is a source based distribution and users compile the stuff on their own machines instead of using pre-built binaries.
- argon2/PKGBUILD
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?