ID: 14546
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: RedHat Linux 7.0
PHP Version: 4.1.0
New Comment:

feedback

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

[2001-12-16 08:01:20] [EMAIL PROTECTED]

Can you compile PHP with --enable-debug, and create a new backtrace? THis gives us 
more information (you can do a
'bt full' too, which fives even more useful information.

Derick

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

[2001-12-16 07:57:50] [EMAIL PROTECTED]

May be related to 14534


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

[2001-12-16 07:56:55] [EMAIL PROTECTED]

As a test, I downgraded back to PHP 4.0.6, with identical compile options as before in 
both Apache and PHP and the problem does not occur, so it appears to be PHP 4.1.0 
specific.

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

[2001-12-16 07:49:26] [EMAIL PROTECTED]

I am using Apache 1.3.22 and PHP 4.1.0 on RedHat Linux 7.0.

When I view the following script, or any similar scripts with user authentication 
features, the page comes up as "can't be displayed", a look in the error_log shows the 
error "child pid 25693 exit signal Segmentation fault (11)" (obviously a different pid 
each time).

The script is:
<?php
  if(!isset($PHP_AUTH_USER)) {
    header("WWW-Authenticate: Basic realm=\"My Realm\"");
    header("HTTP/1.0 401 Unauthorized");
    echo "Text to send if user hits Cancel button\n";
    exit;
  } else {
    echo "<p>Hello $PHP_AUTH_USER.</p>";
    echo "<p>You entered $PHP_AUTH_PW as your password.</p>";
  }
?>

My PHP configure line was:
./configure --prefix=/opt/server/php --with-mysql=/opt/server/mysql --enable-ftp 
--enable-safe-mode --enable-track-vars --with-apache=../apache_1.3.22

My Apache configure line was:
./configure --prefix=/opt/server/httpd --activate-module=src/modules/php4/libphp4.a 
--activate-module=src/modules/perl/libperl.a

GDB Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x80f99ee in _efree ()
(gdb) bt
#0  0x80f99ee in _efree ()
#1  0x80934e3 in sapi_add_header_ex ()
#2  0x80bedd0 in zif_header ()
#3  0x811fbff in execute ()
#4  0x8106179 in zend_execute_scripts ()
#5  0x8091395 in php_execute_script ()
#6  0x810e2a2 in apache_php_module_main ()
#7  0x808e91e in php_restore_umask ()
#8  0x808e979 in php_restore_umask ()
#9  0x8145059 in ap_invoke_handler ()
#10 0x8159ce7 in ap_some_auth_required ()
#11 0x8159d48 in ap_process_request ()
#12 0x8150e69 in ap_child_terminate ()
#13 0x8151014 in ap_child_terminate ()
#14 0x8151184 in ap_child_terminate ()
#15 0x81517fd in ap_child_terminate ()
#16 0x815207b in main ()
#17 0x400d4790 in __libc_start_main (main=0x8151cd4 <main>, argc=2, ubp_av=0xbffffaf4,
    init=0x8074e90 <_init>, fini=0x820675c <_fini>, rtld_fini=0x4000d35c <_dl_fini>,
    stack_end=0xbffffaec) at ../sysdeps/generic/libc-start.c:111

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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to