[Varnish] #1207: varnishd child segfaults when using dns director

Varnish varnish-bugs at varnish-cache.org
Fri Oct 12 11:52:27 CEST 2012


#1207: varnishd child segfaults when using dns director
--------------------------+--------------------
 Reporter:  econnell      |       Owner:
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:
Component:  varnishd      |     Version:  3.0.2
 Severity:  normal        |  Resolution:
 Keywords:  dns director  |
--------------------------+--------------------

Comment (by kristian):

 Hi,

 This is a bit of a semi-known bug, thanks for reporting it.

 You can work around it by putting the 'backend default' statement below
 the director. This is clearly a bug though.

 Varnishtest that works:
 {{{

 varnish v1 -vcl {

         director direc dns {
                 .list = {
                         .host_header = "www.myhost.com";
                         .port = "80";
                         "72.246.30.10/32";
                 }
                 .ttl = 5m;
         }
         backend defult {
                 .host = "127.0.0.7";
                 .port = "8081";
         }
         sub vcl_recv {
                 set req.backend = direc;
                 set req.backend = defult;
         }
 } -start
 }}}

 Varnishtest that breaks:
 {{{

 varnish v2 -vcl {

         backend defult {
                 .host = "127.0.0.7";
                 .port = "8081";
         }
         director direc dns {
                 .list = {
                         .host_header = "www.myhost.com";
                         .port = "80";
                         "72.246.30.10/32";
                 }
                 .ttl = 5m;
         }
         sub vcl_recv {
                 set req.backend = direc;
                 set req.backend = defult;
         }
 } -start
 }}}

 I'm pretty sure docwilco already tracked this down, it's some bad
 assumption about indexes.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1207#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list