Bug 513113

Summary: DrKonqi fails to get any useful crash information if libraries with no build-id are present
Product: [Applications] drkonqi Reporter: Prajna Sariputra <putr4.s>
Component: backtraceparsingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: sitter
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Prajna Sariputra 2025-12-09 01:49:30 UTC
SUMMARY
With the intel-oneapi-compiler-shared-runtime-libs package installed on Arch Linux (required by the packages for Blender and TensorFlow), the library /opt/intel/oneapi/compiler/2025.0/lib/libintlc.so.5 does not have a build-id, so DrKonqi fails to run gdb and extract debug output because the /usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py script throws an exception.

While I suppose that would make things harder if an app that does use that library is the one that's crashing, in my case I noticed it happening once with plasmashell and twice with plasma-systemmonitor, and in all these cases DrKonqi fails to extract any debug information so I couldn't report them, so I think it would be nice if these odd libraries without build-ids could be set aside somehow so some kind of report could still be sent automatically (especially considering that neither of these two apps should be using that library anyway.

Running `coredumpctl gdb` still works fine, and I can still get the backtrace using the `thread apply all bt` command in the gdb prompt there.

STEPS TO REPRODUCE
1. Install the intel-oneapi-compiler-shared-runtime-libs package on Arch Linux (or have another library which does not have a build-id)
2. Get DrKonqi to trigger somehow

OBSERVED RESULT
DrKonqi says "Gathering crash information failed for unknown reasons. You can retry, close the window, or view detailed output."

EXPECTED RESULT
DrKonqi should be able to get the debug information as normal, perhaps with just a warning rather than completely failing

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Kernel Version: 6.17.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 18 × Intel® Core™ Ultra 5 125H
Memory: 32 GiB of RAM (30.8 GiB usable)
Graphics Processor: Intel® Arc
Manufacturer: Framework
Product Name: Laptop 13 (Intel Core Ultra Series 1)
System Version: A2

ADDITIONAL INFORMATION
Looking at the Arch packaging files for the problematic library (https://gitlab.archlinux.org/archlinux/packaging/packages/intel-oneapi-compiler-shared-runtime/-/blob/main/PKGBUILD?ref_type=heads), it appears that the library is compiled by Intel rather than by Arch.

Below is an example of the detailed output DrKonqi refers to:

Starting debugger gdb --nw --nx --batch --command=/tmp/drkonqi.QbKjzC --command=/tmp/drkonqi.EzoxdU --core=/tmp/drkonqi-core.rmoJJa/core /usr/bin/plasma-systemmonitor

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.

warning: Can't open file anon_inode:i915.gem during file-backed mapping note processing

warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:kwin-dmabuf-feedback-table (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JITCode:QtQml (deleted) during file-backed mapping note processing
[New LWP 117782]
[New LWP 117792]
[New LWP 117816]
[New LWP 117826]
[New LWP 117938]
[New LWP 117804]
[New LWP 117806]
[New LWP 117814]
[New LWP 117815]
[New LWP 117933]
[New LWP 117947]
[New LWP 117784]
[New LWP 117808]
[New LWP 117817]
[New LWP 117787]
[New LWP 117931]
[New LWP 117785]
[New LWP 117783]
[New LWP 117805]
[New LWP 117827]
[New LWP 117948]
[New LWP 117807]
[New LWP 117786]
[New LWP 117930]
[New LWP 117946]
[New LWP 117932]
[New LWP 117945]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/plasma-systemmonitor'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f9b18e9890c in ?? () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f9b14cda300 (LWP 117782))]
Traceback (most recent call last):
  File "/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 608, in print_preamble
    print_preamble_internal()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 582, in print_preamble_internal
    resolve_modules()
    ~~~~~~~~~~~~~~~^^
  File "/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 577, in resolve_modules
    image = CoreImage(line)
  File "/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py", line 545, in __init__
    raise NoBuildIdException(f'No build id found in core image: {eu_unstrip_line}')
NoBuildIdException: No build id found in core image: 0x7f9a8c733000+0x61238 - /opt/intel/oneapi/compiler/latest/lib/libintlc.so.5 - libintlc.so.5
No build id found in core image: 0x7f9a8c733000+0x61238 - /opt/intel/oneapi/compiler/latest/lib/libintlc.so.5 - libintlc.so.5
Sentry is attempting to send 2 pending events
Waiting up to 30 seconds
Press Ctrl-C to quit
Debugging ended with exit code '1' and exit status 'NormalExit'
Comment 1 Harald Sitter 2025-12-09 12:01:08 UTC

*** This bug has been marked as a duplicate of bug 504388 ***