[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gdb failure: "core file format not supported"



I've been attempting to debug a dash crash (reported in a different 
thread). I was able to capture some core dumps but gdb doesn't like them.

root@panmac:~# file core.?
core.0: ELF 32-bit MSB core file, Motorola m68k, 68020, version 1 (SYSV), 
SVR4-style, from '/bin/sh /etc/init.d/mountkernfs.sh reload', real uid: 0, 
effective uid: 0, real gid: 0, effective gid: 0, execfn: 
'/etc/init.d/mountkernfs.sh'
core.1: ELF 32-bit MSB core file, Motorola m68k, 68020, version 1 (SYSV), 
SVR4-style, from '/bin/sh /etc/rcS.d/S08mountall.sh start', real uid: 0, 
effective uid: 0, real gid: 0, effective gid: 0, execfn: 
'/etc/rcS.d/S08mountall.sh'
core.2: ELF 32-bit MSB core file, Motorola m68k, 68020, version 1 (SYSV), 
SVR4-style, from '/bin/sh /etc/rcS.d/S08mountall.sh start', real uid: 0, 
effective uid: 0, real gid: 0, effective gid: 0, execfn: 
'/etc/rcS.d/S08mountall.sh'
root@panmac:~# 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
root@panmac:~# 
root@panmac:~# gdb /bin/dash 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"...
Reading symbols from /bin/dash...
Reading symbols from 
/usr/lib/debug/.build-id/aa/4160f84f3eeee809c554cb9f3e1ef0686b8dcc.debug...
"/root/core.0": Core file format not supported
(gdb) quit
root@panmac:~# 


I tried a different system (Gentoo/m68k, gdb 10.2) which I installed a 
couple of years ago and it works there.

Has anyone else encountered this? 


Reply to: