Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Nov 2015 20:57:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204314] databases/postgresql94-server: (and previos versions): don't strip binaries when building with DTRACE
Message-ID:  <bug-204314-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 204314
           Summary: databases/postgresql94-server: (and previos versions):
                    don't strip binaries when building with DTRACE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pgsql@FreeBSD.org
          Reporter: cmt@burggraben.net
 Attachment #162822 maintainer-approval?
             Flags:
          Assignee: pgsql@FreeBSD.org
             Flags: maintainer-feedback?(pgsql@FreeBSD.org),
                    maintainer-feedback?

Created attachment 162822
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=162822&action=edit
set INSTALL_TARGET=install when DTRACE is on

The PostgreSQL server ports use INSTALL_TARGET=install-strip. This is fine,
except when building with DTrace support (DTRACE=on):

cmt@elch:/tmp/test$ sudo /usr/local/etc/rc.d/postgresql start
WARNING: number of probes fixed does not match the number of defined probes (62
!= 77, respectively)
WARNING: some probes might not fire or your program might crash
WARNING: number of probes fixed does not match the number of defined probes (62
!= 77, respectively)
WARNING: some probes might not fire or your program might crash
LOG:  ending log output to stderr
HINT:  Future log output will go to log destination "syslog".

Yes, I managed to crash the server while using DTrace.

This can easily prevented by not stripping binaries when building with DTrace
support. As all postgresql servers use the same infrastructure in
databaases/postgresql92-server/Makefile, this can be fixed with a simple
one-line patch.

-- 
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-204314-13>