From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: "Khem Raj" <raj.khem@gmail.com>,
<openembedded-core@lists.openembedded.org>
Cc: "Khem Raj" <khem.raj@oss.qualcomm.com>
Subject: Re: [PATCH v2] elfutils: Fix backtrace ptests on musl
Date: Tue, 01 Dec 2026 16:29:08 +0100 [thread overview]
Message-ID: <DN9I4A06QWHU.YT028ASFF5Z4@bootlin.com> (raw)
In-Reply-To: <20261201081422.467045-1-khem.raj@oss.qualcomm.com>
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 the
> unwinder cannot get out of abort () and run-backtrace-dwarf.sh fails with
> "No DWARF information found". Add musl-dbg to the ptest dependencies, like
> 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 <khem.raj@oss.qualcomm.com>
> ---
Hi Khem,
Thanks for the new version.
> do_compile_ptest() {
> @@ -64,7 +65,8 @@ PTEST_PARALLEL_MAKE = ""
> PTEST_XFAILS ?= ""
> # See - https://sourceware.org/bugzilla/show_bug.cgi?id=32232
> PTEST_XFAILS:append = "${@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 = " run-large-elf-file.sh run-backtrace-data.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-deleted.sh run-compress-test.sh"
> +PTEST_XFAILS:append:libc-musl = " 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 = "${@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/openembedded-core/meta/lib/oeqa/runtime/cases/ptest.py", line 27, in test_ptestrunner_expectfail
self.do_ptestrunner()
File "/srv/pokybuild/yocto-worker/qemuarm64-musl-ptest/build/layers/openembedded-core/meta/lib/oeqa/runtime/cases/ptest.py", line 121, in do_ptestrunner
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
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-12-01 15:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 15:49 [PATCH] elfutils: Fix backtrace ptests on musl Khem Raj
2026-10-24 17:31 ` [OE-core] " Mathieu Dubois-Briand
2026-12-01 8:14 ` [PATCH v2] " Khem Raj
2026-12-01 15:29 ` Mathieu Dubois-Briand [this message]
2026-12-01 16:52 ` [PATCH v3] " Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DN9I4A06QWHU.YT028ASFF5Z4@bootlin.com \
--to=mathieu.dubois-briand@bootlin.com \
--cc=khem.raj@oss.qualcomm.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox