Skip to contentSkip to conversation

Debian Bug#1004269: Linker segfault while building src:xen

DISCUSSION Hans van Kranenburg 2 participants 3 messages Jan 23, 2022 – Jan 28, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

(To both the Debian bug # and xen-devel list, reply-all is fine) Hi Xen people,

I just filed a bug at Debian on the binutils package, because since the latest binutils package update (Debian 2.37.50.20220106-2), Xen (both 4.14 and 4.16) fails to build with a segfault at the following point:

x86_64-linux-gnu-ld -mi386pep --subsystem=10 --image-base=0xffff82d040000000 --stack=0,0 --heap=0,0 --section-alignment=0x200000 --file-alignment=0x20 --major-image-version=4 --minor-image-version=16 --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 --minor-subsystem-version=0 --no-insert-timestamp --build-id=sha1 -T efi.lds -N prelink.o /builds/xen-team/debian-xen/debian/output/source_dir/xen/common/symbols-dummy.o -b pe-x86-64 efi/buildid.o -o /builds/xen-team/debian-xen/debian/output/source_dir/xen/.xen.efi.0xffff82d040000000.0 && :
Segmentation fault (core dumped)

Full message and links to build logs etc are in the initial bug message, to be seen at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004269

We (Debian Xen Team) are awaiting response, but I thought to also let you know already.

* Does the above error 'ring a bell'?
* Can you maybe also reproduce this in a development environment with very latest binutils?
* Maybe someone has a useful comment for the Debian binutils maintainer about what's happening in this step of the build?
* Any suggestions about what we can do to help figure this out?
* We'll try to help debug, but will surely appreciate upstream help if things get too technical. It's simply the case that I did not have to look into a very similar issue before, so it's new.

Thanks!
Hans

#2 lore raw
Quoted 23 lines · Hans van Kranenburg

(To both the Debian bug # and xen-devel list, reply-all is fine) Hi Xen people,

I just filed a bug at Debian on the binutils package, because since the latest binutils package update (Debian 2.37.50.20220106-2), Xen (both 4.14 and 4.16) fails to build with a segfault at the following point:

x86_64-linux-gnu-ld -mi386pep --subsystem=10 --image-base=0xffff82d040000000 --stack=0,0 --heap=0,0 --section-alignment=0x200000 --file-alignment=0x20 --major-image-version=4 --minor-image-version=16 --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 --minor-subsystem-version=0 --no-insert-timestamp --build-id=sha1 -T efi.lds -N prelink.o /builds/xen-team/debian-xen/debian/output/source_dir/xen/common/symbols-dummy.o -b pe-x86-64 efi/buildid.o -o /builds/xen-team/debian-xen/debian/output/source_dir/xen/.xen.efi.0xffff82d040000000.0 && :
Segmentation fault (core dumped)

Full message and links to build logs etc are in the initial bug message, to be seen at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004269

Quoted 6 lines

We (Debian Xen Team) are awaiting response, but I thought to also let you know already.

* Does the above error 'ring a bell'?
* Can you maybe also reproduce this in a development environment with very latest binutils?

I've tried with a 1.5 weeks old snapshot I had lying about; no "success". But your and my builds are surely quite different anyway.

Quoted 2 lines

* Maybe someone has a useful comment for the Debian binutils maintainer about what's happening in this step of the build?

It's xen.efi that's being linked; not sure what else to say.

Quoted 1 line

* Any suggestions about what we can do to help figure this out?

I'm pretty certain this needs debugging from the binutils side, so I guess you will want to report it there (even more so with 2.38 around the corner). I guess it's actually debugging ld or bisecting which provide the best chance of figuring out what's going on.

Jan

Quoted 7 lines

* We'll try to help debug, but will surely appreciate upstream help if things get too technical. It's simply the case that I did not have to look into a very similar issue before, so it's new.

Thanks!
Hans

#3 lore raw
Quoted 7 lines · Jan Beulich
Quoted 1 line · Hans van Kranenburg

* Any suggestions about what we can do to help figure this out?

I'm pretty certain this needs debugging from the binutils side, so I guess you will want to report it there (even more so with 2.38 around the corner). I guess it's actually debugging ld or bisecting which provide the best chance of figuring out what's going on.

For the sake of xen-devel, this looks to have been fixed in binutils:

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=07c9f243b3a12cc6749bc02ee7b165859979348b

Jan