From: [EMAIL PROTECTED] Operating system: RedHat Linux 8 PHP version: 4.3.0 PHP Bug Type: Zend Engine 2 problem Bug description: PHP crashes on executing 'php --version'
Executing 'php --version' causes "Segmentation fault" on RH 8 (i386). Also, Apache 2.0 hangs during opening .php pages. --------------------------------- Configure line: "--with-apxs2=/usr/sbin/apxs --host=i686-pc-linux-gnu --build=i686-pc-linux-gn u --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr - -bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --included ir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sha redstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr - -with-config-file-path=/etc --enable-force-cgi-redirect --enable-debug --enable-pic -- disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with- dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --w ith-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-ncurs es --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --wi th-pspell --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --wit h-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes -- enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-disca rd-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --witho ut-oci8 --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerb eros=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=s hared --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning - -enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-ucd-snmp-compatibi lity" --------------------------------- Zend Studio 2.5 installed. --------------------------------- gdb backtrace: (gdb) file php Reading symbols from php...done. (gdb) set args --version (gdb) run Starting program: /usr/bin/php --version [New Thread 8192 (LWP 5565)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 8192 (LWP 5565)] 0x0815cf3e in zend_hash_find (ht=0x81eea28, arKey=0x40021b04 "_POST", nKeyLength=6, pData=0xbffff740) at /usr/local/_apps/php/it/php-4.3.0/Zend/zend_hash.c:882 882 if ((p->h == h) && (p->nKeyLength == nKeyLength)) { (gdb) bt #0 0x0815cf3e in zend_hash_find (ht=0x81eea28, arKey=0x40021b04 "_POST", nKeyLength=6, pData=0xbffff740) at /usr/local/_apps/php/it/php-4.3.0/Zend/zend_hash.c:882 #1 0x400190e3 in chk_scan_post () from /usr/lib/php4/dbg.so #2 0x400191f6 in chk_session_request_post () from /usr/lib/php4/dbg.so #3 0x4001928b in zm_activate_dbg () from /usr/lib/php4/dbg.so #4 0x0815ab21 in module_registry_request_startup (module=0x82649b0) at /usr/local/_apps/php/it/php-4.3.0/Zend/zend_API.c:1150 #5 0x0815ca11 in zend_hash_apply (ht=0x81eece0, apply_func=0x815aaf0 <module_registry_request_startup>) at /usr/local/_apps/php/it/php-4.3.0/Zend/zend_hash.c:688 #6 0x08158208 in zend_activate_modules () at /usr/local/_apps/php/it/php-4.3.0/Zend/zend.c:626 #7 0x0813265c in php_request_startup () at /usr/local/_apps/php/it/php-4.3.0/main/main.c:887 #8 0x08170da2 in main (argc=2, argv=0xbffffa54) at /usr/local/_apps/php/it/php-4.3.0/sapi/cli/php_cli.c:722 #9 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6 -- Edit bug report at http://bugs.php.net/?id=21256&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21256&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21256&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21256&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21256&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21256&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21256&r=support Expected behavior: http://bugs.php.net/fix.php?id=21256&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21256&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21256&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21256&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21256&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21256&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21256&r=isapi