Bug 2314015 - Invalid instruction, sddm, gwenview and others crash
Summary: Invalid instruction, sddm, gwenview and others crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openjph
Version: 40
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Simone Caronni
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-21 17:43 UTC by Doncho Gunchev
Modified: 2024-11-20 16:59 UTC (History)
2 users (show)

Fixed In Version: openjph-0.18.0-1.fc39 openjph-0.18.0-1.el9 openjph-0.18.0-1.el8 openjph-0.18.0-1.fc40 openjph-0.18.0-1.fc41 openjph-0.18.0-1.el10_0
Clone Of:
Environment:
Last Closed: 2024-11-20 14:03:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Doncho Gunchev 2024-09-21 17:43:50 UTC
I currently have libopenjph-0.15.0-1.fc40 (Build Host  : wks2.lab.negativo17.org) and when upgrading to libopenjph-0.15.0-6.fc40 from updates I can no longer login to KDE. sddm fails with blinking text cursor on blank screen (after switching to graphical mode for a second and back to text). Logging in with lightdm to LxQt works, but gwenview and many others fail. After the update logging out of KDE, shutting down becomes impossible. Starting gwenview staty to fail immediately after the library is replaced. Had to use btrfs snapshots to figure out the exact package.
AMD Ryzen 7 6800H with Radeon Graphics.
ASUS TUF Gaming A15 FA507RM_FA507RM 1.0
AMD Ryzen 7 6800H with Radeon Graphics (16) @ 4.785GHz
NVIDIA GeForce RTX 3060 Mobile / Max-Q
AMD ATI Radeon 680M


Reproducible: Always

Comment 1 Doncho Gunchev 2024-09-21 18:06:30 UTC
I managed to rebuild locally openjph-0.15.0-5.fc40.x86_64 from https://src.fedoraproject.org/rpms/openjph # aab1720c88d805f34e55abfa36f6b4a2dedf1624 and it works.
Looks like #2307795 should be reopened.

With openjph-0.15.0-6.fc40.x86_64 dmesg ends with:

[Sat Sep 21 20:13:16 2024] Call Trace:
[Sat Sep 21 20:13:16 2024]  <TASK>
[Sat Sep 21 20:13:16 2024]  ? follow_pte+0x1f0/0x220
[Sat Sep 21 20:13:16 2024]  ? __warn.cold+0x8e/0xe8
[Sat Sep 21 20:13:16 2024]  ? follow_pte+0x1f0/0x220
[Sat Sep 21 20:13:16 2024]  ? report_bug+0xff/0x140
[Sat Sep 21 20:13:16 2024]  ? handle_bug+0x3c/0x80
[Sat Sep 21 20:13:16 2024]  ? exc_invalid_op+0x17/0x70
[Sat Sep 21 20:13:16 2024]  ? asm_exc_invalid_op+0x1a/0x20
[Sat Sep 21 20:13:16 2024]  ? follow_pte+0x1f0/0x220
[Sat Sep 21 20:13:16 2024]  follow_phys+0x49/0x110
[Sat Sep 21 20:13:16 2024]  untrack_pfn+0x55/0x120
[Sat Sep 21 20:13:16 2024]  unmap_single_vma+0xa6/0xe0
[Sat Sep 21 20:13:16 2024]  zap_page_range_single+0x122/0x1d0
[Sat Sep 21 20:13:16 2024]  unmap_mapping_range+0x116/0x140
[Sat Sep 21 20:13:16 2024]  nv_revoke_gpu_mappings+0x67/0xb0 [nvidia]
[Sat Sep 21 20:13:16 2024]  RmHandleIdleSustained+0x39/0x130 [nvidia]
[Sat Sep 21 20:13:16 2024]  ? gpumgrGetGpu+0x69/0xa0 [nvidia]
[Sat Sep 21 20:13:16 2024]  rm_execute_work_item+0xe0/0x150 [nvidia]
[Sat Sep 21 20:13:16 2024]  ? os_execute_work_item+0x19/0x80 [nvidia]
[Sat Sep 21 20:13:16 2024]  _main_loop+0x8f/0x150 [nvidia]
[Sat Sep 21 20:13:16 2024]  ? __pfx__main_loop+0x10/0x10 [nvidia]
[Sat Sep 21 20:13:16 2024]  kthread+0xcf/0x100
[Sat Sep 21 20:13:16 2024]  ? __pfx_kthread+0x10/0x10
[Sat Sep 21 20:13:16 2024]  ret_from_fork+0x31/0x50
[Sat Sep 21 20:13:16 2024]  ? __pfx_kthread+0x10/0x10
[Sat Sep 21 20:13:16 2024]  ret_from_fork_asm+0x1a/0x30
[Sat Sep 21 20:13:16 2024]  </TASK>
[Sat Sep 21 20:13:16 2024] ---[ end trace 0000000000000000 ]---
[Sat Sep 21 20:57:44 2024] traps: gwenview[18571] trap invalid opcode ip:7f921968128b sp:7ffe1437a050 error:0 in libopenjph.so.0.15.0[d28b,7f921967f000+2e000]

