You are not logged in.

#1 2024-04-03 03:36:49

0styx0
Member
Registered: 2024-04-03
Posts: 3

[SOLVED] illegal hardware instruction on many applications

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
What I've tried

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 smile

Last edited by 0styx0 (2024-04-03 22:45:59)

Offline

#2 2024-04-03 03:41:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [SOLVED] illegal hardware instruction on many applications

What processor? This usually means that something is requiring features/instructions your CPU doesn't have.

Offline

#3 2024-04-03 06:38:29

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,153

Re: [SOLVED] illegal hardware instruction on many applications

Please post a backtrace of one of the crashes

Offline

#4 2024-04-03 08:00:09

seth
Member
Registered: 2012-09-03
Posts: 59,024

Offline

#5 2024-04-03 13:33:12

loqs
Member
Registered: 2014-03-06
Posts: 18,076

Re: [SOLVED] illegal hardware instruction on many applications

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

#6 2024-04-03 21:04:28

0styx0
Member
Registered: 2024-04-03
Posts: 3

Re: [SOLVED] illegal hardware instruction on many applications

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

#7 2024-04-03 21:47:18

loqs
Member
Registered: 2014-03-06
Posts: 18,076

Re: [SOLVED] illegal hardware instruction on many applications

You could also use pcre2 10.43-2 in core-testing.  Does lib32-pcre2 10.43-1 need the same fix?

Offline

#8 2024-04-03 21:48:22

seth
Member
Registered: 2012-09-03
Posts: 59,024

Re: [SOLVED] illegal hardware instruction on many applications

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

#9 2024-04-03 22:44:07

0styx0
Member
Registered: 2024-04-03
Posts: 3

Re: [SOLVED] illegal hardware instruction on many applications

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

Board footer

Powered by FluxBB