From owner-freebsd-stable@FreeBSD.ORG Thu Apr 17 13:20:44 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E8A7106567C for ; Thu, 17 Apr 2008 13:20:44 +0000 (UTC) (envelope-from kometen@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id BD4358FC24 for ; Thu, 17 Apr 2008 13:20:43 +0000 (UTC) (envelope-from kometen@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so39374ywt.13 for ; Thu, 17 Apr 2008 06:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=s6atirVKG0h1OlxmuBirjrg0EhpDuI9tX0KPkF3pWVY=; b=vp/+8/6riZTkYnJQ4W5KAah28CMGlOY1T3mL3pJxPnlSBVojFWqQmbN3p82LMLrCBk+7G2tJay+GoJmqErVOt1S4hVhpKB1/yYT6E6HFLSdOaIA689kN2Kd12QU36UE7+JXsqRbpoVTY8KKCSB9/NaS7vaeYglz3Afmy2Bryd60= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iRdMbFqJnIav0XmTsX1hablEnpZ0FwBnc9FQ1+3t6rPnafLMFsOgaLvUTzLN/mFOPbKaQh4LI3piauOCSsOMzYeUdk8lmRcrsWaGAWsCzNRMOlNo93HfA4dO5D5iLeXKqalF7T5q6PMX6xabEdjHyHUBZ+QMgxXqEbX9smA2/3w= Received: by 10.151.42.12 with SMTP id u12mr1636006ybj.97.1208438429636; Thu, 17 Apr 2008 06:20:29 -0700 (PDT) Received: by 10.150.158.2 with HTTP; Thu, 17 Apr 2008 06:20:29 -0700 (PDT) Message-ID: Date: Thu, 17 Apr 2008 15:20:29 +0200 From: "Claus Guttesen" To: FreeBSD In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: php5 and postgresql 8.2/8.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2008 13:20:44 -0000 > I have installed php5 with support for postgresql (php5-pgsql). If I > install postgresql-client ver. 8.2.7 or 8.3.x apache (httpd) > core-dumps. If I install postgresql-client 8.1.11 or 8.2.6 apache does > not core-dump. > > This is the output (backtrace) from gdb: > > (gdb) bt > #0 0x000000080651c340 in ?? () > #1 0x000000080094ebd5 in puts () from /lib/libc.so.7 > #2 0x000000080094f1ee in gethostbyname () from /lib/libc.so.7 > #3 0x000000000041ee80 in ap_get_local_host () > #4 0x000000000041e131 in ap_fini_vhost_config () > #5 0x000000000040de35 in ap_read_config () > #6 0x00000000004156f1 in standalone_main () > #7 0x0000000000416e2c in main () > > I have confirmed that it's postgresql which makes apache core dump by > commenting out pgsql.so in /usr/local/etc/php/extensions.ini. This - > off-course - prevents me from connecting to my db. :-/ > > Apache is ver. 1.3.41 from ports with no changes to the default-values > during portinstall. PHP is ver. 5.2.5_1. Replying to myself (and others :-) ). When compiling php5 statically with postgresql-support apache no longer core dumps. I added CONFIGURE_ARGS+=--with-pgsql to /usr/ports/lang/php5/Makefile. -- regards Claus When lenity and cruelty play for a kingdom, the gentlest gamester is the soonest winner. Shakespeare