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

Bug#985645: hurd: Hurd creates buggy core files or gdb cannot read core files properly



Source: hurd
Version: 1:0.9.git20201127-7
Severity: important
Tags: upstream
User: debian-hurd@lists.debian.org
Usertags: hurd

Hello,

When hurd dumps a core file it cannot be read properly in gdb. This is
either due to a bug in the Hurd package itself or a bug in gdb. The
core dump code in Hurd seems to be located at:
exec/elfcore.s:dump_core().

I'm filing this bug to Hurd, but the problem might also be in gdb not
being able to read the core file. 

Example session:
host ftp.sunet.se
ftp.sunet.se is an alias for sunet.ftp.acc.umu.se.
sunet.ftp.acc.umu.se has address 194.71.11.173
sunet.ftp.acc.umu.se has address 194.71.11.165
socket.c:3175: REQUIRE(readable || writeable) failed, back trace
#0 0x1337666 in ??
#1 0x1337595 in ??
#2 0x137e3d5 in ??
#3 0x1372d1c in ??
#4 0x13e782f in ??
Aborted (core dumped)
...:~$ gdb -core ./core
GNU gdb (Debian 10.1-2) 10.1.90.20210103-git
Copyright (C) 2021 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 "i686-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".
[New process 14435]
[New process 1]
[New process 2]
[New process 3]
[New process 4]

warning: Unexpected size of section `.reg2/14435' in core file.
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `host ftp.sunet.se'.
Program terminated with signal SIGABRT, Aborted.

warning: Unexpected size of section `.reg2/14435' in core file.
#0  0x0141569c in ?? ()
[Current thread is 1 (process 14435)]
(gdb) quit

A bug report to the bind9-host package,1:9.16.13-1,  will be filed
separately. Probably this is also a Hurd bug and should be assigned to
Hurd, not bind9-host. Some more investigations are needed until then.

Thanks!


Reply to: