ID: 25267 Updated by: [EMAIL PROTECTED] Reported By: mzieba at medianet dot pl -Status: Open +Status: Feedback Bug Type: InterBase related Operating System: Linux 2.4.18-27.8.0 (Redhat) PHP Version: 4.3.3 New Comment:
Could you do a rm config.cache and make clean before you reconfigure and recompile. Previous Comments: ------------------------------------------------------------------------ [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
