Skip to content

GDB: Enabling TUI causes memory access error #1030

@david-23-05

Description

@david-23-05

Hi everyone,

when I try to enable GDBs TUI to debug a program running on an STM32n6 dev board, the debugger crashes with a segmentation fault.

Steps to reproduce

  1. Flash the hello_world zephyr sample code
  2. Enter GDB via west debug
  3. Try to enable the TUI: tui enable

GDB then crashes with the following error message:

Fatal signal: Speicherzugriffsfehler
----- Backtrace -----
0x5563c4e25211 ???
0x5563c4f0c2f2 ???
0x5563c4f0c37f ???
0x7f8ba704290f ???
0x7f8ba7412882 newterm_sp
0x7f8ba7413ca4 newterm
0x5563c50cbf0e ???
0x5563c50cc0f2 ???
0x5563c50f6eb8 ???
0x5563c50f79e9 ???
0x5563c5111fb3 ???
0x5563c4f0c40d ???
0x5563c4f0d990 ???
0x5563c4f0c20f ???
0x5563c51c1cf4 ???
0x5563c51c1dca ???
0x5563c4f915a4 ???
0x5563c4f92ec4 ???
0x5563c4d7578a ???
0x7f8ba702b2fa __libc_start_call_main
0x7f8ba702b3ca __libc_start_main_impl
0x5563c4d85d29 ???
0xffffffffffffffff ???
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible.  GDB will now terminate.

This is a bug, please report it.  For instructions, see:
<https://github.com/zephyrproject-rtos/sdk-ng/issues>.

Shutting down...
Exit.

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: GDBIssues related to GDB (GNU Debugger)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions