[Varnish] #97: Varnishd fails to start in FreeBSD if IPv6 support is missing in kernel and -T localhost:<n> is used

Varnish varnish-bugs at projects.linpro.no
Fri Oct 10 17:25:07 CEST 2008


#97: Varnishd fails to start in FreeBSD if IPv6 support is missing in kernel and
-T localhost:<n> is used
-----------------------------+----------------------------------------------
 Reporter:  anders at fupp.net  |        Owner:  phk     
     Type:  defect           |       Status:  reopened
 Priority:  normal           |    Milestone:          
Component:  varnishd         |      Version:  1.0     
 Severity:  normal           |   Resolution:          
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by anders):

 It seems that Varnish again has this bug. I removed IPv6 support from my
 kernel, I use -T localhost:8080 and have this in /etc/hosts:

 {{{
 ::1                    localhost localhost.my.domain
 127.0.0.1               localhost localhost.my.domain
 }}}

 If I try to start Varnish, it crashes:

 {{{
 Starting varnishd.
 Classic hash: 500009 buckets
 Using old SHMFILE
 socket(): Protocol not supported
 Assert error in mgt_cli_telnet(), mgt_cli.c line 478:
   Condition(sock >= 0) not true.
   errno = 43 (Protocol not supported)
 Abort trap (core dumped)
 }}}

 . Backtrace:

 {{{
 (gdb) bt
 #0  0x0000000800da9dec in kill () from /lib/libc.so.7
 #1  0x0000000800da8c5b in abort () from /lib/libc.so.7
 #2  0x00000008006784cc in lbv_assert_default (
     func=0x6e1 <Address 0x6e1 out of bounds>,
     file=0x6 <Address 0x6 out of bounds>, line=0,
     cond=0x800da9e0c "r\001ÃH\213\r\n\230\022", err=43, xxx=-7192)
     at assert.c:61
 #3  0x000000000042b53c in mgt_cli_telnet (dflag=Variable "dflag" is not
 available.
 ) at mgt_cli.c:478
 #4  0x000000000042ab87 in mgt_run (dflag=2,
     T_arg=0x7fffffffedad "localhost:8080") at mgt_child.c:518
 #5  0x0000000000435c9a in main (argc=37, argv=0x7fffffffe9e0) at
 varnishd.c:630
 (gdb) frame 3
 #3  0x000000000042b53c in mgt_cli_telnet (dflag=Variable "dflag" is not
 available.
 ) at mgt_cli.c:478
 478                     assert(sock >= 0);
 }}}

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/97#comment:3>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list