You are not logged in.
I waited a month or two between upgrading my system, and since I updated last week I've gotten `illegal hardware instruction` errors when started many programs which worked before the upgrade.
Example:
❯ keepassxc
illegal hardware instruction keepassxc
~
❯
dmesg output from different programs:
[120405.305764] traps: qt5ct[1516791] trap invalid opcode ip:6dedca385d13 sp:76a118ecd3d0 error:0
[120443.877402] traps: nextcloud[1517413] trap invalid opcode ip:6d9b4ab2daea sp:75c01ba1fc60 error:0
[120508.967659] traps: keepassxc[1518467] trap invalid opcode ip:65d831c24a2b sp:734fd95e0500 error:0
[120630.112735] traps: keepassxc-cli[1520458] trap invalid opcode ip:6fab1bc968b6 sp:705a0059a800 error:0
uname -a:
Linux my-name 6.7.9-hardened1-1-hardened #1 SMP PREEMPT_DYNAMIC Fri, 08 Mar 2024 18:30:35 +0000 x86_64 GNU/Linux
Deleted and reinstalling problematic packages. Example:
pacman -Rsn keepassxc
pacman -S keepassxc
Fully upgraded all packages again, eg
pacman -Syu
and rebooted my computer
Ensured my ~/.config has correct permissions (as per this reddit post)
Any help would be appreciated, please let me know if any additional info is needed
Last edited by 0styx0 (2024-04-03 22:45:59)
Offline
What processor? This usually means that something is requiring features/instructions your CPU doesn't have.
Online
Please post a backtrace of one of the crashes
Offline
Offline
keepassxc -> botan -> https://github.com/randombit/botan/blob … uid.h#L218
qt5ct -> qt5-base -> pcre2 (see seth's first link)
Please post a backtrace with debug symbols for qt5ct, nextcloud and keepassxc.
Last edited by loqs (2024-04-03 16:31:30)
Offline
Thank you everyone! As seth and loqs suggested, the issue indeed stemmed from pcre. The following fixed my issue for all applications:
# lib32 depended on pcre2-10.43, so I needed to downgrade lib32 before downgrading pcre2
pacman -U /var/cache/pacman/pkg/lib32-pcre2-10.41-1-x86_64.pkg.tar.zst
# the actual fix
pacman -U /var/cache/pacman/pkg/pcre2-10.42-2-x86_64.pkg.tar.zst
Resources:
Offline
You could also use pcre2 10.43-2 in core-testing. Does lib32-pcre2 10.43-1 need the same fix?
Offline
Also botan isn't an issue?
keepassxc works? (It might have just been infecteced through libQt5Core.so)
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
core-testing contains a working pcre2 version. Tested by:
pacman -S core/pcre2
Installs version: 10.43-1
Result: Produces the issue listed in my initial post
pacman -S core-testing/pcre2
Installs version: 10.43-2
Result: Fixes the issue listed in my initial post
So, either downgrading pcre2 to 10.42-2 OR upgrading to 10.43-2 fixes the issue.
lib32-pcre2 does not require a fix. Tested by installing lib32-pcre2 version 10.43-1 from multilib, which works on pcre2 version 10.43-2
botan is not an issue - I successfully opened and used keepassxc after downgrading and after upgrading pcre2 to the aforementioned versions
Thanks for the reminder, I'll mark this thread as resolved
Offline