Welcome! Log In Create A New Profile

Advanced

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin
February 16, 2010 06:56AM
Hello!

On Wed, Feb 10, 2010 at 09:42:47PM +0300, Vladimir Sopot wrote:

>
> On Feb 10, 2010, at 3:49 PM, Maxim Dounin wrote:
>
> >>> Ok, кажется я понял проблему. Судя по всему memcached_pass не
> >>> дожидается полного прилёта trailer'а ("END") и ругается. А в
> >>> случае keepalive остатки trailer'а долетают в ответ на следующий
> >>> запрос.
> >>>
> >>> По идее строка "invalid trailer" должна наблюдаться и без
> >>> keepalive (но скорее всего реже), а "invalid response" - только
> >>> если keepalive включён.
> >>
> >> 50 минут - полет нормальный,
> >>
> >> # grep -c 'subrequests cycle while processing' error.log
> >> 22076
> >> # grep memcached error.log
> >> #
> >
> > Видимо "реже" в данном случае вырождается в "почти никогда".
>
> Однако, все же "почти" никогда:
>
> # sed -n "1 p" error.log
> 2010/02/10 16:08:53 [error] 14875#0: *282680 directory index of "/wwwroot/" is forbidden
> # grep memcached error.log
> 2010/02/10 19:13:00 [error] 7643#0: *9676423 memcached sent invalid trailer while sending to client
> 2010/02/10 19:40:46 [error] 7638#0: *11190967 memcached sent invalid trailer while sending to client
> 2010/02/10 19:44:17 [error] 7641#0: *11386082 memcached sent invalid trailer while sending to client
> 2010/02/10 19:50:40 [error] 7646#0: *11737608 memcached sent invalid trailer while sending to client
> 2010/02/10 20:31:27 [error] 14006#0: *13901259 memcached sent invalid trailer while sending to client
> 2010/02/10 21:28:42 [error] 20249#0: *16943253 memcached sent invalid trailer while sending to client

Патч.

Maxim Dounin
# HG changeset patch
# User Maxim Dounin <mdounin@mdounin.ru>
# Date 1266320928 -10800
# Node ID 9009f1982e02d6f0614d4ddeae0672042442775a
# Parent 09972a4975970f7c3510177b8a287283d3a53c58
Memcached: correctly handle trailer split into several packets.

With old code message "[error] ... memcached sent invalid trailer" may appear
in logs for no reason. It doesn't cause any harm except message itself
with official nginx though may cause spurious errors on connection reuse with
upstream keepalive module.

diff --git a/src/http/modules/ngx_http_memcached_module.c b/src/http/modules/ngx_http_memcached_module.c
--- a/src/http/modules/ngx_http_memcached_module.c
+++ b/src/http/modules/ngx_http_memcached_module.c
@@ -432,15 +432,20 @@ ngx_http_memcached_filter(void *data, ss

if (ngx_strncmp(b->last,
ngx_http_memcached_end + NGX_HTTP_MEMCACHED_END - ctx->rest,
- ctx->rest)
+ bytes)
!= 0)
{
ngx_log_error(NGX_LOG_ERR, ctx->request->connection->log, 0,
"memcached sent invalid trailer");
+
+ u->length = 0;
+ ctx->rest = 0;
+
+ return NGX_OK;
}

- u->length = 0;
- ctx->rest = 0;
+ u->length -= bytes;
+ ctx->rest -= bytes;

return NGX_OK;
}
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

worker process exited on signal 11 (core dumped)

Vladimir Sopot February 08, 2010 11:30AM

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin February 08, 2010 12:04PM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 08, 2010 01:18PM

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin February 08, 2010 03:38PM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 09, 2010 09:30AM

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin February 09, 2010 09:46PM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 10, 2010 04:48AM

Re: worker process exited on signal 11 (core dumped)

Andrey N. Oktyabrski February 10, 2010 05:02AM

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin February 10, 2010 05:28AM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 10, 2010 06:08AM

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin February 10, 2010 06:38AM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 10, 2010 06:54AM

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin February 10, 2010 07:50AM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 10, 2010 08:00AM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 10, 2010 01:44PM

Re: worker process exited on signal 11 (core dumped)

Maxim Dounin February 16, 2010 06:56AM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 16, 2010 07:26AM

Re: worker process exited on signal 11 (core dumped)

Vladimir Sopot February 10, 2010 06:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready