ID: 14515 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Apache related Operating System: linux 2.4.16 PHP Version: 4.1.0 New Comment:
sorry, forgot the stacktrace: (gdb) bt #0 0x40a0e333 in php_pcre_replace (regex=0x40ab8b11 "/realm=\"(.*?)\"/i", regex_len=16, subject=0x8184455 " Basic realm=\"DB-RW-Access\"", subject_len=27, replace_val=0x81844a4, is_callable_replace=0, result_len=0xbfffc19c, limit=-1) at php_pcre.c:768 #1 0x409bf494 in sapi_add_header_ex (header_line=0x8184444 "WWW-Authenticate", header_line_len=44, duplicate=1 '\001', replace=1 '\001') at SAPI.c:467 #2 0x40a4b7af in zif_header (ht=1, return_value=0x8184404, this_ptr=0x0, return_value_used=0) at head.c:56 #3 0x40996697 in execute (op_array=0x81840e4) at ./zend_execute.c:1590 #4 0x409a8364 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:814 #5 0x409bb8e1 in php_execute_script (primary_file=0xbffff268) at main.c:1309 #6 0x409b6220 in apache_php_module_main (r=0x816a250, display_source_mode=0) at sapi_apache.c:90 #7 0x409b71a0 in send_php (r=0x816a250, display_source_mode=0, filename=0x816bdc8 "/usr/local/WWW/marticole/htdocs/PRIVATE/Hausverwaltung/resthof.php") at mod_php4.c:575 #8 0x409b7223 in send_parsed_php (r=0x816a250) at mod_php4.c:590 #9 0x806e019 in ap_invoke_handler () #10 0x8083aef in process_request_internal () #11 0x8083b62 in ap_process_request () #12 0x807a696 in child_main () #13 0x807a875 in make_child () #14 0x807a9f6 in startup_children () #15 0x807b07c in standalone_main () #16 0x807b8cc in main () #17 0x40620c6f in __libc_start_main () from /lib/libc.so.6 (gdb) Previous Comments: ------------------------------------------------------------------------ [2001-12-15 08:23:37] [EMAIL PROTECTED] The only way to get some output was starting the apache inside gdb. I got the following: (gdb) run -X -f /usr/local/apache/conf/httpd.conf Starting program: /usr/local/apache/bin/httpd -X -f /usr/local/apache/conf/httpd.conf [New Thread 1024 (LWP 7109)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 7109)] 0x40a0e333 in php_pcre_replace (regex=0x40ab8b11 "/realm=\"(.*?)\"/i", regex_len=16, subject=0x8184455 " Basic realm=\"DB-RW-Access\"", subject_len=27, replace_val=0x81844a4, is_callable_replace=0, result_len=0xbfffc19c, limit=-1) at php_pcre.c:768 768 if ('\\' == *walk || '$' == *walk) { (gdb) ------------------------------------------------------------------------ [2001-12-14 18:41:15] [EMAIL PROTECTED] Could you provide backtrace? http://bugs.php.net/bugs-generating-backtrace.php Please read how to report bug link also. ------------------------------------------------------------------------ [2001-12-14 09:23:20] [EMAIL PROTECTED] Hi, when i try to run the following code, my apache goes banana (child pid XXX exit signal Segmentation fault (11) in the error_log) <?php if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"DB-RW-Access\""); Header("HTTP/1.0 401 Unauthorized"); echo "Get lost\n"; exit; } else { $dbid = $PHP_AUTH_USER; $dbpw = $PHP_AUTH_PW; } phpinfo(); exit; php-compile-time-options: './configure' '--prefix=/usr/local/php-4.1.0' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-force-cgi-redirect' '--with-config-file-path=/usr/local/apache/conf' '--with-openssl' '--with-bz2' '--with-imap' '--with-gdbm' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-oci8=/opt/oracle/app/oracle/product/8.1.7' '--with-mysql=/usr' '--enable-sigchild' '--with-mm' '--enable-rule=EAPI' apache-version: 1.3.20 Any clue? Regards, Martin ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14515&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]