ID: 25267
User updated by: mzieba at medianet dot pl
Reported By: mzieba at medianet dot pl
-Status: Feedback
+Status: Open
Bug Type: InterBase related
Operating System: Linux 2.4.18-27.8.0 (Redhat)
PHP Version: 4.3.3
New Comment:
I did that last time. (rm ../config.cache and make distclean)
Now, I rm -rf whole php-4.3.3 dir, untar it again, check twice , that
there is no config.cache in upper directory, rm -rf /usr/local/php4
(thats prefix, where it should go)
then ./configure with my options, make, make install.
Still no additional debug info.
So, I removed once again whole /tmp/php-related stuff, untar it in
different dir, changed prefix. (just in case, it's something wrong with
fs cache)
[EMAIL PROTECTED] php-4.3.3]# /usr/local/php-interbase/bin/php -v
PHP 4.3.3 (cli) (built: Aug 27 2003 13:29:36) (DEBUG)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[EMAIL PROTECTED] php-4.3.3]# file /usr/local/php-interbase/bin/php
/usr/local/php-interbase/bin/php: ELF 32-bit LSB executable, Intel
80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses
shared libs), not stripped
[EMAIL PROTECTED] php-4.3.3]# grep extension_dir /usr/local/php.ini
extension_dir = /usr/local/php-interbase/lib/php/20020429-debug
file /usr/local/php-interbase/lib/php/20020429-debug/interbase.so
/usr/local/php-interbase/lib/php/20020429-debug/interbase.so: ELF
32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
[EMAIL PROTECTED] php-4.3.3]# ldd
/usr/local/php-interbase/lib/php/20020429-debug/interbase.so
libgds.so => /usr/lib/libgds.so (0x40019000)
libc.so.6 => /lib/libc.so.6 (0x40191000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
[EMAIL PROTECTED] php-4.3.3]# /usr/local/php-interbase/bin/php -c
/usr/local/php.ini /home/baza/www/ib.php
...
Segmentation fault (core dumped)
[EMAIL PROTECTED] php-4.3.3]# gdb /usr/local/php-interbase/bin/php core
[...]
(gdb) bt
#0 0x40a1ed00 in ?? ()
#1 0x08212401 in main (argc=4, argv=0xbfffecf4) at
/tmp/php4/php-4.3.3/sapi/cli/php_cli.c:882
#2 0x401554ed in __libc_start_main () from /lib/libc.so.6
any idea, what I should check? :/
Previous Comments:
------------------------------------------------------------------------
[2003-08-27 06:06:03] [EMAIL PROTECTED]
Could you do a rm config.cache and make clean before you reconfigure
and recompile.
------------------------------------------------------------------------
[2003-08-27 05:52:57] mzieba at medianet dot pl
Oh, sorry.
I didn't notice --disable-debug follows my --enable-debug :(
It can be strange composition of firebird, glibc, gcc ...
[EMAIL PROTECTED] php-4.3.3]# /usr/local/php4/bin/php -v
PHP 4.3.3 (cli) (built: Aug 27 2003 12:27:48) (DEBUG)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[EMAIL PROTECTED] php-4.3.3]# /usr/local/php4/bin/php -c /usr/local/php.ini
/home/baza/www/ib.php
PHP Warning: (some)
Segmentation fault (core dumped)
but backtrace is the same ;/ Maybe it's not in PHP at all. But I've no
idea, how to confirm that.
#0 0x40a1ed00 in ?? ()
(gdb) bt
#0 0x40a1ed00 in ?? ()
#1 0x08212401 in main (argc=4, argv=0xbffff014) at
/tmp/php/php-4.3.3/sapi/cli/php_cli.c:882
#2 0x401554ed in __libc_start_main () from /lib/libc.so.6
------------------------------------------------------------------------
[2003-08-27 05:22:16] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Could you re-configure with --enable-debug and run the backtrace again
? I can't reproduce the bug from the code you sent.
------------------------------------------------------------------------
[2003-08-27 04:02:42] mzieba at medianet dot pl
Description:
------------
I'm not sure, if it's the same bug as closed 22056 or 7014, but I've
got SEGV on ibase_close() with php 4.3.3.
Warnings are ok, I know, that these links are not valid.
httpd (Apache) 2.0.47
/usr/local/php4/bin/php -v
PHP 4.3.3 (cli) (built: Aug 27 2003 09:47:50)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-4)998-2003
and configure:
./configure --prefix=/usr/local/php4 --with-apxs2 \
--enable-track-vars --enable-debug \
--with-xml=shared \
--cache-file=../config.cache \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-curl \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-openssl \
--with-png \
--with-pspell \
--with-regex=system \
--with-xml \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--without-oci8 \
--with-pear=/usr/share/pear \
--with-imap=shared \
--with-imap-ssl \
--with-kerberos \
--with-ldap=shared \
--with-mysql=shared \
--with-mssql=shared \
--with-pgsql=shared \
--with-unixODBC=shared \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-versioning \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mcal \
--with-interbase=shared \
--enable-mbstring --enable-mbstr-enc-trans \
--enable-mbregex
Hope, this will help, in some way. ;-)
Reproduce code:
---------------
<?php
$host = 'example.com';
$dbh = ibase_connect($host, 'SYSDBA', 'masterkey');
ibase_close($dbh);
?>
Expected result:
----------------
PHP Warning: ibase_connect(): I/O error for file "example.com" Error
while trying to open file No such file or directory in
/home/baza/www/ib.php on line 3
PHP Warning: ibase_close(): 0 is not a valid InterBase link resource
in /home/baza/www/ib.php on line 4
Actual result:
--------------
Warnings above +
Segmentation fault (core dumped)
backtrace:
(gdb) bt
#0 0x40a0bd00 in ?? ()
#1 0x081a454c in main (argc=4, argv=0xbfffdd94) at
/tmp/php/php-4.3.3/sapi/cli/php_cli.c:882
#2 0x401554ed in __libc_start_main () from /lib/libc.so.6
(gdb) fr 1
#1 0x081a454c in main (argc=4, argv=0xbfffdd94) at
/tmp/php/php-4.3.3/sapi/cli/php_cli.c:882
882 exit(exit_status);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25267&edit=1