Bug with VRT_GetHDR on vcl_fetch
Jean Praloran
jeanpralo at gmail.com
Mon Sep 5 22:05:49 CEST 2011
Hi there,
I'm currently using varnish 3.0.0 on debian Squeeze 64bits, installed from
the devbian varnish repository. I'm trying to follow the idea of this script
: https://www.varnish-cache.org/trac/wiki/VCLExampleExtendingCacheControl
I can't manage to make it work since varnish child crashes :
Sep 5 11:51:30 hb03-varnishtest01 varnishd[6396]: Child (6440) Panic
message: Assert error in http_GetHdr(), cache_http.c line 266:#012
Condition(l == strlen(hdr + 1)) not true.#012thread =
(cache-worker)#012ident =
Linux,2.6.32-5-amd64,x86_64,-smalloc,-smalloc,-hcritbit,epoll#012Backtrace:#012
0x42e678: /usr/sbin/varnishd() [0x42e678]#012 0x429db8:
/usr/sbin/varnishd(http_GetHdr+0x68) [0x429db8]#012 0x436cf7:
/usr/sbin/varnishd(VRT_GetHdr+0x67) [0x436cf7]#012 0x7f1a44aefb1e: ./
vcl.aubX1cQ8.so(+0x3b1e) [0x7f1a44aefb1e]#012 0x4352d6:
/usr/sbin/varnishd(VCL_fetch_method+0x46) [0x4352d6]#012 0x4169b4:
/usr/sbin/varnishd() [0x4169b4]#012 0x418fbd:
/usr/sbin/varnishd(CNT_Session+0x5fd) [0x418fbd]#012 0x430e28:
/usr/sbin/varnishd() [0x430e28]#012 0x42fff9: /usr/sbin/varnishd()
[0x42fff9]#012 0x7f1a4d4908ba: /lib/libpthread.so.0(+0x68ba)
[0x7f1a4d4908ba]#012sp = 0x7f1a46593008 {#012 fd = 10, id = 10, xid =
1669376956,#012 client = 192.168.1.179 53991,#012 step = STP_FETCH,#012
handling = deliver,#012 err_code = 200, err_reason = (null),#012 restarts
= 0, esi_level = 0#012 flags = #012 bodystatus = 4#012 ws =
0x7f1a46593080 { #012 id = "sess",#012 {s,f,r,e} =
{0x7f1a46593cc8,+952,(nil),+65536},#012 },#012 http[req] = {#012 ws =
0x7f1a46593080[sess]#012 "GET",#012 "/home/index.htm",#012
"HTTP/1.1",#012 "Host: touchpad.xxxx.com",#012 "User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.21) Gecko/20110830
Firefox/3.6.21",#012 "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",#012
"Accept-Language: en-us,en;q=0.5",#012 "Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7",#012 "Keep-Alive: 115",#012
"Connection: keep-alive",#012 "Cookie:
RDC_VISITOR_ID=45F47911-FBB0-4751-974E-2F604148814A; xtvrn=$308378$416383$;
__utma=7226029.1033579658.1311842517.1315235244.1315251639.39;
__utmz=7226029.1315251639.39.35.utmcsr=rueducommerce.fr|utmccn=(referral)|utmcmd=referral|utmcct=/home/index.htm;
ST=107716; ORDERID=55339
while using this C embedded :
ttl = VRT_GetHdr(sp, HDR_OBJ, "\016Varnish-Control:");
and this crash :
Sep 5 11:51:30 hb03-varnishtest01 varnishd[6396]: Child (6440) Panic
message: Assert error in http_GetHdr(), cache_http.c line 266:#012
Condition(l == strlen(hdr + 1)) not true.#012thread =
(cache-worker)#012ident =
Linux,2.6.32-5-amd64,x86_64,-smalloc,-smalloc,-hcritbit,epoll#012Backtrace:#012
0x42e678: /usr/sbin/varnishd() [0x42e678]#012 0x429db8:
/usr/sbin/varnishd(http_GetHdr+0x68) [0x429db8]#012 0x436cf7:
/usr/sbin/varnishd(VRT_GetHdr+0x67) [0x436cf7]#012 0x7f1a44aefb1e: ./
vcl.aubX1cQ8.so(+0x3b1e) [0x7f1a44aefb1e]#012 0x4352d6:
/usr/sbin/varnishd(VCL_fetch_method+0x46) [0x4352d6]#012 0x4169b4:
/usr/sbin/varnishd() [0x4169b4]#012 0x418fbd:
/usr/sbin/varnishd(CNT_Session+0x5fd) [0x418fbd]#012 0x430e28:
/usr/sbin/varnishd() [0x430e28]#012 0x42fff9: /usr/sbin/varnishd()
[0x42fff9]#012 0x7f1a4d4908ba: /lib/libpthread.so.0(+0x68ba)
[0x7f1a4d4908ba]#012sp = 0x7f1a46593008 {#012 fd = 10, id = 10, xid =
1669376956,#012 client = 192.168.1.179 53991,#012 step = STP_FETCH,#012
handling = deliver,#012 err_code = 200, err_reason = (null),#012 restarts
= 0, esi_level = 0#012 flags = #012 bodystatus = 4#012 ws =
0x7f1a46593080 { #012 id = "sess",#012 {s,f,r,e} =
{0x7f1a46593cc8,+952,(nil),+65536},#012 },#012 http[req] = {#012 ws =
0x7f1a46593080[sess]#012 "GET",#012 "/home/index.htm",#012
"HTTP/1.1",#012 "Host: touchpad.xxxx.com",#012 "User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.21) Gecko/20110830
Firefox/3.6.21",#012 "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",#012
"Accept-Language: en-us,en;q=0.5",#012 "Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7",#012 "Keep-Alive: 115",#012
"Connection: keep-alive",#012 "Cookie:
RDC_VISITOR_ID=45F47911-FBB0-4751-974E-2F604148814A; xtvrn=$308378$416383$;
__utma=7226029.1033579658.1311842517.1315235244.1315251639.39;
__utmz=7226029.1315251639.39.35.utmcsr=rueducommerce.fr|utmccn=(referral)|utmcmd=referral|utmcct=/home/index.htm;
ST=107716; ORDERID=55339
when using this C embedded :
ttl = VRT_GetHdr(sp, HDR_BERESP, "\016Varnish-Control:");
I've tried upgrading to 3.0.1 and I still have the same behaviour
Thanks for anybody who could help me !
--
Praloran Jean
--
Praloran Jean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-bugs/attachments/20110905/420be7fa/attachment.html>
More information about the varnish-bugs
mailing list