From owner-freebsd-ports@FreeBSD.ORG Wed Jun 29 07:33:16 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 518E3106566B for ; Wed, 29 Jun 2011 07:33:16 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from andxor.it (relay.andxor.it [195.223.2.3]) by mx1.freebsd.org (Postfix) with SMTP id 87E1F8FC08 for ; Wed, 29 Jun 2011 07:33:14 +0000 (UTC) Received: (qmail 63461 invoked from network); 29 Jun 2011 07:33:12 -0000 Received: from unknown (HELO alex.andxor.it) (192.168.2.30) by andxor.it with SMTP; 29 Jun 2011 07:33:12 -0000 Message-ID: <4E0AD538.6060209@FreeBSD.org> Date: Wed, 29 Jun 2011 09:33:12 +0200 From: Alex Dupre User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; it; rv:1.9.1.19) Gecko/20110509 SeaMonkey/2.0.14 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <36819C4DB6FB4B11B115F046D018D5C4@multiplay.co.uk> In-Reply-To: <36819C4DB6FB4B11B115F046D018D5C4@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: php5-5.3.6_1 with Segmentation fault (amd64) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2011 07:33:16 -0000 Steven Hartland ha scritto: > Rebuild with threads enabled, will likely fix all your problems. That's correct. > Why the default is off I don't know but it conflicts with a > number of the main libs used e.g. libxml hence causing segvs > just as you described. The issue is very complex, it depends on many factors (FreeBSD version, calling program, extensions loaded, ports options, etc.). In short words, dlopening and dlclosing libthr is bad. The final and definitive solution would be a libc including libthr (if I'm not wrong there was a plan to do it). A less drastic solution would be to link to libthr every program that dlopen() uncontrolled libraries (i.e. apache, php, etc.). I've already proposed this change, but was considered too risky at that time. So, for now, you have to live with the LINKTHR php option that does its best to make all happy. -- Alex Dupre