Bug 443004 - gdb keeps crashing on kdevelop
Summary: gdb keeps crashing on kdevelop
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: 5.6.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-27 09:34 UTC by Mattia Basaglia
Modified: 2022-08-21 15:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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