varnishcache/varnish-cache

Assert error in vwe_thread(), waiter/cache_waiter_epoll.c line 142: Condition((vwe->nwaited) != 0) not true.

Closed this issue · 3 comments

Originally reported here: https://gitlab.com/uplex/varnish/slash/-/issues/78 by @tomazz75

(original message edited)

Panic at: Thu, 26 Sep 2024 23:07:17 GMT
Assert error in vwe_thread(), waiter/cache_waiter_epoll.c line 142:
  Condition((vwe->nwaited) != 0) not true.
version = varnish-7.6.0 revision ed1243ca162a7b1d975bc0332f0d66d33f0bc78e, vrt api = 20.0
ident = Linux,6.8.0-45-generic,x86_64,-jlinux,-sfellow,-sdefault,-Elibvmod_slash.so,-hcritbit,epoll
now = 313936.517137 (mono), 1727391989.559449 (real)
Backtrace:
  0x5d78a8314fb4: /usr/sbin/varnishd(VBT_format+0x74) [0x5d78a8314fb4]
  0x5d78a829062d: /usr/sbin/varnishd(+0x6062d) [0x5d78a829062d]
  0x5d78a831454c: /usr/sbin/varnishd(VAS_Fail+0x4c) [0x5d78a831454c]
  0x5d78a82f1529: /usr/sbin/varnishd(+0xc1529) [0x5d78a82f1529]
  0x79b1cae9ca94: /lib/x86_64-linux-gnu/libc.so.6(+0x9ca94) [0x79b1cae9ca94]
  0x79b1caf29c3c: /lib/x86_64-linux-gnu/libc.so.6(+0x129c3c) [0x79b1caf29c3c]
errno = 104 (Connection reset by peer)

This assertion was added with 33d8a53 - and I think with good reasons, because we really should not underflow. Will look...

I believe this is fixed, as always, please reopen if you still see it.

Since this is quite bad, any update that will contain this fix anytime soon ? :)

Hello,
Under production loads we saw a similar error but referencing line 108

Assert error in vwe_thread(), waiter/cache_waiter_epoll.c line 108:
  Condition((vwe->nwaited) != 0) not true.
version = varnish-7.6.0 revision ed1243ca162a7b1d975bc0332f0d66d33f0bc78e, vrt api = 20.0
ident = Linux,6.8.0-47-generic,x86_64,-jlinux,-smalloc,-sdefault,-hcritbit,epoll
now = 9269.140145 (mono), 1730299631.113412 (real)
Backtrace:
  0x5db85ab6dfb4: /usr/sbin/varnishd(VBT_format+0x74) [0x5db85ab6dfb4]
  0x5db85aae962d: /usr/sbin/varnishd(+0x6062d) [0x5db85aae962d]
  0x5db85ab6d54c: /usr/sbin/varnishd(VAS_Fail+0x4c) [0x5db85ab6d54c]
  0x5db85ab4a69c: /usr/sbin/varnishd(+0xc169c) [0x5db85ab4a69c]
  0x75323929ca94: /lib/x86_64-linux-gnu/libc.so.6(+0x9ca94) [0x75323929ca94]
  0x753239329c3c: /lib/x86_64-linux-gnu/libc.so.6(+0x129c3c) [0x753239329c3c]
errno = 104 (Connection reset by peer)