srcache Crash

Shaun savage savages at savages.com
Sun Sep 25 01:37:03 UTC 2011


I know now that the configuration is wrong, but it still crashed.  I am
just starting to learn about nginx.

but if I try just
        content_by_lua_file /var/www/nginx/hello.lua;

I get no body


just FYI

    location = /memc {
        internal;
        memc_connect_timeout 100ms;
        memc_send_timeout 100ms;
        memc_read_timeout 100ms;
        set $memc_key $query_string;
        set $memc_exptime    300;
        memc_pass sr_memcached;
    }

    location ~ ^/foo {
        charset utf-8;
        default_type text/plain;
        set $key $http_x_auth_token;
        srcache_fetch    GET    /memc    $key;
        srcache_store PUT /memc $key;

        content_by_lua_file "ngx.print(/var/www/nginx/hello.lua)";
    }

Program received signal SIGSEGV, Segmentation fault.
0x00000000005008b0 in ngx_http_srcache_add_copy_chain (pool=0x77c630,
    chain=0x77d2b0, in=0x773fe0)
    at
modules/agentzh-srcache-nginx-module-06b7ab4/src/ngx_http_srcache_util.c:257
257                    cl->buf->last = ngx_copy(cl->buf->pos,
in->buf->pos, len);
(gdb)





More information about the nginx-devel mailing list