[Varnish] #403: Crash on VCL syntax error with Varnish 2.0.2

Varnish varnish-bugs at projects.linpro.no
Fri Dec 5 12:32:26 CET 2008


#403: Crash on VCL syntax error with Varnish 2.0.2
-------------------+--------------------------------------------------------
 Reporter:  olau   |        Type:  defect
   Status:  new    |    Priority:  normal
Milestone:         |   Component:  build 
  Version:  trunk  |    Severity:  normal
 Keywords:         |  
-------------------+--------------------------------------------------------
 I just had a crash when I used ~= instead of the correct ~. When I changed
 ~= to ~, everything was fine. It crashes both with on vcl.load in the
 management interface and when giving the VCL file on the command line.
 Here's the complete (faulty) VCL:

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

 backend imageserver {
   .host = "127.0.0.1";
   .port = "8001";
 }

 sub vcl_recv {
   if (req.http.host == "media.yayart.com" || req.url ~= "^/media/") {
     set req.backend = imageserver;
     pass;
   }

   if (req.request == "GET" && req.http.Cookie) {
     lookup;
   }
 }
 }}}

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/403>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list