ID: 14433 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Apache2 related Operating System: Linux 2.4.16 PHP Version: 4.1.0 New Comment:
I wasn't aware of it being released as 'stable' today.. Reopen if you get this _same_ crash with the Apache 2.0.35. Previous Comments: ------------------------------------------------------------------------ [2002-04-06 19:12:40] [EMAIL PROTECTED] Funny that a reply to my very old bug report would be posted just one hour after an annoucement from the Apache team that version 2 is no longer beta :) I will see if I can reproduce with Apache 2.0.35 ------------------------------------------------------------------------ [2002-04-06 11:06:35] [EMAIL PROTECTED] You need latest CVS versions of both PHP and Apache2. As you well know, apache2 is still beta and a moving target. ------------------------------------------------------------------------ [2001-12-12 13:42:11] [EMAIL PROTECTED] ok, it seems that it occurs when it outputs some text. Perhaps only when it's stressed with multiple connections at the same time. Just pressing reload in my browser, waiting for the page to load and press reload again would not give me a segfault (this does not mean that it couldn't have happened though), but pressing reload multiple times after another would eventually cause it to segfault. Here's the test program (very simple): ---------------------------- <html> <body> <?php echo "SEGFAULT !"; ?> </body> </html> ---------------------------- That's all... And here's the output from gdb when running this program and getting a segfault: 0x4025a96a in php_apache_sapi_ub_write (str=0x824c054 "SEGFAULT !", str_length=10, tsrm_ls=0x8217070) at sapi_apache2.c:58 58 bb = apr_brigade_create(ctx->f->r->pool); (gdb) bt #0 0x4025a96a in php_apache_sapi_ub_write (str=0x824c054 "SEGFAULT !", str_length=10, tsrm_ls=0x8217070) at sapi_apache2.c:58 #1 0x402663af in php_ub_body_write_no_header (str=0x824c054 "SEGFAULT !", str_length=10, tsrm_ls=0x8217070) at output.c:450 #2 0x4026582a in php_body_write (str=0x824c054 "SEGFAULT !", str_length=10, tsrm_ls=0x8217070) at output.c:100 #3 0x4025d136 in php_body_write_wrapper (str=0x824c054 "SEGFAULT !", str_length=10) at main.c:757 #4 0x4024e050 in zend_print_zval_ex (write_func=0x4025d104 <php_body_write_wrapper>, expr=0x82819f8, indent=0) at zend.c:187 #5 0x4024dff1 in zend_print_zval (expr=0x82819f8, indent=0) at zend.c:168 #6 0x4024dc88 in zend_print_variable (var=0x82819f8) at zend_variables.c:172 #7 0x4023be47 in execute (op_array=0x827194c, tsrm_ls=0x8217070) at ./zend_execute.c:1223 #8 0x4024f7ea in zend_execute_scripts (type=8, tsrm_ls=0x8217070, retval=0x0, file_count=3) at zend.c:814 #9 0x4025e821 in php_execute_script (primary_file=0xbfffd648, tsrm_ls=0x8217070) at main.c:1309 #10 0x4025b201 in php_output_filter (f=0x82532ec, bb=0x825346c) at sapi_apache2.c:361 #11 0x0811e065 in ap_pass_brigade (next=0x82532ec, bb=0x825346c) at util_filter.c:276 #12 0x081245c8 in default_handler (r=0x825069c) at core.c:2785 #13 0x0811300b in ap_run_handler (r=0x825069c) at config.c:185 #14 0x081135b6 in ap_invoke_handler (r=0x825069c) at config.c:344 #15 0x08102109 in ap_process_request (r=0x825069c) at http_request.c:286 #16 0x080fe2c5 in ap_process_http_connection (c=0x81ce484) at http_core.c:289 #17 0x0811c81b in ap_run_process_connection (c=0x81ce484) at connection.c:82 #18 0x0811c9d9 in ap_process_connection (c=0x81ce484) at connection.c:219 #19 0x08111bec in child_main (child_num_arg=0) at prefork.c:803 #20 0x08111c9e in make_child (s=0x8170b2c, slot=0) at prefork.c:839 #21 0x08111db6 in startup_children (number_to_start=10) at prefork.c:913 #22 0x081121a5 in ap_mpm_run (_pconf=0x816f52c, plog=0x81a36cc, s=0x8170b2c) at prefork.c:1129 #23 0x0811774d in main (argc=4, argv=0xbffff9d4) at main.c:432 #24 0x400fd65f in __libc_start_main () from /lib/libc.so.6 This was made with the latest CVS snapshot... ------------------------------------------------------------------------ [2001-12-12 11:19:00] [EMAIL PROTECTED] I am in the progress of trying to figure out if anything in particular will cause this problem. When/if I do, I will post a short test program. I have not tried with the latest CVS version, but I will do that when I find a small test program to reproduce the problem. ------------------------------------------------------------------------ [2001-12-12 11:13:17] [EMAIL PROTECTED] Does this happen with latest CVS snapshot from http://snaps.php.net/ ? And do you have some short example script to include here which can be used to reproduce this problem? ------------------------------------------------------------------------ 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/14433 -- Edit this bug report at http://bugs.php.net/?id=14433&edit=1
