From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.13747.1796138958841478908 for ; Tue, 01 Dec 2026 07:29:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=nFO0oVFG; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 5D6A91A0440 for ; Tue, 1 Dec 2026 15:29:16 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 337F4603CB; Tue, 1 Dec 2026 15:29:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id AE6A811EA2688; Tue, 01 Dec 2026 16:29:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796138951; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=cPwSH3krRRONS9tuPPNNONy69mUleGv4Z+O3uhekAk4=; b=nFO0oVFGBzwG+f3h0pT+XSXIvX9ReBjdzSXJJ6pfeu76786KUBpYoXQjHzftkQAPQqS/3r D9b2cvgkqIwwilgqYtui1bDjTAQ5rTwb/OP32wRqaaO+hluo7AmiHb1/PDYuQh1SBVaOcJ //tfzjVfUaJ5sc40+b5Dp/+jZCSP9rzcoBVfUEXZ7nvCWHuvlF0106a1SBqxNi1EsYcwNh KG9sIr15Lz6DHLjIdly48RYoxCnggdPjezet/N86H+uMvUue25txLH6Md2PuLWQLbbGKFr m08I4zUImWDMqUJE1hfAidhWN38S25NDV6XPFcP8xl3ae9Z/mY+U8Qrca2NRRg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 01 Dec 2026 16:29:08 +0100 Message-Id: Cc: "Khem Raj" From: "Mathieu Dubois-Briand" To: "Khem Raj" , Subject: Re: [PATCH v2] elfutils: Fix backtrace ptests on musl X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20261022154937.1328672-1-khem.raj@oss.qualcomm.com> <20261201081422.467045-1-khem.raj@oss.qualcomm.com> In-Reply-To: <20261201081422.467045-1-khem.raj@oss.qualcomm.com> X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 15:29:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251742 On Tue Dec 1, 2026 at 9:14 AM CET, Khem Raj wrote: > musl is built with -fno-asynchronous-unwind-tables, so libc.so carries > almost no .eh_frame and its CFI only lives in .debug_frame. Without it th= e > unwinder cannot get out of abort () and run-backtrace-dwarf.sh fails with > "No DWARF information found". Add musl-dbg to the ptest dependencies, lik= e > glibc-dbg for glibc. > > With musl-dbg installed, run-backtrace-data.sh and run-deleted.sh pass > on musl too, so drop them from the musl XFAIL list. > > run-deleted.sh still fails on musl when the test library is linked with > lld. lld packs all segments of deleted-lib.so into the first file page, > so musl maps every segment at file offset 0, and once the file is > deleted elfutils cannot find the CFI of libfunc in the copy it reads > back from memory. Keep it as XFAIL for musl with ld-is-lld. > run-backtrace-data.sh is already XFAIL with ld-is-lld. > > AI-Generated: Uses Claude Code > Signed-off-by: Khem Raj > --- Hi Khem, Thanks for the new version. > do_compile_ptest() { > @@ -64,7 +65,8 @@ PTEST_PARALLEL_MAKE =3D "" > PTEST_XFAILS ?=3D "" > # See - https://sourceware.org/bugzilla/show_bug.cgi?id=3D32232 > PTEST_XFAILS:append =3D "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-= lld', ' run-strip-strmerge.sh run-elflint-self.sh run-backtrace-data.sh run= -reverse-sections-self.sh', '', d)}" > -PTEST_XFAILS:append:libc-musl =3D " run-large-elf-file.sh run-backtrace-= data.sh run-backtrace-native.sh run-backtrace-native-core.sh run-stack-d-te= st.sh run-stack-i-test.sh run-stack-demangled-test.sh run-deleted.sh run-co= mpress-test.sh" > +PTEST_XFAILS:append:libc-musl =3D " run-large-elf-file.sh run-backtrace-= native.sh run-backtrace-native-core.sh run-stack-d-test.sh run-stack-i-test= .sh run-stack-demangled-test.sh run-compress-test.sh" > +PTEST_XFAILS:append:libc-musl =3D "${@bb.utils.contains('DISTRO_FEATURES= ', 'ld-is-lld', ' run-deleted.sh', '', d)}" It looks like this is breaking the ptest on qemuarm64-musl: WARNING: core-image-ptest-elfutils-1.0-r0 do_testimage: There were failing = ptests. Traceback (most recent call last): File "/srv/pokybuild/yocto-worker/qemuarm64-musl-ptest/build/layers/opene= mbedded-core/meta/lib/oeqa/runtime/cases/ptest.py", line 27, in test_ptestr= unner_expectfail self.do_ptestrunner() File "/srv/pokybuild/yocto-worker/qemuarm64-musl-ptest/build/layers/opene= mbedded-core/meta/lib/oeqa/runtime/cases/ptest.py", line 121, in do_ptestru= nner self.fail(failmsg) AssertionError: Failed ptests: {'elfutils': ['run-deleted.sh']} https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/1667 Can you have a look at that? Thanks, Mathieu --=20 Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com