From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B10033858D1E; Sat, 25 Mar 2023 02:31:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B10033858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679711478; bh=RQR4EFwUON5ugWU7X9LernSPwSs530MmbShGgVuc1ng=; h=From:To:Subject:Date:From; b=UJTKCdSo/a9eckN0pytvk2p+hJLak3KFmBaHFY0L4b4IxgBED40z0AfrPV3ld4P5G I1ObC/yXjOZi9O3R7YgT3KIwrJo+s/JkSkcafibdNkoC6bA/8U7ocK+tvCkTYTF+v+ iHgfkhIH/kGZw2M4ZVTiMtiMn+xkps+3GjXQXDXc= From: "fthain@linux-m68k.org" To: gdb-prs@sourceware.org Subject: [Bug corefiles/30273] New: Regression - "Core file format not supported" Date: Sat, 25 Mar 2023 02:31:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: corefiles X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fthain@linux-m68k.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30273 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=3D14780&action=3Ded= it Sample core dump I'm unable to open a core file with recent versions of gdb. The problem sho= wed 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 =3D=3D NULL for some reason. But that= 's as far as I got. Please see, https://lists.debian.org/debian-68k/2023/03/msg00012.html #=20 # /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 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". "/root/core.0": Core file format not supported (gdb)=20 (gdb) quit # /opt/gdb-14.0.50.20230318/bin/gdb --configuration This GDB was configured as follows: configure --host=3Dm68k-unknown-linux-gnu --target=3Dm68k-unknown-linux-= gnu --with-auto-load-dir=3D$debugdir:$datadir/auto-load --with-auto-load-safe-path=3D$debugdir:$datadir/auto-load --with-expat --with-gdb-datadir=3D/opt/gdb-14.0.50.20230318/share/gdb (relocatable) --with-jit-reader-dir=3D/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=3D/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 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". "/root/core.0": Core file format not supported (gdb) quit #=20 # gdb --configuration This GDB was configured as follows: configure --host=3Dm68k-linux-gnu --target=3Dm68k-linux-gnu --with-auto-load-dir=3D$debugdir:$datadir/auto-load --with-auto-load-safe-path=3D$debugdir:$datadir/auto-load --with-expat --with-gdb-datadir=3D/usr/share/gdb (relocatable) --with-jit-reader-dir=3D/usr/lib/gdb (relocatable) --without-libunwind-ia64 --with-lzma --with-babeltrace --without-intel-pt --with-mpfr --with-xxhash --with-python=3D/usr (relocatable) --with-python-libdir=3D/usr/lib (relocatable) --with-debuginfod --without-guile --enable-source-highlight --enable-threading --with-separate-debug-dir=3D/usr/lib/debug (relocatable) --with-system-gdbinit=3D/etc/gdb/gdbinit --with-system-gdbinit-dir=3D/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. --=20 You are receiving this mail because: You are on the CC list for the bug.=