agentzh at gmail.com
Tue Sep 27 22:57:02 UTC 2011
On Tue, Sep 27, 2011 at 5:37 AM, Shaun savage <savages at mozapps.com> wrote:
> srcache crashed again. I am sorry that I can not debug it more, tell me
> where to look and I can do it.
> #1 0x00000000005039b9 in ngx_http_srcache_body_filter (r=0x836700,
> #2 0x000000000041a1be in ngx_output_chain (ctx=0x837978, in=0x837918)
> at src/core/ngx_output_chain.c:65
This segfault was caused by NULL pointer returned it failed to
allocate (that big) memory in ngx_srcache. It has been just fixed in
the devel branch of ngx_srcache:
> 2011/09/27 20:23:01 [debug] 28469#0: *3 memcached filter bytes:44
> size:44 length:6 rest:7
> 2011/09/27 20:23:01 [error] 28469#0: *3 memcached sent invalid trailer
> while reading response header from upstream, client: 127.0.0.1, server:
> localhost, request: "GET /foo HTTP/1.1", subrequest: "/memc", upstream:
> "memcached://127.0.0.1:11211", host: "localhost:9000"
This "memcached sent invalid trailer" error seems like an aleady-fixed
bug in old versions of ngx_memc (and ngx_memcached). Which version of
ngx_memc or ngx_memcached are you using? ngx_memc 0.07+ and
ngx_memcached bundled by nginx 0.8.35+ should not have this issue
fixed. If you're using an older version, please consider upgrading to
the latest one.
More information about the nginx-devel