Comment 2 Doncho Gunchev 2024-09-21 19:59:33 UTC
Can't get the crash reported, only this - https://retrace.fedoraproject.org/faf/reports/1024949/

Comment 3 Simone Caronni 2024-09-23 06:44:36 UTC
The issue is related to my build of libheif loading the openjph plugin, and KDE components loading libheif. I don't know exactly where the issue is, but my guess is on libheif.

Removing /usr/lib64/libheif/libheif-jphenc.so solves indeed the issue.

I'm triggering a rebuild of libheif on my side (negativo17) removing the plugin until the issue is more clear.

Comment 4 Fedora Update System 2024-11-11 19:50:35 UTC
FEDORA-EPEL-2024-5251513ad1 (openjph-0.18.0-1.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-5251513ad1

Comment 5 Fedora Update System 2024-11-11 19:50:36 UTC
FEDORA-EPEL-2024-b95b0e8ba2 (openjph-0.18.0-1.el10_0) has been submitted as an update to Fedora EPEL 10.0.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-b95b0e8ba2

Comment 6 Fedora Update System 2024-11-11 19:50:36 UTC
FEDORA-2024-c53872f185 (openjph-0.18.0-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-c53872f185

Comment 7 Fedora Update System 2024-11-11 19:50:37 UTC
FEDORA-2024-f4611087a4 (openjph-0.18.0-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f4611087a4

Comment 8 Fedora Update System 2024-11-12 00:25:09 UTC
FEDORA-EPEL-2024-319cf81904 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-319cf81904

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2024-11-12 02:07:10 UTC
FEDORA-2024-5caf8eb830 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5caf8eb830`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5caf8eb830

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2024-11-12 02:16:16 UTC
FEDORA-EPEL-2024-5251513ad1 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-5251513ad1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-11-12 03:22:28 UTC
FEDORA-2024-c53872f185 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-c53872f185`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c53872f185

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-11-12 03:25:24 UTC
FEDORA-2024-f4611087a4 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f4611087a4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f4611087a4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-11-12 03:57:32 UTC
FEDORA-EPEL-2024-b95b0e8ba2 has been pushed to the Fedora EPEL 10.0 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-b95b0e8ba2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Simone Caronni 2024-11-12 08:24:42 UTC
I've updated OpenJPH to 0.18.0 which should contain a fix for the autodetection of the instructions.

I will trigger a rebuild of libheif in my repository with JPH enabled again, let's see how it goes.

Comment 15 Fedora Update System 2024-11-20 14:03:34 UTC
FEDORA-2024-f4611087a4 (openjph-0.18.0-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-11-20 14:26:01 UTC
FEDORA-EPEL-2024-319cf81904 (openjph-0.18.0-1.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2024-11-20 14:43:06 UTC
FEDORA-EPEL-2024-5251513ad1 (openjph-0.18.0-1.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2024-11-20 16:21:18 UTC
FEDORA-2024-c53872f185 (openjph-0.18.0-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2024-11-20 16:46:20 UTC
FEDORA-2024-5caf8eb830 (openjph-0.18.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2024-11-20 16:59:02 UTC
FEDORA-EPEL-2024-b95b0e8ba2 (openjph-0.18.0-1.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.