[PHP-DEV] Bug #14546 Updated: Segmentation fault in httpd child process when using user authentication

2001-12-16 Thread assassin

ID: 14546
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Reproducible crash
Operating System: RedHat Linux 7.0
PHP Version: 4.1.0
New Comment:

I know it was fixed, but I just thought I'ld add that the problem has started 
producing itself in the new copy of httpd that I compiled, strange that it took a 
while before it started occurring.

Starting program: /opt/server/httpd/bin/httpd -X
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x401376cb in memcpy (dstpp=0xbfffdca4, srcpp=0x88f3545, len=4) at 
../sysdeps/generic/memcpy.c:61
61  ../sysdeps/generic/memcpy.c: No such file or directory.
(gdb) bt full
#0  0x401376cb in memcpy (dstpp=0xbfffdca4, srcpp=0x88f3545, len=4) at 
../sysdeps/generic/memcpy.c:61
dstpp = (void *) 0xbfffdca4
len = 4
dstp = 3221216420
srcp = 143603013
#1  0x812afaa in _mem_block_check ()
No symbol table info available.
#2  0x812af6d in _mem_block_check ()
No symbol table info available.
#3  0x812a113 in _efree ()
No symbol table info available.
#4  0x80958bb in sapi_add_header_ex ()
No symbol table info available.
#5  0x80d3ee0 in zif_header ()
No symbol table info available.
#6  0x81607ab in execute ()
No symbol table info available.
#7  0x813bff4 in zend_execute_scripts ()
No symbol table info available.
#8  0x809279e in php_execute_script ()
No symbol table info available.
#9  0x8147a32 in apache_php_module_main ()
No symbol table info available.
#10 0x808ec86 in php_restore_umask ()
No symbol table info available.
#11 0x808ece1 in php_restore_umask ()
No symbol table info available.
#12 0x8185e69 in ap_invoke_handler ()
No symbol table info available.
#13 0x819aaf7 in ap_some_auth_required ()
No symbol table info available.
#14 0x819ab58 in ap_process_request ()
No symbol table info available.
#15 0x8191c79 in ap_child_terminate ()
No symbol table info available.
#16 0x8191e24 in ap_child_terminate ()
No symbol table info available.
#17 0x8191f94 in ap_child_terminate ()
No symbol table info available.
#18 0x819260d in ap_child_terminate ()
No symbol table info available.
#19 0x8192e8b in main ()
No symbol table info available.
#20 0x400d4790 in __libc_start_main (main=0x8192ae4 , argc=2, ubp_av=0xbb14, 
init=0x8075124 <_init>,
fini=0x824756c <_fini>, rtld_fini=0x4000d35c <_dl_fini>, stack_end=0xbb0c) at 
../sysdeps/generic/libc-start.c:111
ubp_av = (char **) 0xbb14
fini = (void (*)()) 0x40015d18 <_dl_debug_impcalls>
rtld_fini = (void (*)()) 0x4
ubp_ev = (char **) 0xbb20

Previous Comments:


[2001-12-16 09:54:10] [EMAIL PROTECTED]

This was just fixed in CVS, closing.

Derick



[2001-12-16 09:53:19] [EMAIL PROTECTED]

Another report for this bug. Let's reopen this one.
---
Hello ,

I have similar problem with this code on Apache1.3.22+php4.1.0 linux
2.4.16 RH6.2.  I think this is critical problem.

I configure PHP with:

CC=gcc2.95.3 \
CXX=gcc2.95.3 \
./configure \
--prefix=/usr/local/php \
--with-apxs=/usr/local/httpd/bin/apxs \
--with-config-file-path=/usr/local/php/etc \
--enable-track-vars \
--enable-magic-quotes \
--enable-safe-mode \
--enable-memory-limit \
--enable-sysvshm \
--enable-sysvsem \
--enable-shmop \
--enable-sockets \
--enable-wddx \
--enable-xslt \
--enable-ctype \
--enable-bcmath \
--enable-mailparse \
--enable-ftp \
--with-gd=/export/work/gd-1.8.4-gif \
--with-jpeg-dir=/export/work/jpeg-6b \
--with-png-dir=/export/work/libpng-1.0.9 \
--with-ttf=/export/work/freetype-1.3.1 \
--with-mysql=/usr/local/mysql \
--with-openssl=/usr/local/ssl \
--with-epipe \
--with-mcrypt \
--with-mhash \
--with-zlib \
--with-mm \
--with-xmlrpc \
--with-iconv \
--with-curl \
--with-bz2 \
--with-gmp  \
--with-ldap \
--with-xml  \
--with-zip  \
--with-gettext \
--with-dom \
--with-xslt-sablot \
"$@"

aucu> I am using Apache 1.3.22 and PHP 4.1.0 on RedHat Linux 7.0.
aucu> When I view the following script, or any similar scripts with user
aucu> authentication features, the page comes up as "can't be displayed", a look
aucu> in the error_log shows the error "child pid 25693 exit signal Segmentation
aucu> fault (11)" (obviously a different pid each time).

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

aucu> My PHP configure line was:
aucu> ./configure --prefix=/opt/server/php --with-mysql=/opt/server/mysql
aucu> --enable-ftp --enable-safe-mode --enable

[PHP-DEV] Bug #14546 Updated: Segmentation fault in httpd child process when using user authentication

2001-12-16 Thread assassin

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

Well I recompiled with --enable-debug to do as you said, and it now seems to work and 
doesn't crash.

This was with EXACTLY the same options as the first time when it didn't work (except 
--enable-debug). I guess I can only put it down to RedHat 7.0, not the best of 
releases, we intend to upgrade it as soon as we get a chance.

Thanks for your time anyway.

Previous Comments:


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

feedback



[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:
Hello $PHP_AUTH_USER.";
echo "You entered $PHP_AUTH_PW as your password.";
  }
?>

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 , argc=2, ubp_av=0xbaf4,
init=0x8074e90 <_init>, fini=0x820675c <_fini>, rtld_fini=0x4000d35c <_dl_fini>,
stack_end=0xbaec) at ../sysdeps/generic/libc-start.c:111





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14546 Updated: Segmentation fault in httpd child process when using user authentication

2001-12-16 Thread assassin

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

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.

Previous Comments:


[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:
Hello $PHP_AUTH_USER.";
echo "You entered $PHP_AUTH_PW as your password.";
  }
?>

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 , argc=2, ubp_av=0xbaf4,
init=0x8074e90 <_init>, fini=0x820675c <_fini>, rtld_fini=0x4000d35c <_dl_fini>,
stack_end=0xbaec) at ../sysdeps/generic/libc-start.c:111





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14546: Segmentation fault in httpd child process when using user authentication

2001-12-16 Thread assassin

From: [EMAIL PROTECTED]
Operating system: RedHat Linux 7.0
PHP version:  4.1.0
PHP Bug Type: Reproducible crash
Bug description:  Segmentation fault in httpd child process when using user 
authentication

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:
Hello $PHP_AUTH_USER.";
echo "You entered $PHP_AUTH_PW as your password.";
  }
?>

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 , argc=2,
ubp_av=0xbaf4,
init=0x8074e90 <_init>, fini=0x820675c <_fini>, rtld_fini=0x4000d35c
<_dl_fini>,
stack_end=0xbaec) at ../sysdeps/generic/libc-start.c:111
-- 
Edit bug report at: http://bugs.php.net/?id=14546&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]