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

Varnish varnish-bugs at varnish-cache.org
Wed Oct 10 00:11:42 CEST 2012


#1207: varnishd child segfaults when using dns director
--------------------------+----------------------
 Reporter:  econnell      |       Type:  defect
   Status:  new           |   Priority:  normal
Milestone:                |  Component:  varnishd
  Version:  3.0.2         |   Severity:  normal
 Keywords:  dns director  |
--------------------------+----------------------
 System Information: Ubuntu 12.04 amd64 Server on Amazon EC2
 Varnish Package: 3.0.2-1ubuntu0.1 (also tried with Debian SID 3.0.2-2)

 Using the following very basic config, varnishd does not start properly:

 {{{
 backend default {
     .host = "127.0.0.7";
     .port = "8081";
 }

 director blah dns {
     .list = {
         .host_header = "www.myhost.com";
         .port = "80";
         "72.246.30.10/32";
     }
     .ttl = 5m;
 }

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

 When running varnish in debug mode, the following is output:

 {{{
 /usr/sbin/varnishd -n / -d -P /var/run/varnishd.pid -a :80 -T
 localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s
 malloc,256mPlatform:
 Linux,3.2.0-30-virtual,x86_64,-smalloc,-smalloc,-hcritbit
 200 244
 -----------------------------
 Varnish Cache CLI 1.0
 -----------------------------
 Linux,3.2.0-30-virtual,x86_64,-smalloc,-smalloc,-hcritbit

 Type 'help' for command list.
 Type 'quit' to close CLI session.
 Type 'start' to launch worker process.

 start
 child (9426) Started
 Pushing vcls failed:
 CLI communication error (hdr)
 Stopping Child
 200 0

 Child (9426) died signal=11 (core dumped)
 Child (-1) said Child starts
 Child cleanup complete
 }}}

 The backtrace is:

 {{{
 Program terminated with signal 11, Segmentation fault.
 #0  VBE_UseHealth (vdi=0x0) at cache_backend.c:428
 428     cache_backend.c: No such file or directory.
 (gdb) back
 #0  VBE_UseHealth (vdi=0x0) at cache_backend.c:428
 #1  0x000000000043651c in ccf_config_use (cli=<optimized out>,
 av=<optimized out>, priv=<optimized out>) at cache_vcl.c:314
 #2  0x00007f90c734b6f7 in cls_dispatch (ac=2, av=0x7f90c5c12400,
 clp=<optimized out>, cli=0x7f90c5c0e630) at cli_serve.c:228
 #3  cls_vlu2 (priv=0x7f90c5c0e600, av=0x7f90c5c12400) at cli_serve.c:284
 #4  0x00007f90c734bbf8 in cls_vlu (priv=0x7f90c5c0e600, p=<optimized out>)
 at cli_serve.c:339
 #5  0x00007f90c734f84d in LineUpProcess (l=0x7f90c5c02940) at vlu.c:154
 #6  0x00007f90c734ca7e in VCLS_Poll (cs=0x7f90c5c150b0, timeout=<optimized
 out>) at cli_serve.c:528
 #7  0x000000000041a2a1 in CLI_Run () at cache_cli.c:113
 #8  0x000000000042e6a8 in child_main () at cache_main.c:138
 #9  0x0000000000441e97 in start_child (cli=0x7f90c5c0e4b0) at
 mgt_child.c:345
 #10 start_child (cli=0x7f90c5c0e4b0) at mgt_child.c:271
 }}}

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




More information about the varnish-bugs mailing list