[Varnish] #878: Varnish child dies with segfault when loading a VCL importing std vmod
Varnish
varnish-bugs at varnish-cache.org
Fri Mar 18 12:38:58 CET 2011
#878: Varnish child dies with segfault when loading a VCL importing std vmod
-------------------------------+--------------------------------------------
Reporter: tmagnien | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: trunk | Severity: normal
Keywords: std vmod segfault |
-------------------------------+--------------------------------------------
Hi.
With a fresh compilation of trunk, if I take the default VCL file and just
add "import std;" statement, a vcl.load of that VCL file causes the
varnish child to segfault. The segfault does not occur when starting
varnish but only if I do an explicit vcl.load of the file through CLI.
From my investigations, it seems that the segfault occurs in the VGC_Init
function, at the time Vmod_Func_std._init(&vmod_priv_std, &VCL_conf) is
called.
I can provide strace or gdb backtrace, if needed, but this is easy to
reproduce.
When investigating, I found that the init function of a vmod is called
when the VCL is loaded. I think it should be called only when the VCL is
"used", not when it's "loaded".
Regards,
Thierry
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/878>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list