Bug 443004

Summary: gdb keeps crashing on kdevelop
Product: [Applications] kdevelop Reporter: Mattia Basaglia <glax>
Component: CPP DebuggerAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal CC: jonathan.verner, niko.sams
Priority: NOR    
Version First Reported In: 5.6.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mattia Basaglia 2021-09-27 09:34:58 UTC
SUMMARY

When debugging using kdevelop, I often get the message that gdb crashed and the debugging session ends.

If I use gdb outside kdevelop I have no issues with it.

STEPS TO REPRODUCE

It mostly crashes if I add breakpoints when the debugger is running or when I'm stepping through the code after it hit a breakpoint. While it isn't super consistent, it happens very often when I'm debugging this project: https://gitlab.com/mattbas/glaxnimate


OBSERVED RESULT

KDevelop stops debugging and shows this message:

The debugger process 'gdb' crashed.
Because of that the debug session has to be ended.
Try to reproduce the crash without KDevelop and report a bug.


EXPECTED RESULT

It shouldn't crash, I'm fairly certain it's a Kdevelop bug because gdb from the command line does not crash.

SOFTWARE/OS VERSIONS
gdb: GNU gdb (Ubuntu 10.1-2ubuntu2) 10.1.90.20210411-git
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-36-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × AMD FX(tm)-8320 Eight-Core Processor
Memory: 31.4 GiB of RAM
Graphics Processor: AMD Radeon ™ RX 470 Graphics

ADDITIONAL INFORMATION
Comment 1 Mattia Basaglia 2022-08-21 15:11:58 UTC
This still happens as of version 5.7.211203