From owner-freebsd-questions@FreeBSD.ORG Wed Mar 17 06:58:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF6CC16A4CE for ; Wed, 17 Mar 2004 06:58:16 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9186543D53 for ; Wed, 17 Mar 2004 06:58:15 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i2HEw88p030133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Mar 2004 14:58:08 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2HEw8gq030132; Wed, 17 Mar 2004 14:58:08 GMT (envelope-from matthew) Date: Wed, 17 Mar 2004 14:58:08 +0000 From: Matthew Seaman To: Heinrich Rebehn Message-ID: <20040317145808.GA29859@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Heinrich Rebehn , freebsd-questions@freebsd.org References: <40582439.7060403@ant.uni-bremen.de> <20040317124000.GD26606@happy-idiot-talk.infracaninophile.co.uk> <405850A2.3060509@ant.uni-bremen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <405850A2.3060509@ant.uni-bremen.de> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: freebsd-questions@freebsd.org Subject: Re: apache+mod_ssl + php4 crashes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2004 14:58:16 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 17, 2004 at 02:20:34PM +0100, Heinrich Rebehn wrote: > this is the ldd output: >=20 > root@antsrv1 [/usr/local/libexec/apache] # ldd ./libphp4.so > ./libphp4.so: [...] > libc_r.so.5 =3D> /usr/lib/libc_r.so.5 (0x287fd000) Hmmmm... Which OS version are you building this on? If it's 5.2.1-RELEASE, I think that libc_r.so.5 should be replaced by libpthread.so.N -- and one exceedingly annoying problem is that in a dynamically linked program like Apache, parts of it can end up being linked against libpthread, and other parts can be linked against libc_r, which will cause the whole thing to crash. One solution is to use /etc/libmap.conf to substiture libpthread for libc_r during the dynamic link stage of program startup. See libmap.conf(5). /etc/libmap.conf should contain something like: libpthread.so.1 libpthread.so.1 # Everything uses 'libpthread' libpthread.so libpthread.so libc_r.so.5 libpthread.so.1 # Everything that uses 'libc_r' libc_r.so libpthread.so # now uses 'libpthread' Of course, the ultimate solution is to fix all of the ports and recompile them so that they automatically link against the correct threading library. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAWGeAdtESqEQa7a0RAp08AJ4qsPQTd9u7d6Xa+h+U4IH0gYqTRwCfWiz9 U8RXctZ5dNBeaU30ruvYadY= =ckjq -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--