[Varnish] #1322: varnishd master segfault when parsing <=varnish-3 director vcl

Varnish varnish-bugs at varnish-cache.org
Fri Jun 28 16:15:38 CEST 2013


#1322: varnishd master segfault when parsing <=varnish-3 director vcl
---------------------------+----------------------
 Reporter:  jw             |       Type:  defect
   Status:  new            |   Priority:  normal
Milestone:                 |  Component:  varnishd
  Version:  trunk          |   Severity:  normal
 Keywords:  vcl, director  |
---------------------------+----------------------
 varnish master fails to parse an old style vcl if it contains any director
 (doesn't really matter which or how it is configured).

 {{{
 $ ./sbin/varnishd -d -f ./etc/varnish/default.vcl -C
 Message from VCC-compiler:
 Not running as root, no priv-sep
 Running VCC-compiler failed, signal 11, core dumped

 $ ./sbin/varnishd -V
 varnishd (varnish-trunk revision 51ea9e6)
 Copyright (c) 2006 Verdens Gang AS
 Copyright (c) 2006-2011 Varnish Software AS
 }}}

 {{{
 backend default {
      .host = "127.0.0.1";
      .port = "80";
 }

 director b2 random {
         .retries = 5;
         {
                 .backend  = {
                 .host = "192.168.100.11";
                 .port = "8000";
                 }
         .weight         = 3;
         }
 }

 sub vcl_recv {
         set req.backend = b2;
 }
 }}}

 {{{
 #0  vcc_iline (tail=0, ll=<synthetic pointer>, t=0x0) at vcc_token.c:71
 #1  vcc_ErrWhere (tl=0xa45f50, t=0x0) at vcc_token.c:238
 #2  0x00007f3eb59b97a7 in vcc_Parse (tl=tl at entry=0xa45f50) at
 vcc_parse.c:326
 #3  0x00007f3eb59b4b76 in vcc_CompileSource (sp=<optimized out>,
 sb=0xa45f50, tl0=<optimized out>)
     at vcc_compile.c:666
 #4  VCC_Compile (tl=<optimized out>, sb=sb at entry=0xa45220, b=<optimized
 out>) at vcc_compile.c:742
 #5  0x000000000044d5df in run_vcc (priv=0x7fffb7a99dc0) at
 mgt/mgt_vcc.c:148
 #6  0x00007f3eb5fd8b7c in VSUB_run (sb=sb at entry=0xa451e0,
 func=func at entry=0x44d500 <run_vcc>,
     priv=priv at entry=0x7fffb7a99dc0, name=name at entry=0x46f054 "VCC-
 compiler", maxlines=maxlines at entry=-1)
     at vsub.c:103
 #7  0x000000000044d882 in mgt_run_cc (C_flag=<optimized out>, sb=0xa451e0,
     vcl=0xa45340 "backend default {\n     .host = \"127.0.0.1\";\n
 .port = \"80\";\n}\n\ndirector b2 random {\n\t.retries =
 5;\n\t{\n\t\t.backend  = {\n\t\t.host = \"192.168.100.11\";\n
 \t\t.port = \"8000\";\n\t\t}\n\t.weight         = 3;\n\t}"...) at
 mgt/mgt_vcc.c:256
 #8  mgt_VccCompile (sb=0x7fffb7a99e18,
     b=0xa45340 "backend default {\n     .host = \"127.0.0.1\";\n     .port
 = \"80\";\n}\n\ndirector b2 random {\n\t.retries = 5;\n\t{\n\t\t.backend
 = {\n\t\t.host = \"192.168.100.11\";\n     \t\t.port =
 \"8000\";\n\t\t}\n\t.weight         = 3;\n\t}"..., C_flag=1) at
 mgt/mgt_vcc.c:324
 #9  0x000000000044df06 in mgt_vcc_default (b_arg=b_arg at entry=0x0,
     f_arg=f_arg at entry=0x7fffb7a9cb25 "./etc/varnish/default.vcl",
     vcl=vcl at entry=0xa45340 "backend default {\n     .host =
 \"127.0.0.1\";\n     .port = \"80\";\n}\n\ndirector b2 random
 {\n\t.retries = 5;\n\t{\n\t\t.backend  = {\n\t\t.host =
 \"192.168.100.11\";\n     \t\t.port = \"8000\";\n\t\t}\n\t.weight
 = 3;\n\t}"..., C_flag=C_flag at entry=1) at mgt/mgt_vcc.c:413
 #10 0x000000000040dde4 in main (argc=<optimized out>, argv=<optimized
 out>) at mgt/mgt_main.c:605
 }}}

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




More information about the varnish-bugs mailing list