You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sebastian Bergmann <sb...@sebastian-bergmann.de> on 2001/12/16 17:03:38 UTC

Apache2Filter crashes on Windows

  Setup: Windows 2000, Apache 2 (current CVS), PHP 4 (current CVS).

  After several requests Apache.exe crashes, when using the Apache2Filter
  SAPI module of PHP 4.

  I built both debug versions of Apache 2 and PHP 4, and the debugger
  shows the cause of the crash to be in server/util_filter.c:416:
  APR_BRIGADE_CONCAT(*saveto, *b);

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

Re: [PHP-DEV] Apache2Filter crashes on Windows

Posted by Sebastian Bergmann <sb...@sebastian-bergmann.de>.
Sebastian Bergmann wrote:
> ap_save_brigade(ap_filter_t * 0x00564f00, apr_bucket_brigade * *
> 0x10d95984, apr_bucket_brigade * * 0x10a6bdf8, apr_pool_t * 0x10cd4070)
> line 416 + 71 bytes
> php_output_filter(ap_filter_t * 0x00564f00, apr_bucket_brigade *
> 0x00565068) line 350 + 32 bytes
> ap_pass_brigade(ap_filter_t * 0x00564f00, apr_bucket_brigade * 0x00565068)
> line 388 + 16 bytes
> default_handler(request_rec * 0x10cd5bf0) line 2825
> ap_run_handler(request_rec * 0x10cd5bf0) line 186 + 78 bytes
> ap_invoke_handler(request_rec * 0x10cd5bf0) line 360 + 9 bytes
> ap_internal_redirect(const char * 0x10cd5bc8, request_rec * 0x10cd40a0)
> line 454 + 9 bytes
> handle_dir(request_rec * 0x10cd40a0) line 198
> ap_run_handler(request_rec * 0x10cd40a0) line 186 + 78 bytes
> ap_invoke_handler(request_rec * 0x10cd40a0) line 360 + 9 bytes
> ap_process_request(request_rec * 0x10cd40a0) line 292 + 9 bytes
> ap_process_http_connection(conn_rec * 0x00580e60) line 280 + 9 bytes
> ap_run_process_connection(conn_rec * 0x00580e60) line 84 + 78 bytes
> ap_process_connection(conn_rec * 0x00580e60) line 231
> worker_main(int 248) line 908
> _threadstartex(void * 0x005fc9c0) line 212 + 13 bytes

  Has anyone had a look at this? Is this a bug in httpd-2.0 or in PHP's
  Apache2Filter SAPI Module?

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

Re: [PHP-DEV] Apache2Filter crashes on Windows

Posted by Sebastian Bergmann <se...@php.net>.
Sebastian Bergmann wrote:
>   Setup: Windows 2000, Apache 2 (current CVS), PHP 4 (current CVS).
>
>   After several requests Apache.exe crashes, when using the 
>   Apache2Filter SAPI module of PHP 4.
>
>   I built both debug versions of Apache 2 and PHP 4, and the debugger
>   shows the cause of the crash to be in server/util_filter.c:416:
>   APR_BRIGADE_CONCAT(*saveto, *b);

  Here's a backtrace, thanks to Sander Striker for pointing me to ALT+7:

ap_save_brigade(ap_filter_t * 0x00564f00, apr_bucket_brigade * *
0x10d95984, apr_bucket_brigade * * 0x10a6bdf8, apr_pool_t * 0x10cd4070)
line 416 + 71 bytes
php_output_filter(ap_filter_t * 0x00564f00, apr_bucket_brigade *
0x00565068) line 350 + 32 bytes
ap_pass_brigade(ap_filter_t * 0x00564f00, apr_bucket_brigade * 0x00565068)
line 388 + 16 bytes
default_handler(request_rec * 0x10cd5bf0) line 2825
ap_run_handler(request_rec * 0x10cd5bf0) line 186 + 78 bytes
ap_invoke_handler(request_rec * 0x10cd5bf0) line 360 + 9 bytes
ap_internal_redirect(const char * 0x10cd5bc8, request_rec * 0x10cd40a0)
line 454 + 9 bytes
handle_dir(request_rec * 0x10cd40a0) line 198
ap_run_handler(request_rec * 0x10cd40a0) line 186 + 78 bytes
ap_invoke_handler(request_rec * 0x10cd40a0) line 360 + 9 bytes
ap_process_request(request_rec * 0x10cd40a0) line 292 + 9 bytes
ap_process_http_connection(conn_rec * 0x00580e60) line 280 + 9 bytes
ap_run_process_connection(conn_rec * 0x00580e60) line 84 + 78 bytes
ap_process_connection(conn_rec * 0x00580e60) line 231
worker_main(int 248) line 908
_threadstartex(void * 0x005fc9c0) line 212 + 13 bytes

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

Re: [PHP-DEV] Re: Apache2Filter crashes on Windows

Posted by Zeev Suraski <ze...@zend.com>.
View->Debug Windows->Call Stack

Just copy&paste it and send.

Zeev

At 12:09 17/12/2001, Sebastian Bergmann wrote:
>Daniel Stone wrote:
> > Please provide a full gdb backtrace of the problem; just the last call
> > on the stack won't help the developers much.
>
>   How do I generate a backtrace with MSVC? :-/
>
>--
>   Sebastian Bergmann
>   http://sebastian-bergmann.de/                 http://phpOpenTracker.de/
>
>   Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
>For additional commands, e-mail: php-dev-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net


RE: Apache2Filter crashes on Windows

Posted by Sander Striker <st...@apache.org>.
> From: Sebastian Bergmann [mailto:sb@sebastian-bergmann.de]
> Sent: 17 December 2001 11:10

> Daniel Stone wrote:
> > Please provide a full gdb backtrace of the problem; just the last call
> > on the stack won't help the developers much.
> 
>   How do I generate a backtrace with MSVC? :-/

Look at the call stack: Alt 7.

Sander


Re: Apache2Filter crashes on Windows

Posted by Sebastian Bergmann <sb...@sebastian-bergmann.de>.
Daniel Stone wrote:
> Please provide a full gdb backtrace of the problem; just the last call
> on the stack won't help the developers much.

  How do I generate a backtrace with MSVC? :-/

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

Re: Apache2Filter crashes on Windows

Posted by Daniel Stone <da...@sfarc.net>.
On Sun, Dec 16, 2001 at 05:03:38PM +0100, Sebastian Bergmann wrote:
>   Setup: Windows 2000, Apache 2 (current CVS), PHP 4 (current CVS).
> 
>   After several requests Apache.exe crashes, when using the Apache2Filter
>   SAPI module of PHP 4.
> 
>   I built both debug versions of Apache 2 and PHP 4, and the debugger
>   shows the cause of the crash to be in server/util_filter.c:416:
>   APR_BRIGADE_CONCAT(*saveto, *b);

Hi Sebastian,
Please provide a full gdb backtrace of the problem; just the last call
on the stack won't help the developers much.

Regards,
Daniel

(yes, I know my signature is stuffed ... fortune appears to be having
 problems).

-- 
Daniel Stone						    <da...@sfarc.net>
e> but frankly, I'd rather circumcize myself with a sausage
grinder then run RedHat