gdb says "Unexpected size of section `.reg-xstate/...' in core file"

Kevin Buettner kevinb@redhat.com
Tue Jul 21 00:19:21 GMT 2020


On Tue, 14 Jul 2020 07:20:43 +0000
Zbigniew J__drzejewski-Szmek <zbyszek@in.waw.pl> wrote:

> I'm running gdb (via coredumpctl) on a core file from a program
> crashing in Fedora Rawhide. One of the gdb maintainers in Fedora, Jan
> Kratochvil, directed me to this mailing list. bt and other commands
> work fine, but gdb shows the warning in $subject (and the core file
> doesn't seem to be truncated):
> 
> $ coredumpctl gdb
> ...
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Core was generated by `/usr/lib/systemd/systemd-oomd'.
> Program terminated with signal SIGABRT, Aborted.
> 
> warning: Unexpected size of section `.reg-xstate/59286' in core file.
> #0  0x00007f552f8b3b95 in raise () from /lib64/libc.so.6
> (gdb)

This looks like the same bug that I investigated and fixed last week. 
It turned out to be a kernel bug.  I sent a patch to the kernel
maintainers; it's been accepted into several development trees.

Here's a link to the Fedora bug report that I filed:

https://bugzilla.redhat.com/show_bug.cgi?id=1858645

Kevin



More information about the Gdb mailing list