From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 28 21:20:18 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A0CD16A41F for ; Thu, 28 Jul 2005 21:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6045443D53 for ; Thu, 28 Jul 2005 21:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6SLKHPI073187 for ; Thu, 28 Jul 2005 21:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6SLKH3R073186; Thu, 28 Jul 2005 21:20:17 GMT (envelope-from gnats) Resent-Date: Thu, 28 Jul 2005 21:20:17 GMT Resent-Message-Id: <200507282120.j6SLKH3R073186@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Narron Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0DA716A420 for ; Thu, 28 Jul 2005 21:18:38 +0000 (GMT) (envelope-from zeek@freebsd.cdsinet.net) Received: from freebsd.cdsinet.net (freebsd.cdsinet.net [65.167.175.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F6B543D4C for ; Thu, 28 Jul 2005 21:18:38 +0000 (GMT) (envelope-from zeek@freebsd.cdsinet.net) Received: by freebsd.cdsinet.net (Postfix, from userid 1001) id 778E48FC4D; Thu, 28 Jul 2005 16:18:37 -0500 (CDT) Message-Id: <20050728211837.778E48FC4D@freebsd.cdsinet.net> Date: Thu, 28 Jul 2005 16:18:37 -0500 (CDT) From: John Narron To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/84255: perl 5.8.7 and freebsd.sh patch leading to bus error X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Narron List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2005 21:20:18 -0000 >Number: 84255 >Category: ports >Synopsis: perl 5.8.7 and freebsd.sh patch leading to bus error >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 28 21:20:16 GMT 2005 >Closed-Date: >Last-Modified: >Originator: John Narron >Release: FreeBSD 5.4-RELEASE-p4 i386 >Organization: CDS/CDSinet, LLC >Environment: System: FreeBSD freebsd.cdsinet.net 5.4-RELEASE-p4 FreeBSD 5.4-RELEASE-p4 #12: Wed Jul 6 10:39:12 CDT 2005 zeek@freebsd.cdsinet.net:/usr/obj/usr/src/sys/NOAA i386 >Description: This was an odd thing to track down. For sake of brevity, I won't go into discussion of how this all came to be, just what I've observed. What was originally (seemingly) an amavisd-new problem, turned into a spamassassin problem, then into a perl problem, but now it seems the problem is in patch-freebsd.sh. Regardless of WITH_THREADS=yes or WITH_THREADS=no, it still links in pthreads. Also WITH_THREADS=no, the port still builds a threaded perl. However, with neither specified, it still seems to link in libpthreads. This leads to a Bus Error, given a sufficiently large parameter to 'eval'. To keep things from being repeated, and to save my poor fingers, this bus error is documented here: http://rt.perl.org/rt3/Ticket/Display.html?id=36667 (requires a username and password which can be obtained at http://rt.perl.org/perlbug/) >How-To-Repeat: How to repeat getting the Bus Error, see the link above. Since thats to repeat the bus error, and not the problem stated above, to repeat is to just install the port. >Fix: Remove these lines from /usr/ports/lang/perl5.8.7/files/patch-freebsd.sh @@ -119,7 +123,7 @@ case "$osvers" in if [ x$objformat = xelf ]; then libpth="/usr/lib /usr/local/lib" glibpth="/usr/lib /usr/local/lib" - ldflags="-Wl,-E " + ldflags="%%PTHREAD_LIBS%% -Wl,-E" lddlflags="-shared " else if [ -e /usr/lib/aout ]; then Or remove files/patch-freebsd.sh (seems to work just fine w/o it, though have not tested it with the WITH_THREADS= option). >Release-Note: >Audit-Trail: >Unformatted: