Created attachment 162822 [details] 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.
Created attachment 172234 [details] poudriere testport for postgresql95-server
If there's no immediate veto, I'm going to call timeout on this - I'm running this patch now for >6months.
A commit references this bug: Author: cmt Date: Sat Jul 9 13:16:52 UTC 2016 New revision: 418277 URL: https://svnweb.freebsd.org/changeset/ports/418277 Log: do not strip binaries when building with DTRACE stripping would destroy some probes and might result in instable behaviour when trying to access those probes. PR: 204314 Approved by: rene (mentor), maintainer-timeout Changes: head/databases/postgresql92-server/Makefile
A commit references this bug: Author: cmt Date: Sun Jul 10 07:15:05 UTC 2016 New revision: 418300 URL: https://svnweb.freebsd.org/changeset/ports/418300 Log: MFH: r418277 do not strip binaries when building with DTRACE stripping would destroy some probes and might result in instable behaviour when trying to access those probes. PR: 204314 Approved by: rene (mentor), maintainer-timeout Approved by: ports-secteam (junovitch) Changes: _U branches/2016Q3/ branches/2016Q3/databases/postgresql92-server/Makefile