QtCreator gdb dumps

Description:

After last updates gdb started crashing when debugging from qtcreator, I thought the problem was in gdb, but debugging works normally when running from terminal. For each crash in Qtcreator the following window appears: image

I can't understand what is the reason of crashes, because pop-up windows don't give any information, written that only that gdb process crash happened. After that i can see new core dump file in "/var/lib/systemd/coredump". This problem does not occur with lldb, tested and work as expected.

Additional info:

Сouldn't find a pattern for this error, at some point just running DGB from QtCreator on any executable file starts causing dumps here is some of coredump further:

core.gdb.1000.0a2de5adcbdb4a7bbfedfb8f95f7d60f.41183.1742469695000000.zst

core.gdb.1000.0a2de5adcbdb4a7bbfedfb8f95f7d60f.41241.1742469707000000.zst

core.gdb.1000.0a2de5adcbdb4a7bbfedfb8f95f7d60f.41294.1742469721000000.zst

Also in log i found message about:
*** UNEXPECTED STATE TRANSITION: Debugger::Internal::DebuggerEngine(0x60e2081e5710, name = "GdbEngine") "State changed from EngineRunRequested(3) to InferiorShutdownRequested(12)"
Trying to find something about this, came across this issue looks like similar and try this solution (disable loading .gdbinit), but have no effect

  • package version(s):
    Name : qtcreator
    Version : 16.0.0-1
    Description : Lightweight, cross-platform integrated development environment
    Architecture : x86_64
    URL : https://www.qt.io
    Licenses : GPL-3.0-only
    Groups : None
    Provides : None
    Depends On : clang clazy gcc-libs glib2 glibc libelf litehtml llvm-libs python qt6-5compat qt6-base qt6-charts qt6-declarative qt6-quick3d qt6-quicktimeline qt6-tools
    qt6-serialport qt6-svg qt6-webengine sh yaml-cpp zstd
    Optional Deps : qt6-doc: integrated Qt documentation
    qt6-examples: welcome page examples
    gdb: debugger [installed]
    cmake: cmake project support [installed]
    x11-ssh-askpass: ssh support [installed]
    git: git support [installed]
    mercurial: mercurial support
    breezy: bazaar support
    valgrind: analyze support [installed]
    perf: performer analyzer
    mlocate: locator filter
    Required By : None
    Optional For : None
    Conflicts With : None
    Replaces : None
    Installed Size : 131.94 MiB
    Packager : Antonio Rojas arojas@archlinux.org
    Build Date : Чт 13 мар 2025 21:10:48
    Install Date : Чт 20 мар 2025 10:15:32
    Install Reason : Explicitly installed
    Install Script : No
    Validated By : Signature

  • config and/or log files:
    Here some log from qtcreator process with "unexpected state transition" and relative journalctl log messages
    qtcreator_log.txt
    journalctl.log

  • link to upstream bug report, if any:

Steps to reproduce:

1. Randomly start crashing GDB process launched from QtCreator GUI

Seems like it related with amount of breakpoints, configured in GDB debug preset in QtCreator.

  1. in some of your project add at least 50 breakpoints
  2. start to debug executable related with breakpoints, indexed more then 50
  3. GDB process should crash

more details: #7 (comment 255974)

If I can provide any more diagnostic information, write what would be helpfull and I'll send it

Edited by Alexander Kolbeko