Page MenuHomePhabricator

Varnish Assert error in VGZ_Ibuf()
Closed, ResolvedPublic

Description

Found this while investigating memory leaks (T122455):

Dec 20 20:48:42 cp3047 vhtcpd[57924]: TCP connect() failed: Connection refused
Dec 20 20:48:42 cp3047 frontend[88946]: Child (88956) died signal=11
Dec 20 20:48:42 cp3047 frontend[88946]: Child (88956) Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c line 221:#012  Condition((vg->vz.avail_in) == 0) not true.#012thread = (cache-worker)#012ident = Linux,3.19.0-1-amd64,x86_64,-smalloc,-smalloc,-hcritbit,epoll#012Backtrace:#012  0x433924: /usr/sbin/varnishd() [0x433924]#012  0x428aa9: /usr/sbin/varnishd(VGZ_Ibuf+0x79) [0x428aa9]#012  0x429e2d: /usr/sbin/varnishd() [0x429e2d]#012  0x427d4b: /usr/sbin/varnishd(FetchBody+0x46b) [0x427d4b]#012  0x4191ed: /usr/sbin/varnishd() [0x4191ed]#012  0x41a42d: /usr/sbin/varnishd(CNT_Session+0x9dd) [0x41a42d]#012  0x4356f0: /usr/sbin/varnishd() [0x4356f0]#012  0x7f63fb63d0a4: /lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4) [0x7f63fb63d0a4]#012  0x7f63fb37204d: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f63fb37204d]#012sp = 0x7f5018b91008 {#012  fd = 0, id = 0, xid = 0,#012  client = ?.?.?.? ?,#012  step = STP_WAIT,#012  handling = deliver,#012  restarts = 0, esi_level = 0#012  flags =
Dec 20 20:48:42 cp3047 frontend[88946]: Child cleanup complete
Dec 20 20:48:42 cp3047 frontend[88946]: child (40862) Started

The cleaned-up backtrace is:

Dec 20 20:48:42 cp3047 frontend[88946]: Child (88956) Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c line 221:
  Condition((vg->vz.avail_in) == 0) not true.
thread = (cache-worker)
ident = Linux,3.19.0-1-amd64,x86_64,-smalloc,-smalloc,-hcritbit,epoll
Backtrace:
  0x433924: /usr/sbin/varnishd() [0x433924]
  0x428aa9: /usr/sbin/varnishd(VGZ_Ibuf+0x79) [0x428aa9]
  0x429e2d: /usr/sbin/varnishd() [0x429e2d]
  0x427d4b: /usr/sbin/varnishd(FetchBody+0x46b) [0x427d4b]
  0x4191ed: /usr/sbin/varnishd() [0x4191ed]
  0x41a42d: /usr/sbin/varnishd(CNT_Session+0x9dd) [0x41a42d]
  0x4356f0: /usr/sbin/varnishd() [0x4356f0]
  0x7f63fb63d0a4: /lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4) [0x7f63fb63d0a4]
  0x7f63fb37204d: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f63fb37204d]
sp = 0x7f5018b91008 {
  fd = 0, id = 0, xid = 0,
  client = ?.?.?.? ?,
  step = STP_WAIT,
  handling = deliver,
  restarts = 0, esi_level = 0
  flags =

Related Objects

Event Timeline

faidon raised the priority of this task from to Medium.
faidon updated the task description. (Show Details)
faidon added projects: SRE, Traffic.
faidon subscribed.
BBlack claimed this task.
BBlack subscribed.

It hasn't been a huge issue over the past several months, and everything about this will change with Varnish4 which is in the process of being deployed.