Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2018 21:19:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 225613] devel/p4api: segfaults at runtime on FreeBSD 12
Message-ID:  <bug-225613-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225613

            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@FreeBSD.org
          Reporter: asomers@FreeBSD.org
             Flags: maintainer-feedback?(gordon@FreeBSD.org)
          Assignee: gordon@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 li=
bc
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 b=
uilt
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.

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



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