Date: Thu, 17 Apr 2008 15:20:29 +0200 From: "Claus Guttesen" <kometen@gmail.com> To: FreeBSD <freebsd-stable@freebsd.org> Subject: Re: php5 and postgresql 8.2/8.3 Message-ID: <b41c75520804170620j32758dep36ef01a8f37430bd@mail.gmail.com> In-Reply-To: <b41c75520804170505h31769efycafb0a238c78aa24@mail.gmail.com> References: <b41c75520804170505h31769efycafb0a238c78aa24@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b41c75520804170620j32758dep36ef01a8f37430bd>