[Bug 231926] ldd can't operate on a segfaulting binary

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 3 20:03:39 UTC 2018


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

            Bug ID: 231926
           Summary: ldd can't operate on a segfaulting binary
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: arrowd at FreeBSD.org

When compiling lang/ghc port on FreeBSD 12, an executable named ghc-iserv-prof
gets corrupted by some unrelated bug and segfaults when being launched. During
`make stage-qa` the following command is called by qa.sh:

env LD_LIBMAP_DISABLE=1 ldd -a
/wrkdirs/usr/ports/lang/ghc/work/stage/usr/local/lib/ghc-8.4.3/bin/ghc-iserv-prof

This command also results in a segfault with the same message:

/wrkdirs/usr/ports/lang/ghc/work/stage/usr/local/lib/ghc-8.4.3/bin/ghc-iserv-prof:
signal 11

I'm not sure if this is a bug in ldd, but I've got an impression that it
shouldn't segfault even when given a broken executable.

To reproduce on FreeBSD 12:

# pkg install ghc
# env LD_LIBMAP_DISABLE=1 ldd -a /usr/local/lib/ghc-8.4.3/bin/ghc-iserv-prof

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


More information about the freebsd-bugs mailing list