php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21256 PHP crashes on executing 'php --version'
Submitted: 2002-12-28 16:49 UTC Modified: 2003-01-13 18:17 UTC
From: alex at a-kraft dot ru Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.0 OS: RedHat Linux 8
Private report: No CVE-ID: None
 [2002-12-28 16:49 UTC] alex at a-kraft dot ru
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-28 16:51 UTC] derick@php.net
Please disable the Zend Extensions from php.ini; my guess is that they are not compatible with PHP 4.3.0. (I see zm_activate_dbg in one of the last frames in your stack dump).

Derick
 [2003-01-13 18:17 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 10 11:01:27 2024 UTC