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

Re: Strange symbols_lookup() behaviour in test-symbols on arm64 CI


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Mykola Kvach <xakep.amatop@xxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Tue, 20 Jan 2026 17:04:00 -0500
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2CZ1dnt1lNwrbVox00zyWzt2jGmgrmLLiOCyztI1bBI=; b=ZfYzV0MsJtwxW+oNbEv5wrPohec1yvevYvKTdXRfrPo3cH3VKxLCdb+G+/tyb9ojIImtWhPVbatO/4OHGqAhPryzSxLEHE3sng20xe61ELu+YUyGV9qWonZ3CkXa+8SagQpGD7Nv3d7xWRmfHh7VanPKuvHpjhEL1W8QuIBICQLn05EA4gEH+4w5uErfTuRmnytqdJTX4R7I+Dg6SqLhE4IGLXNz9EibjYFcWx7mg2LTOoTlYdu+tPg56IGF0uu/dOKqBi4QvpToFsBTYhrR3mrlUHhMvEBQTY9ES5qfq3qRwpMePMAzf0TuDW4FRHkuZoluVgfv1eaaJBm61jp4Gw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G2KzZ0Jv8hb7SJ/gN9vshAlVokMB9v5cLCw7cly7oHKx+P2cGEIc7u5cgalhxAY5Oos87yBXPPR44AV9mICs5w+3wzWJj5D4+sX/XP/Cb8PRa69/7zXBrudyXJYxbpJZoskNB1jvd47F9vfUuv3gZhPZoa4VWj/GIVoCmcMUUO+BD4C6vTTNOZ8DrpWx0AZRPwuU45JIiHy595Ex/uMPHyrKJPvtBTItclvuH270Vjp40fMYmKWivjXZnE+gvIAm6u4CS6ll1Hz3FGa2RES0PUktvkRcaHxICcdAhWvhYfDewUeUYduZK6yayaJdalL8nF6TOnWSR4aJgHz1XFm4lw==
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 20 Jan 2026 22:04:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2026-01-15 11:57, Jan Beulich wrote:
On 15.01.2026 16:33, Jan Beulich wrote:
On 14.01.2026 07:00, Mykola Kvach wrote:
On Mon, Dec 15, 2025 at 1:27 PM Jan Beulich <jbeulich@xxxxxxxx> wrote:
On 15.12.2025 12:00, Mykola Kvach wrote:
On Thu, Dec 11, 2025 at 6:40 PM Jan Beulich <jbeulich@xxxxxxxx> wrote:
On 11.12.2025 17:30, Mykola Kvach wrote:
I have now attached the corresponding build log.

Okay, so indeed not a table size change issue here. Then I fear some 
instrumenting
will be needed to at least know what exactly is going wrong. Alternatively you 
could
arrange for the intermediate binaries to not be deleted, and make them available
somehow / somewhere for me to see whether by inspection I can gain some clue.

I prepared a small patch to keep the intermediate artifacts instead of
deleting them.

It removes two cleanup commands:
     xen/arch/arm/Makefile: drops rm -f $(@D)/.$(@F).[0-9]* (keeps
.xen-syms.* intermediates)

This alone should be sufficient.

Understood. I have rerun the build with the cleanup line removed
so the intermediate .xen-syms.* files are kept.

The build artifacts are available here:
https://gitlab.com/xen-project/people/mykola_kvach/xen/-/jobs/12707528457/artifacts/browse/xen/

Apart from the intermediate files there's a file named xen there, but xen-syms
is missing. I'll see what I can do without that.

Actually, can you give the patch below a try? That would explain the 24-byte
difference (albeit I'm struggling with some other aspects of a proper
explanation).

I had qemu-smoke-dom0less-arm32-gcc-debug-staticmem fail in CI with:
test_symbols: non-zero offset (0x48c) unexpected

https://gitlab.com/xen-project/people/jandryuk-amd/xen/-/jobs/12787541697

With your patch added on top, it passed:
https://gitlab.com/xen-project/people/jandryuk-amd/xen/-/jobs/12788189122

Tested-by: Jason Andryuk <jason.andryuk@xxxxxxx>

The branch includes --gc-sections and associated changes, fwiw.

Thanks,
Jason


--- a/xen/arch/arm/Makefile
+++ b/xen/arch/arm/Makefile
@@ -87,13 +87,13 @@ endif
  $(TARGET)-syms: $(objtree)/prelink.o $(obj)/xen.lds
        $(objtree)/tools/symbols $(all_symbols) --empty > $(dot-target).0.S
        $(MAKE) $(build)=$(@D) $(dot-target).0.o
-       $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< \
+       $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
              $(dot-target).0.o -o $(dot-target).0
        $(NM) -pa --format=sysv $(dot-target).0 \
                | $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
                > $(dot-target).1.S
        $(MAKE) $(build)=$(@D) $(dot-target).1.o
-       $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< \
+       $(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
            $(dot-target).1.o -o $(dot-target).1
        $(NM) -pa --format=sysv $(dot-target).1 \
                | $(objtree)/tools/symbols $(all_symbols) --sysv --sort \





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.