[Varnish] #1120: Too many variants will crash varnish

Varnish varnish-bugs at varnish-cache.org
Mon Apr 2 17:52:39 CEST 2012


#1120: Too many variants will crash varnish
----------------------+-----------------------------------------------------
 Reporter:  scoof     |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  varnishd  |     Version:  3.0.2
 Severity:  normal    |    Keywords:       
----------------------+-----------------------------------------------------
 A user running with Vary: User-Agent made varnish crash with the following
 assert:
 I assume that it's due to too many variants.
 Could/shouldn't this be handled more gracefully?

 {{{
 Last panic at: Mon, 02 Apr 2012 15:14:06 GMT
 Assert error in VRY_Match(), cache_vary.c line 216:
   Condition(vsp + ln + 2 < sp->vary_e) not true.
 thread = (cache-worker)
 ident = Linux,3.0.18-linode43,i686,-sfile,-smalloc,-hcritbit,epoll
 Backtrace:
   0x8078305: /usr/sbin/varnishd [0x8078305]
   0x807ea4e: /usr/sbin/varnishd(VRY_Match+0x28e) [0x807ea4e]
   0x8070106: /usr/sbin/varnishd(HSH_Lookup+0x476) [0x8070106]
   0x805b515: /usr/sbin/varnishd [0x805b515]
   0x805f8cb: /usr/sbin/varnishd(CNT_Session+0xc3b) [0x805f8cb]
   0x807b23f: /usr/sbin/varnishd [0x807b23f]
   0x807a1b2: /usr/sbin/varnishd [0x807a1b2]
   0x807a7e5: /usr/sbin/varnishd [0x807a7e5]
   0x4361c832: /lib/libpthread.so.0 [0x4361c832]
   0x4356d4de: /lib/libc.so.6(clone+0x5e) [0x4356d4de]
 sp = 0x6e1ae004 {
   fd = 49, id = 49, xid = 517674481,
   client = 75.67.168.122 53918,
   step = STP_LOOKUP,
   handling = hash,
   err_code = 200, err_reason = (null),
   restarts = 0, esi_level = 0
   flags =
   bodystatus = 4
   ws = 0x6e1ae054 {
     id = "sess",
     {s,f,r,e} = {0x6e1ae7b8,+16380,+16384,+16384},
   },
   http[req] = {
     ws = 0x6e1ae054[sess]
       "GET",
       "/wp-content/plugins/wp-polls/polls-css.css?ver=2.50",
       "HTTP/1.1",
       "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0.1)
 Gecko/20100101 Firefox/9.0.1",
       "Accept: text/css,*/*;q=0.1",
       "Accept-Language: en-us,en;q=0.5",
       "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7",
       "Connection: keep-alive",
       "If-Modified-Since: Sat, 31 Mar 2012 01:13:27 GMT",
       "If-None-Match: "4f4be-b13-aa11bbc0"",
       "X-Forwarded-For: 75.67.168.122",
       "Accept-Encoding: gzip",
   },
   worker = 0x6e293048 {
     ws = 0x6e29321c {
       id = "wrk",
       {s,f,r,e} = {0x6e28d000,0x6e28d000,(nil),+16384},
     },
     },
     vcl = {
       srcname = {
         "input",
         "Default",
       },
     },
 },
 }}}

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




More information about the varnish-bugs mailing list