[Bug 225613] devel/p4api: segfaults at runtime on FreeBSD 12

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 1 21:19:36 UTC 2018


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

            Bug ID: 225613
           Summary: devel/p4api: segfaults at runtime on FreeBSD 12
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gordon at FreeBSD.org
          Reporter: asomers at FreeBSD.org
             Flags: maintainer-feedback?(gordon at FreeBSD.org)
          Assignee: gordon at FreeBSD.org

Any nontrivial program that uses the p4api will crash at runtime on FreeBSD 12.
 The reason is because p4api's .a files reference several functions from libc
that have API changes in FreeBSD 12.  However, the .a files contain no elf
symbol versioning information.  So when you link to them on a FreeBSD 12
machine, the linker chooses the most recent version.  Since the p4api was built
on a FreeBSD 10 machine, the linker chooses the wrong versions, and a crash
ensues.

The offending functions are readdir, fstat, lstat, and stat.  They were all
modified as part of the 64-bit inode project.

This bug also afflicts software that uses its own copy of the p4api, such as
p4python.

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


More information about the freebsd-ports-bugs mailing list