From:             alan at akbkhome dot com
Operating system: debian / linux
PHP version:      5.0.4
PHP Bug Type:     Reproducible crash
Bug description:   sapi_module.treat_data not getting initialized (apache2)

Description:
------------
tried HEAD & php-5.0.4

getting segfault at startup with apache2
#1  0x4086a123 in php_hash_environment ()
    at /usr/src/php-5.0.4/main/php_variables.c:625
        p = 0x81ecc39 "GPCS"
        _gpc_flags = "\000\000\000\001"
        dummy_track_vars_array = (zval *) 0x0
        initialized_dummy_track_vars_array = 0 '\0'
        jit_initialization = 0 '\0'
        auto_global_records = {{name = 0x40a0c39b "_POST", name_len = 6,
    long_name = 0x40a236b2 "HTTP_POST_VARS", long_name_len = 15,
    jit_initialization = 0 '\0'}, {name = 0x40a0c3a1 "_GET", name_len =
5,
    long_name = 0x40a236c1 "HTTP_GET_VARS", long_name_len = 14,
    jit_initialization = 0 '\0'}, {name = 0x40a0c393 "_COOKIE", name_len =
8,
    long_name = 0x40a236cf "HTTP_COOKIE_VARS", long_name_len = 17,
    jit_initialization = 0 '\0'}, {name = 0x408c12ab "_SERVER", name_len =
8,
    long_name = 0x40a236e0 "HTTP_SERVER_VARS", long_name_len = 17,
    jit_initialization = 1 '\001'}, {name = 0x40a1683e "_ENV", name_len =
5,
    long_name = 0x40a236f1 "HTTP_ENV_VARS", long_name_len = 14,
    jit_initialization = 1 '\001'}, {name = 0x40a23708 "_FILES", name_len
= 7,
    long_name = 0x40a236ff "HTTP_POST_FILES", long_name_len = 16,
    jit_initialization = 0 '\0'}}
        i = 6
#2  0x4085edc4 in php_request_startup () at
/usr/src/php-5.0.4/main/main.c:1060
        orig_bailout = {{__jmpbuf = {135586232, 1084715676, -1073743140,
      -1073743112, -1073743568, 1082911454}, __mask_was_saved = 0,
    __saved_mask = {__val = {0 <repeats 32 times>}}}}
        orig_bailout_set = 1 '\001'
        retval = 0
#3  0x408bedfb in php_handler (r=0x8221948)
    at /usr/src/php-5.0.4/sapi/apache2handler/sapi_apache2.c:527
        orig_bailout = {{__jmpbuf = {0, 0, 0, 0, 0, 0}, __mask_was_saved =
0,
    __saved_mask = {__val = {0 <repeats 32 times>}}}}
        ctx = (php_struct *) 0x8223240
        conf = (void *) 0x0
        brigade = (apr_bucket_brigade *) 0x82232b8
        bucket = (apr_bucket *) 0x0
        rv = 0
        parent_req = (request_rec *) 0x0
#4  0x080783d5 in ap_run_handler ()
No symbol table info available.
(gdb) up
#1  0x4086a123 in php_hash_environment ()
    at /usr/src/php-5.0.4/main/php_variables.c:625
625                                            
sapi_module.treat_data(PARSE_GET, NULL, NULL TSRMLS_CC);        /* GET
Data */
(gdb)  print sapi_module.treat_data
$2 = (void (*)(int, char *, zval *)) 0


build:
 './configure' 
'--prefix=/usr'
 '--with-regex=php'
 '--disable-cgi' 

'--with-config-file-path=/etc/php5/cli' 
'--disable-rpath'
 '--enable-memory-limit' 
'--with-layout=GNU'
 '--with-pear=/usr/share/php'
 '--enable-track-vars'
 '--enable-trans-sid' 
'--enable-bcmath'
 '--with-bz2' 
'--enable-ctype' '
--with-db4' 
'--with-iconv' 
'--enable-exif'
 '--enable-ftp' 
'--with-gettext' 
'--enable-mbstring'
 '--with-pcre-regex=/usr'
 '--enable-shmop'
 '--enable-sockets'
 '--enable-wddx'
 '--disable-xml'
 '--with-expat-dir=/usr'
 '--with-xmlrpc' 
'--enable-yp' 
'--with-zlib' 
'--without-pgsql'
 '--with-kerberos=/usr' 
'--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php5/libexec' 
'--disable-static'
 '--without-mm'
 '--without-mysql'
 '--without-sybase-ct' 
'--enable-curl'
 '--with-apxs2=/usr/bin/apxs2'
 '--without-sqlite'
 '--without-pdo-sqlite'




Reproduce code:
---------------
 


-- 
Edit bug report at http://bugs.php.net/?id=33197&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33197&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33197&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33197&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33197&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33197&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33197&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33197&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33197&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33197&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33197&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33197&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33197&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33197&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33197&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33197&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33197&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33197&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33197&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33197&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33197&r=mysqlcfg

Reply via email to