Bug 289096 - lib/libexecinfo/sigtramp_test:test_backtrace_sigtramp fails in CI on arm64
Summary: lib/libexecinfo/sigtramp_test:test_backtrace_sigtramp fails in CI on arm64
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: 16.0-CURRENT
Hardware: arm64 Any
: --- Affects Only Me
Assignee: Jose Luis Duran
URL: https://ci.freebsd.org/view/Test/job/...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-25 13:35 UTC by Siva Mahadevan
Modified: 2026-06-26 17:00 UTC (History)
7 users (show)

See Also:


Attachments
[PATCH] tests/sigtramp_test: xfail on non-amd64 (939 bytes, patch)
2025-09-29 19:17 UTC, Siva Mahadevan
siva: maintainer-approval? (dchagin)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Siva Mahadevan freebsd_committer freebsd_triage 2025-08-25 13:35:19 UTC
The 'lib/libexecinfo/sigtramp_test:test_backtrace_sigtramp' testcase currently fails on arm64 in CI.

Based on the comment from https://cgit.freebsd.org/src/commit/?id=df1ea5887326103f0cc1445ab42fce528b474030 (tests: Test libexecinfo backtrace call througth signal trampoline), this is an expected failure until https://reviews.llvm.org/D155066 is merged and brought into FreeBSD. I'm filing this bug to keep track of the status of this work.

@dchagin please triage as necessary. I will submit a patch to XFAIL this test on FreeBSD against this PR for the time being.
Comment 1 Siva Mahadevan freebsd_committer freebsd_triage 2025-09-29 19:17:51 UTC
Created attachment 264160 [details]
[PATCH] tests/sigtramp_test: xfail on non-amd64

Attached patch to xfail this test until the necessary support is merged in.
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2026-05-06 23:01:34 UTC
This was handled a few months ago:

```
commit fef84fd8ae845e19cec0f6b9aac0e6451cca3d7a
Author: Jose Luis Duran <jlduran@FreeBSD.org>
Date:   Wed Jan 14 17:06:14 2026 +0000

    libexecinfo: tests: Expect failure on aarch64
    
    Add a guard that expects a failure of the test on aarch64.
    
    Reviewed by:    emaste
    Fixes:          df1ea5887326 ("tests: Test libexecinfo backtrace call througth signal trampoline")
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D54675
```
Comment 3 Mark Johnston freebsd_committer freebsd_triage 2026-05-07 13:39:11 UTC
... but the test failure is still there:

root@:/usr/tests/lib/libexecinfo # kyua test
backtrace_test:backtrace_fmt_basic  ->  passed  [0.022s]
sigtramp_test:test_backtrace_sigtramp  ->  failed: /home/markj/sb/dtrace/src/lib/libexecinfo/tests/sigtramp_test.c:30: n > 1 not met  [0.018s]

Results file id is usr_tests_lib_libexecinfo.20260507-133834-644382
Results saved to /root/.kyua/store/results.usr_tests_lib_libexecinfo.20260507-133834-644382.db

1/2 passed (0 broken, 1 failed, 0 skipped)
root@:/usr/tests/lib/libexecinfo # uname -a
FreeBSD  16.0-CURRENT FreeBSD 16.0-CURRENT #3 main-dtrace-arm64-pid-n285596-e2aad58f03ab-dirty: Wed May  6 21:01:20 UTC 2026     markj@xinde:/home/markj/sb/dtrace/bricoler/freebsd-src-build/obj.arm64.aarch64/home/markj/sb/dtrace/src/arm64.aarch64/sys/GENERIC arm64
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-06-16 03:26:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=0010c4b8a020dbeb81e61b71117d1caae9b044cc

commit 0010c4b8a020dbeb81e61b71117d1caae9b044cc
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-06-15 22:09:05 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-06-16 03:21:10 +0000

    tests/sigtramp_test: xfail on non-amd64

    This test fail until at least https://reviews.llvm.org/D155066 is
    rebased and picked up for aarch64 and more work is done for the other
    archs.

    PR:             289096
    Reviewed by:    jlduran
    Fixes:          fef84fd8ae845e19cec0f6b9aac0e6451cca3d7a
    MFC after:      3 days

 lib/libexecinfo/tests/sigtramp_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-06-26 15:19:28 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=76c1cb3f6133ffb65ec0424682ee302736514c1e

commit 76c1cb3f6133ffb65ec0424682ee302736514c1e
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-06-15 22:09:05 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-06-26 15:16:43 +0000

    tests/sigtramp_test: xfail on non-amd64

    This test fail until at least https://reviews.llvm.org/D155066 is
    rebased and picked up for aarch64 and more work is done for the other
    archs.

    PR:             289096
    Reviewed by:    jlduran
    Fixes:          fef84fd8ae845e19cec0f6b9aac0e6451cca3d7a
    MFC after:      3 days

    (cherry picked from commit 0010c4b8a020dbeb81e61b71117d1caae9b044cc)

 lib/libexecinfo/tests/sigtramp_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2026-06-26 17:00:59 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=0b6f420611fae6a9dbeb07ae6376049bfe2d408c

commit 0b6f420611fae6a9dbeb07ae6376049bfe2d408c
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-06-15 22:09:05 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-06-26 16:04:30 +0000

    tests/sigtramp_test: xfail on non-amd64

    This test fail until at least https://reviews.llvm.org/D155066 is
    rebased and picked up for aarch64 and more work is done for the other
    archs.

    PR:             289096
    Reviewed by:    jlduran
    Fixes:          fef84fd8ae845e19cec0f6b9aac0e6451cca3d7a
    MFC after:      3 days

    (cherry picked from commit 0010c4b8a020dbeb81e61b71117d1caae9b044cc)

 lib/libexecinfo/tests/sigtramp_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)