Skip to content

Many GDB warnings "Internal error: pc 0x100 in read in CU, but not in symtab" #119

Description

@iainism

I have followed the set-up and all the suggestions in #27 however my GDB console is filled with warning messages, e.g.

$ rust-gdb ../../../target/thumbv7em-none-eabihf/debug/examples/init
GNU gdb (Ubuntu 15.1-1ubuntu1~24.04.1) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../../../target/thumbv7em-none-eabihf/debug/examples/init...
(gdb) target remote :1337
Remote debugging using :1337
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
0x00000100 in cortex_m_rt::{impl#1}::fmt (self=<error reading variable: Cannot access memory at address 0x20020040>, 
    f=<error reading variable: Cannot access memory at address 0x20020044>)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
(gdb) monitor reset halt
Resetting and halting target
Target halted
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
(gdb) b main
Breakpoint 1 at 0x178: file mdbook/src/05-meet-your-software/examples/init.rs, line 10.
Note: automatically using hardware breakpoints for read-only addresses.
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)
warning: (Internal error: pc 0x100 in read in CU, but not in symtab.)

I have run cargo install --locked probe-rs-tools and I have RUST_GDB=gdb-multiarch in my environment, so I'm not sure what else I may need to try.

Versions:

$ rustup --version
rustup 1.29.0 (28d1352db 2026-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: the currently active `rustc` version is `rustc 1.96.0 (ac68faa20 2026-05-25)`

$ probe-rs --version
probe-rs 0.31.0 (git commit: crates.io)

$ cargo --version
cargo 1.96.0 (30a34c682 2026-05-25)

$ rust-gdb --version
GNU gdb (Ubuntu 15.1-1ubuntu1~24.04.1) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions