Bug 285547 - sys/kern/coredump_phnum_test:coredump_phnum test failing after 1cae7121c667
Summary: sys/kern/coredump_phnum_test:coredump_phnum test failing after 1cae7121c667
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL: https://github.com/llvm/llvm-project/...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-20 13:25 UTC by Ed Maste
Modified: 2025-03-29 17:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2025-03-20 13:25:20 UTC
As reported by markj, sys/kern/coredump_phnum_test:coredump_phnum fails after switching to LLVM_BINUTILS

https://ci.freebsd.org/job/FreeBSD-main-amd64-test/lastCompletedBuild/testReport/sys.kern/coredump_phnum_test/coredump_phnum/

Test case metadata
------------------

allowed_architectures is empty
allowed_platforms is empty
description = More than 65534 segments
execenv is empty
execenv_jail_params is empty
has_cleanup = true
is_exclusive = false
required_configs = allow_sysctl_side_effects
required_disk_space = 0
required_files is empty
required_memory = 0
required_programs = procstat readelf
required_user = root
timeout = 300

Timing information
------------------

Start time: 2025-03-20T12:01:18.862490Z
End time:   2025-03-20T12:01:24.990424Z
Duration:   6.128s

Original stderr
---------------

Fail: regexp 65535 \(66[0-9]{3}\) not in stdout
  Number of program headers:         65535
Files left in work directory after failure: coredump_phnum_helper.core, coredump_phnum_restore_state, cuc
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-03-29 12:21:37 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=5df8159d56a681e388a2fff1c1c24a4830b741d6

commit 5df8159d56a681e388a2fff1c1c24a4830b741d6
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-03-28 20:13:27 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-03-29 12:21:13 +0000

    tests: xfail readelf phdr count test w/LLVM binutils

    LLVM readelf does not (yet) support phdr counts that overflow 16 bits.
    Temporarily xfail this test until fixed; see upstream issue 132216 for
    more details https://github.com/llvm/llvm-project/issues/132216.

    PR:             285547
    Reported by:    markj
    Reviewed by:    dim, markj
    Sponsored by:   The FreeBSD Foundation
    Fixes: 1cae7121c667 ("Enable LLVM_BINUTILS by default")
    Differential Revision: https://reviews.freebsd.org/D49561

 tests/sys/kern/coredump_phnum_test.sh | 5 +++++
 1 file changed, 5 insertions(+)