Skip to content

sml_ai_lease_boc(): Condition(hdl->returned == 0 || hdl->avail == hdl->returned) not true. #4371

@desdic

Description

@desdic

Expected Behavior

not coredumping

Current Behavior

checked out latest version (trunk) and test upgraded one of our servers and shortly after it just coredumps

after about 10s varnish coredumps with

Child (42870) Panic at: Wed, 30 Jul 2025 06:28:36 GMT
Assert error in sml_ai_lease_boc(), storage/storage_simple.c line 492:
  Condition(hdl->returned == 0 || hdl->avail == hdl->returned) not true.
version = varnish-trunk revision 51a117587524cbdd59e43567e6cbd5a76e6a39ff, vrt api = 21.0
ident = Linux,6.8.0-60-generic,x86_64,-jlinux,-smalloc,-sdefault,-hcritbit,epoll
now = 651.995808 (mono), 1753856868.779870 (real)
Backtrace:
  ip=0x60c6eb006ae5 sp=0x755d84138fb0 <VBT_format+0x65>
  ip=0x60c6eaf7c4fd sp=0x755d841390d0 <pan_ic+0x24d>
  ip=0x60c6eb005d69 sp=0x755d84139230 <VAS_Fail+0x19>
  ip=0x60c6eafddf89 sp=0x755d84139240 <sml_ai_lease_boc+0x5c9>
  ip=0x60c6eafdf8cf sp=0x755d841392a0 <sml_iterator+0x13f>
  ip=0x60c6eaf59847 sp=0x755d841395c0 <VDP_DeliverObj+0x77>
  ip=0x60c6eafb1cf7 sp=0x755d841395d0 <V1D_Deliver+0x3a7>
  ip=0x60c6eaf81c2b sp=0x755d841396d0 <cnt_transmit+0x21b>
  ip=0x60c6eaf85918 sp=0x755d84139720 <CNT_Request+0xf8>
  ip=0x60c6eafb409a sp=0x755d84139800 <http1_req+0x6ba>
  ip=0x60c6eafa8202 sp=0x755d84139880 <WRK_Thread+0x3c2>
  ip=0x60c6eafa87ec sp=0x755d8413a420 <pool_thread+0x3c>
  ip=0x755e5dc9caa4 sp=0x755d8413a450 <pthread_condattr_setpshared+0x684>
  ip=0x755e5dd29c3c sp=0x755d8413a500 <__clone+0x24c>

Possible Solution

No response

Steps to Reproduce (for bugs)

No response

Context

once crashed it keeps crashing so it doesn't work. Strace shows events but no response to client

strace: Process 3505700 attached
restart_syscall(<... resuming interrupted read ...>) = 0
poll([{fd=-1}, {fd=-1}, {fd=11, events=POLLIN}, {fd=-1}, {fd=10, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=14, events=POLLIN}], 8, 874) = 0 (Timeout)
write(13, "ping\n", 5)                  = 5
poll([{fd=13, events=POLLIN}], 1, 60000) = 1 ([{fd=13, revents=POLLIN}])
read(13, "200 19      \n", 13)          = 13
poll([{fd=13, events=POLLIN}], 1, 60000) = 1 ([{fd=13, revents=POLLIN}])
read(13, "PONG 1753795692 1.0\n", 20)   = 20
poll([{fd=-1}, {fd=-1}, {fd=11, events=POLLIN}, {fd=-1}, {fd=10, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=14, events=POLLIN}], 8, 111) = 0 (Timeout)
poll([{fd=-1}, {fd=-1}, {fd=11, events=POLLIN}, {fd=-1}, {fd=10, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=14, events=POLLIN}], 8, 1) = 0 (Timeout)
poll([{fd=-1}, {fd=-1}, {fd=11, events=POLLIN}, {fd=-1}, {fd=10, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=14, events=POLLIN}], 8, 999) = 0 (Timeout)
poll([{fd=-1}, {fd=-1}, {fd=11, events=POLLIN}, {fd=-1}, {fd=10, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=14, events=POLLIN}], 8, 1) = 0 (Timeout)
poll([{fd=-1}, {fd=-1}, {fd=11, events=POLLIN}, {fd=-1}, {fd=10, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=14, events=POLLIN}], 8, 999) = 0 (Timeout)
poll([{fd=-1}, {fd=-1}, {fd=11, events=POLLIN}, {fd=-1}, {fd=10, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=14, events=POLLIN}], 8, 803) = 0 (Timeout)

Varnish Cache version

varnishd (varnish-trunk revision 51a1175)

Operating system

Ubuntu24.04

Source of binary packages used (if any)

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions