varnish/libvmod-cookie

Panic message: Assert error in vmod_set(), vmod_cookie.c line 102

Closed this issue · 1 comments

Hello,

I just installed the cookie module with varnishd (varnish-3.0.4 revision 9f83e8f)

and when I do a simple:

sub vcl_recv {
cookie.parse(req.http.cookie);
}

This is what I get in the syslog:

Jul 19 10:59:40 ip-10-78-165-232 varnishd[27477]: Child (27478) died signal=6
Jul 19 10:59:40 ip-10-78-165-232 varnishd[27477]: Child (27478) Panic message: Assert error in vmod_set(), vmod_cookie.c line 102:#12 Condition((newcookie) != 0) not true.#012thread = (cache-worker)#012ident = Linux,3.2.36-1.46.amzn1.x86_64,x86_64,-smalloc,-smalloc,-hcritbit,epoll#012Backtrace:#12 0x430105: LCK_Init+605#012 0x7f4e978eb1eb: _end+7f4e9726c413#012 0x7f4e978eb33d: end+7f4e9726c565#012 0x7f4e97cf33fe: end+7f4e97674626#012 0x436eb8: VCL_recv_method+48#012 0x418b93: CNT_Session+12c3#012 0x421136: ESI_Deliver+7e6#012 0x4332a8: RES_WriteObj+448#012 0x417e0f: CNT_Session+53f#012 0x431e79: WRK_SumStat+4c9#012sp = 0x7f4e95f03008 {#12 fd = 12, id = 12, xid = 338123342,#12 client = 71.167.44.36 51223,#12 step = STP_RECV,#12 handling = deliver,#12 err_code = 200, err_reason = (null),#12 restarts = 0, esi_level = 1#012 flags = #12 bodystatus = 4#012 ws = 0x7f4e95f03080 { overflow#012 id = "sess",#12 {s,f,r,e} = {0x7f4e95f03c78,+63528,(nil),+65536},#12 },#12 http[req] = {#12 ws = 0x7f4e95f03080[sess]#12 "GET",#12 "/esi/userHeader/uid/70",#12 "HTTP/1.1",#12 "Host: martin.pmdev.com:8080",#12 "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1",#12 "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8",#12 "Cache-Control: max-age=0",#12 "Accept-Language: en-us",#12 "Accept-Encoding: gzip, deflate",#12 "Cookie: __utma=240293023.167576495.1359645742.1374185780.1374249515.863; __utmb=240293023.1.10.1374249515; __utmc=240293023; __utmv=240293023.|1=Logged_in=0=1; mp_d90a3411d419ff076767c71b76986bab_mixpanel=%7B%22distinct_id%22%3A%2070%2C%22

Looks like a classic workspace overrun.

Please increase sess_workspace (default 64K, increase to 96K/128K) and see if the problem persists.

I'm closing this for now, please reopen if you are still seeing the problem.