ID:               17414
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.2.1
 Assigned To:      aaron
 New Comment:

Yes.
Here's the backtrace:
#0  0x4015e973 in free () from /lib/libc.so.6
#1  0x4015f081 in realloc () from /lib/libc.so.6
#2  0x4015ebe4 in realloc () from /lib/libc.so.6
#3  0x402fcf77 in ts_allocate_id (rsrc_id=0x403c372c, size=88, 
    ctor=0x4030fae0 <php_output_init_globals>, dtor=0)
    at /home/thom/php4/TSRM/TSRM.c:206
#4  0x4030fb69 in php_output_startup () at
/home/thom/php4/main/output.c:73
#5  0x40300698 in php_module_startup (sf=0x403b0b00, 
    additional_modules=0x403b0cc0, num_additional_modules=1)
    at /home/thom/php4/main/main.c:1017
#6  0x4034eafe in php_apache2_startup (sapi_module=0x403b0b00)
    at /home/thom/php4/sapi/apache2filter/sapi_apache2.c:267
#7  0x4034f25d in php_apache_server_startup (pconf=0x80b5cb0,
plog=0x80edd90, 
    ptemp=0x80b7cb8, s=0x80f4648)
    at /home/thom/php4/sapi/apache2filter/sapi_apache2.c:543
#8  0x0807c371 in ap_run_post_config (pconf=0x80b5cb0, plog=0x80edd90,

    ptemp=0x80b7cb8, s=0x80f4648) at config.c:130
#9  0x08080afc in main (argc=3, argv=0xbffff914) at main.c:640

(gdb) frame 0
#0  0x4015e973 in free () from /lib/libc.so.6
(gdb) frame 1
#1  0x4015f081 in realloc () from /lib/libc.so.6
(gdb) frame 2
#2  0x4015ebe4 in realloc () from /lib/libc.so.6
(gdb) frame 3
#3  0x402fcf77 in ts_allocate_id (rsrc_id=0x403c372c, size=88, 
    ctor=0x4030fae0 <php_output_init_globals>, dtor=0)
    at /home/thom/php4/TSRM/TSRM.c:206
206                     resource_types_table = (tsrm_resource_type *)
realloc(resource_types_table, sizeof(tsrm_resource_type)*id_count);
(gdb) frame 4
#4  0x4030fb69 in php_output_startup () at
/home/thom/php4/main/output.c:73
73              ts_allocate_id(&output_globals_id,
sizeof(php_output_globals), (ts_allocate_ctor) php_output_init_globals,
NULL);


Previous Comments:
------------------------------------------------------------------------

[2002-10-10 08:56:02] [EMAIL PROTECTED]

Does the crash occur if you limit the PHP configure line to:

./configure --with-apxs2=/usr/local/apache2-php/bin/apxs --enable-debug

------------------------------------------------------------------------

[2002-10-10 08:43:34] [EMAIL PROTECTED]

I can't reproduce this exact problem.
However, Apache2 now segfaults on restart whenever PHP4 is loaded.
(current CVS for both.)
This uses the following apache2 config:

"./configure" \
"--with-mpm=worker" \
"--prefix=/usr/local/apache2-php/" \
"--enable-modules=max" \
"--enable-maintainer-mode" \
"$@"

and the following PHP config.
'./configure' \
'--with-mysql' \
'--with-gd=/usr' \
'--with-curl=/usr' \
'--with-ttf=/usr' \
'--with-png-dir=/usr' \
'--with-jpeg-dir=/usr' \
'--with-openssl=/usr' \
'--with-zlib=/usr' \
'--with-freetype-dir=/usr' \
'--enable-debug' \
'--with-apxs2=/usr/local/apache2-php/bin/apxs' \
"$@"

------------------------------------------------------------------------

[2002-10-09 14:23:18] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

I am unable to duplicate the problem using PHP 4.3-dev and Apache
2.0.43. Could you try and see if the problem you've mentioned is still
there on your machine, thanks.

------------------------------------------------------------------------

[2002-09-16 10:36:22] [EMAIL PROTECTED]

Any news on this?

------------------------------------------------------------------------

[2002-05-24 11:52:08] [EMAIL PROTECTED]

Thom and I already spoke about this bug, and I'm going to
try to reproduce it locally as soon as possible, but
at this point I'm not sure if it's Apache's fault or
something in the apache2filter. I'm leaning toward
a problem in the latter. I'm also going to try to reproduce
this under the prefork MPM, but if someone beats me to
it, please submit your results here.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17414

-- 
Edit this bug report at http://bugs.php.net/?id=17414&edit=1

Reply via email to