Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jan 2026 09:45:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 292127] libgeom does not work on 32-bit systems
Message-ID:  <bug-292127-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292127

            Bug ID: 292127
           Summary: libgeom does not work on 32-bit systems
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: des@FreeBSD.org

The following trivial libgeom program segfaults on 32-bit systems:

$ cat g.c                               
#include <libgeom.h>

int main(void)
{
        struct gmesh mesh;

        if (geom_gettree(&mesh) != 0)
                return (1);
        geom_deletetree(&mesh);
        return (0);
}
$ cc -Wall -Wextra -ggdb -o g g.c -lgeom
$ gdb -quiet g
Reading symbols from g...
(gdb) r
Starting program: /tmp/g 
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0x20447231 in delete_config (gp=0x206ee5d4)
    at /usr/src/lib/libgeom/geom_xml2tree.c:502
502                     LIST_REMOVE(cf, lg_config);
(gdb) bt
#0  0x20447231 in delete_config (gp=0x206ee5d4)
    at /usr/src/lib/libgeom/geom_xml2tree.c:502
#1  geom_deletetree (gmp=0xffffdb98)
    at /usr/src/lib/libgeom/geom_xml2tree.c:524
#2  0x00401541 in main () at g.c:9

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292127-227>