gzip crash

Ask Bjørn Hansen ask at develooper.com
Thu Nov 10 09:47:31 CET 2011


I noticed today that our varnish servers a few times have crashed with an error like the ones below.  We're running 3.0.2 on CentOS/Linux x86_64.  Most of the startup variables are the defaults from the rpm.

Our .vcl distributes requests to various backends depending on host header and request URL and sets beresp.do_gzip for content-type ~ text/.* requests.

The load is really low (~30-100 requests a second per box).


  - ask


Nov  9 23:21:16 varnish3 varnishd[31763]: Child (31764) Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c line 222:   Condition((vg->vz.avail_in) == 0) not true. errno = 12 (Cannot allocate memory) thread = (cache-worker) ident = Linux,2.6.18-274.7.1.el5,x86_64,-sfile,-smalloc,-hcritbit,epoll Backtrace:   0x42c7a6: /usr/sbin/varnishd [0x42c7a6]   0x4227da: /usr/sbin/varnishd(VGZ_Ibuf+0x7a) [0x4227da]   0x422e19: /usr/sbin/varnishd [0x422e19]   0x4215fd: /usr/sbin/varnishd(FetchBody+0x3fd) [0x4215fd]   0x4153e8: /usr/sbin/varnishd [0x4153e8]   0x417ab6: /usr/sbin/varnishd(CNT_Session+0x9f6) [0x417ab6]   0x42efb8: /usr/sbin/varnishd [0x42efb8]   0x42e19b: /usr/sbin/varnishd [0x42e19b]   0x3b8420673d: /lib64/libpthread.so.0 [0x3b8420673d]   0x3b83ad44bd: /lib64/libc.so.6(clone+0x6d) [0x3b83ad44bd] sp = 0x2aaaecbc0008 {   fd = 18, id = 18, xid = 556098001,   client = 10.50.0.51 54247,   step = STP_FETCHBODY,   handling = deliver,   err_code = 200, err_reason = (null),   restarts = 0, esi_level = 0   flags =  


Nov  9 10:12:43 varnish2 varnishd[9043]: Child (9044) Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c line 222:   Condition((vg->vz.avail_in) == 0) not true. errno = 12 (Cannot allocate memory) thread = (cache-worker) ident = Linux,2.6.18-238.9.1.el5,x86_64,-sfile,-smalloc,-hcritbit,epoll Backtrace:   0x42c7a6: /usr/sbin/varnishd [0x42c7a6]   0x4227da: /usr/sbin/varnishd(VGZ_Ibuf+0x7a) [0x4227da]   0x422e19: /usr/sbin/varnishd [0x422e19]   0x4215fd: /usr/sbin/varnishd(FetchBody+0x3fd) [0x4215fd]   0x4153e8: /usr/sbin/varnishd [0x4153e8]   0x417ab6: /usr/sbin/varnishd(CNT_Session+0x9f6) [0x417ab6]   0x42efb8: /usr/sbin/varnishd [0x42efb8]   0x42e19b: /usr/sbin/varnishd [0x42e19b]   0x314880673d: /lib64/libpthread.so.0 [0x314880673d]   0x31480d44bd: /lib64/libc.so.6(clone+0x6d) [0x31480d44bd] sp = 0x2aaaece29008 {   fd = 18, id = 18, xid = 1952412410,   client = 10.50.0.77 58679,   step = STP_FETCHBODY,   handling = deliver,   err_code = 200, err_reason = (null),   restarts = 0, esi_level = 0   flags =  d

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4798 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20111110/3c7e286a/attachment-0003.bin>


More information about the varnish-dev mailing list