segmentation fault in libpq (PHP CLI)

From: Bugs <test(at)valere(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: segmentation fault in libpq (PHP CLI)
Date: 2003-05-09 16:12:34
Message-ID: 20030509090933.G85703-100000@vit1.valere.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

ID: 23553
Updated by: iliaa(at)php(dot)net
Reported By: bugs at valere dot net
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: FreeBSD-4.8 Stable
PHP Version: 4.3.2RC2
New Comment:

Given your backtrace the segfault appears to be inside the PostgreSQL
library and not PHP. If there are no more backtrace steps beside the 2
you've shown this is not a PHP bug.

Previous Comments:
------------------------------------------------------------------------

[2003-05-08 16:52:02] bugs at valere dot net

1) make install

2) CPPFLAGS="-I/usr/local/include/gd/
-I/usr/local/BerkeleyDB.3.3/include/" \
LDFLAGS=-L/usr/local/BerkeleyDB.3.3/lib/ \
./configure --with-apxs=/usr/local/www/bin/apxs \
--enable-debug \
--with-pgsql=/usr/local/pgsql \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-openssl \
--with-gd \
--with-gettext \
--with-mcrypt \
--with-imap \
--with-zlib-dir=/usr/local/src/zlib-1.1.4 \
--enable-track-vars \
--enable-trans-sid \
--with-db3=/usr/local/BerkeleyDB.3.3 \
--enable-ftp

3) FreeBSD 4.8 stable, postgresql 7.3.2, mysql-4.0.12, gd bundled
(2.0.12 compatible), mcrypt >= 2.4.x, zlib 1.1.4, OpenSSL 0.9.7a Feb
19 2003

4) gdb backtrace

Examining /usr/local/src/apache/php-4.3.2RC2/sapi/cli/php...Using
cached time 9
:08:16 May 08, 2003 for
/usr/local/src/apache/php-4.3.2RC2/sapi/cli/php
modified 9:08:16 May 08, 2003...up-to-date.
Examining install-pear-installer...non-existent...modified before
source...out-o
f-date.
install-pear-installer:> =
/usr/local/src/apache/php-4.3.2RC2/sapi/cli/php
install-pear-installer:? =
/usr/local/src/apache/php-4.3.2RC2/sapi/cli/php
/usr/local/src/apache/php-4.3.2RC2/sapi/cli/php -n -dsafe_mode=0
/usr/local/src/
apache/php-4.3.2RC2/pear/install-pear.php
/usr/local/src/apache/php-4.3.2RC2/pea
r/package-*.xml
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/local/src/apache/php-4.3.2RC2.
*** Error code 1

Stop in /usr/local/src/apache/php-4.3.2RC2.

(root(at)gw(dot)valere(dot)net) 09:12:39
(523 / 23) [/usr/local/src/apache/php-4.3.2RC2]$: gdb
'/usr/local/src/apache/php
-4.3.2RC2/sapi/cli/php -n -dsafe_mode=0
/usr/local/src/apache/php-4.3.2RC2/pear/
install-pear.php /usr/local/src/apache/php-4.3.2RC2/pear/package-*.xml'
php.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read
called a
t
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2
627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../cont
rib/gdb/gdb/dbxread.c line 933 in fill_symbuf

unknown option `-n'

Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/local/lib/libc-client4.so.8...done.
Reading symbols from /usr/local/pgsql/lib/libpq.so.3...done.
Reading symbols from
/usr/local/mysql/lib/mysql/libmysqlclient.so.12...done.
Reading symbols from /usr/local/lib/libmcrypt.so.8...done.
Reading symbols from /usr/local/lib/libltdl.so.1...done.
Reading symbols from /usr/lib/libpam.so.1...done.
Reading symbols from /usr/local/lib/libintl.so.4...done.
Reading symbols from /usr/local/lib/libpng.so.5...done.
Reading symbols from
/usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so...done.
Reading symbols from /usr/lib/libssl.so.3...done.
Reading symbols from /usr/lib/libcrypto.so.3...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x2866bd28 in strcmp () from /usr/lib/libc.so.4
(gdb) bt
#0 0x2866bd28 in strcmp () from /usr/lib/libc.so.4
#1 0x283546aa in OBJ_NAME_cleanup () from
/usr/local/pgsql/lib/libpq.so.3
Cannot access memory at address 0x2.

------------------------------------------------------------------------

Browse pgsql-bugs by date

  From Date Subject
Next Message Achilleus Mantzios 2003-05-09 18:11:49 Re: An unresolved performance problem.
Previous Message Database Administrator 2003-05-09 14:26:20 PL/PgSQL Create/Drop Table Issue