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

Kevin Buettner
Tue Jul 21 00:19:21 GMT 2020

On Tue, 14 Jul 2020 07:20:43 +0000
Zbigniew J__drzejewski-Szmek <> 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/".
> 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/
> (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:


More information about the Gdb mailing list