[Varnish] #1811: Varnish crashes when a PRIV_TASK/PRIV_TOP function is invoked from vcl_init

Varnish varnish-bugs at varnish-cache.org
Wed Oct 28 11:14:05 CET 2015


#1811: Varnish crashes when a PRIV_TASK/PRIV_TOP function is invoked from vcl_init
----------------------+-------------------
 Reporter:  daghf     |      Owner:
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  varnishd  |    Version:  trunk
 Severity:  normal    |   Keywords:
----------------------+-------------------
 ``
 varnishd[17072]: Child (17074) Panic message:#012Assert error in
 VRT_priv_task(), cache/cache_vrt_priv.c line 119:#12 Condition((ctx->bo)
 != NULL) not true.
 ``

 what happens is that VRT_priv_dynamic stores its list of privs in one of
 ctx->req->sp->privs or ctx->bo->privs, neither of which are available from
 vcl_init.

 I'm not sure if the solution is to teach the VCL compiler to disallow the
 invocation of PRIV_{TASK,TOP} in vcl_init, or if we can find a better way
 to handle this?

 (Discovered by github user hirschnase, see https://github.com/varnish
 /libvmod-curl/issues/30)

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1811>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list