[Bug 292032] armv7 (chroot, at least) gets SIGSEGV for: gpart show [after inappropriate %ld format use was fixed]

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 Dec 2025 05:40:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292032

            Bug ID: 292032
           Summary: armv7 (chroot, at least) gets SIGSEGV for: gpart show
                    [after inappropriate %ld format use was fixed]
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: marklmi26-fbsd@yahoo.com

This is a continuation of a prior report after
one type of bug was fixed, improving the results.

My initial test (and only one so far) is for
armv7 on aarch64 after an official pkgbase
distribution based update of main.

# uname -aoKU
FreeBSD aarch64-main-pbase 16.0-CURRENT FreeBSD 16.0-CURRENT
main-n282760-3088263177da GENERIC-NODEBUG arm 1600007 1600007
. . .
Core was generated by `gpart show'.
Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
#0  0x200c5ef0 in delete_config (gp=0x2053c1dc) at
/usr/src/lib/libgeom/geom_xml2tree.c:502

warning: Source file is more recent than executable.
502                     LIST_REMOVE(cf, lg_config);
(gdb) bt
#0  0x200c5ef0 in delete_config (gp=0x2053c1dc) at
/usr/src/lib/libgeom/geom_xml2tree.c:502
#1  geom_deletetree (gmp=gmp@entry=0xffffcb30) at
/usr/src/lib/libgeom/geom_xml2tree.c:524
#2  0x204d2064 in gpart_show (req=<optimized out>, fl=<optimized out>) at
/home/pkgbuild/worktrees/main/lib/geom/part/geom_part.c:808
#3  0x000230dc in run_command (argc=0, argv=<optimized out>) at
/usr/src/sbin/geom/core/geom.c:497
#4  0x00022308 in main (argc=1, argv=0xffffdc5c) at
/usr/src/sbin/geom/core/geom.c:861
(gdb) 

This does not happen on aarch64 itself.

-- 
You are receiving this mail because:
You are the assignee for the bug.