public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug corefiles/30273] New: Regression - "Core file format not supported"
@ 2023-03-25  2:31 fthain@linux-m68k.org
  2023-03-25 17:10 ` [Bug corefiles/30273] " tromey at sourceware dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fthain@linux-m68k.org @ 2023-03-25  2:31 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30273

            Bug ID: 30273
           Summary: Regression - "Core file format not supported"
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: corefiles
          Assignee: unassigned at sourceware dot org
          Reporter: fthain@linux-m68k.org
  Target Milestone: ---
              Host: m68k-linux-gnu
            Target: m68k-linux-gnu
             Build: m68k-linux-gnu

Created attachment 14780
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14780&action=edit
Sample core dump

I'm unable to open a core file with recent versions of gdb. The problem showed
up in Debian's gdb 13.1 build and I then reproduced the same failure in the
14.0.50.20230318 snapshot.

The core file itself (attached) appears to be fine as I was able to open it
with a previous gdb release (Gentoo vanilla 10.2).

I did a little investigation and found that
gdbarch->iterate_over_regset_sections == NULL for some reason. But that's as
far as I got. Please see,
https://lists.debian.org/debian-68k/2023/03/msg00012.html

# 
# /opt/gdb-14.0.50.20230318/bin/gdb --core core.0
GNU gdb (GDB) 14.0.50.20230318-git
Copyright (C) 2023 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 "m68k-unknown-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".
"/root/core.0": Core file format not supported
(gdb) 
(gdb) quit
# /opt/gdb-14.0.50.20230318/bin/gdb --configuration
This GDB was configured as follows:
   configure --host=m68k-unknown-linux-gnu --target=m68k-unknown-linux-gnu
             --with-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=/opt/gdb-14.0.50.20230318/share/gdb
(relocatable)
             --with-jit-reader-dir=/opt/gdb-14.0.50.20230318/lib/gdb
(relocatable)
             --without-libunwind-ia64
             --with-lzma
             --with-babeltrace
             --without-intel-pt
             --with-xxhash
             --without-python
             --without-python-libdir
             --with-debuginfod
             --with-curses
             --without-guile
             --without-amd-dbgapi
             --disable-source-highlight
             --enable-threading
             --enable-tui
             --with-separate-debug-dir=/usr/lib/debug

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)


# gdb --core core.0
GNU gdb (Debian 13.1-2) 13.1
Copyright (C) 2023 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 "m68k-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".
"/root/core.0": Core file format not supported
(gdb) quit
# 
# gdb --configuration
This GDB was configured as follows:
   configure --host=m68k-linux-gnu --target=m68k-linux-gnu
             --with-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=/usr/share/gdb (relocatable)
             --with-jit-reader-dir=/usr/lib/gdb (relocatable)
             --without-libunwind-ia64
             --with-lzma
             --with-babeltrace
             --without-intel-pt
             --with-mpfr
             --with-xxhash
             --with-python=/usr (relocatable)
             --with-python-libdir=/usr/lib (relocatable)
             --with-debuginfod
             --without-guile
             --enable-source-highlight
             --enable-threading
             --with-separate-debug-dir=/usr/lib/debug (relocatable)
             --with-system-gdbinit=/etc/gdb/gdbinit
             --with-system-gdbinit-dir=/etc/gdb/gdbinit.d

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)

# gcc --version
gcc (Debian 12.2.0-12) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-21  5:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-25  2:31 [Bug corefiles/30273] New: Regression - "Core file format not supported" fthain@linux-m68k.org
2023-03-25 17:10 ` [Bug corefiles/30273] " tromey at sourceware dot org
2023-03-25 17:20 ` tromey at sourceware dot org
2023-03-25 17:31 ` tromey at sourceware dot org
2023-04-21  5:36 ` fthain@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).