Bug 484974

Summary: "Debuginfod has been disabled" on KDE Neon
Product: [KDE Neon] neon Reporter: Malte S. Stretz <mss>
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carlosd.kde, jr, neon-bugs, sitter, smowtenshi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=454063
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Malte S. Stretz 2024-04-03 11:50:42 UTC
SUMMARY
The "Developer Information" in DrKonqi's Crash handler starts with

> This GDB supports auto-downloading debuginfo from the following URLs:
> https://debuginfod.neon.kde.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.

This should be fixed via bug 454063 but it looks like distros have to set WITH_GDB12 explicitly when compiling the package.

STEPS TO REPRODUCE
1. Make sure you have no debug symbols installed
2. kwrite &
3. killall -SEGV kwrite
4. Look at the Developer Info of the Crash Reporter (m

OBSERVED RESULT
No debug symbols are downloaded from https://debuginfod.neon.kde.org/ for eg. Qt6:
Thread 12 (Thread 0x7583d0ffe640 (LWP 90704)):
#0  0x00007583d8918bcf in __GI___poll (fds=0x7583d0ffda10, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007583d3df18d1 in ?? () from /lib/x86_64-linux-gnu/libQt6WaylandClient.so.6
#2  0x00007583d8f5ce7d in ?? () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#3  0x00007583d8894ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#4  0x00007583d8926850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

EXPECTED RESULT
A better stack trace

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-26-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 19,4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: LENOVO
Product Name: 20F9CTO1WW
System Version: ThinkPad T460s
Comment 1 Malte S. Stretz 2024-04-03 12:08:18 UTC
Looks like somebody forgot to add a `-D` in https://invent.kde.org/neon/kde/drkonqi/-/blob/Neon/release/debian/rules?ref_type=heads#L5
Comment 2 smow 2024-05-15 16:30:10 UTC
(In reply to Malte S. Stretz from comment #0)
> SUMMARY
> The "Developer Information" in DrKonqi's Crash handler starts with
> 
> > This GDB supports auto-downloading debuginfo from the following URLs:
> > https://debuginfod.neon.kde.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.

I'm also seeing this on Arch, thought it seems their PKGBUILD is correct (https://gitlab.archlinux.org/archlinux/packaging/packages/drkonqi/-/blob/main/PKGBUILD#L52) unless it should say 
>  -DWITH_GDB12=TRUE
instead of
>  -DWITH_GDB12=ON

---
Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-zen1-2-zen (64-bit)
Graphics Platform: Wayland