core on debug points
Igor Sysoev
is at rambler-co.ru
Wed Mar 21 16:26:12 MSK 2007
On Thu, Mar 08, 2007 at 02:08:21AM +0300, proforg wrote:
> Игорь, nginx падает в кору уже по 20-30 раз в день
> Просто обострение какое то :)
> Диагностика всё та же:
>
> Program terminated with signal 6, Aborted.
> #0 0x00002b36d27f707b in raise () from /lib/libc.so.6
> (gdb) bt
> #0 0x00002b36d27f707b in raise () from /lib/libc.so.6
> #1 0x00002b36d27f884e in abort () from /lib/libc.so.6
> #2 0x0000000000415a77 in ngx_debug_point () at src/os/unix/
> ngx_process.c:533
> #3 0x00000000004061ee in ngx_output_chain (ctx=0xa55f38, in=0x0) at
> src/core/ngx_output_chain.c:97
> #4 0x000000000042f72f in ngx_http_upstream_send_request (r=0xa4c1e8,
> u=0xa55ed0) at src/http/ngx_http_upstream.c:808
Прилагаемый патч должен помочь.
--
Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
Index: src/http/modules/ngx_http_fastcgi_module.c
===================================================================
--- src/http/modules/ngx_http_fastcgi_module.c (revision 461)
+++ src/http/modules/ngx_http_fastcgi_module.c (working copy)
@@ -723,7 +723,7 @@
b->file_pos = file_pos;
file_pos += 32 * 1024;
- if (file_pos > body->buf->file_last) {
+ if (file_pos >= body->buf->file_last) {
file_pos = body->buf->file_last;
next = 1;
}
@@ -735,7 +735,7 @@
b->pos = pos;
pos += 32 * 1024;
- if (pos > body->buf->last) {
+ if (pos >= body->buf->last) {
pos = body->buf->last;
next = 1;
}
More information about the nginx-ru
mailing list