[Varnish] #167: Varnishd crashes with assert error in RES_WriteObj

Varnish varnish-bugs at projects.linpro.no
Mon Nov 19 15:16:06 CET 2007


#167: Varnishd crashes with assert error in RES_WriteObj
---------------------------------------------+------------------------------
 Reporter:  anders                           |        Owner:  des        
     Type:  defect                           |       Status:  assigned   
 Priority:  normal                           |    Milestone:  Varnish 1.2
Component:  varnishd                         |      Version:  trunk      
 Severity:  normal                           |   Resolution:             
 Keywords:  varnishd core dump RES_WriteObj  |  
---------------------------------------------+------------------------------
Comment (by anders):

 Running Varnish 1.2 branch (up to date to commit 2262) in FreeBSD
 7.0-BETA3/amd64, I got this:

 {{{
 Child said (2, 1297): <<panic in RES_WriteObj() at cache_response.c:184
 assertion failed: u == sp->obj->len
 sp = 0x21090a2008 {
   fd = 20586, id = 20586, xid = 1372441769,
   client = 85.165.54.27:13581,
   step = STP_DELIVER,
   err_code = 503, err_reason = (null),
   backend = 0x800f14140 {
     vcl_name = "default",
   },
   obj = 0x14a28e9000 {
     refcnt = 2, xid = 1372441769,
     http = {
       hd = {
         "Date: Mon, 19 Nov 2007 14:10:20 GMT",
         "Server: Apache",
         "Last-Modified: Sat, 21 Jul 2007 21:18:00 GMT",
         "ETag: "3597aa-558-94081200"",
         "Cache-Control: max-age=604800",
         "Expires: Mon, 26 Nov 2007 14:10:20 GMT",
         "Content-Type: image/jpeg",
       },
     },
     store = {
     },
   },
 },
 >>
 Cache child died pid=1297 status=0x86
 }}}

 Backtrace:

 {{{
 (gdb) bt
 #0  0x0000000800d1217c in thr_kill () from /lib/libc.so.7
 #1  0x000000000041960e in panic (file=0x434ba6 "cache_response.c",
 line=184,
     func=0x434bec "RES_WriteObj", sp=0x21090a2008,
     fmt=0x434c32 "assertion failed: %s\n") at cache_panic.c:185
 #2  0x000000000041bcc9 in RES_WriteObj (sp=0x21090a2008)
     at cache_response.c:184
 #3  0x000000000040e904 in cnt_deliver (sp=0x21090a2008) at
 cache_center.c:169
 #4  0x0000000000410fa4 in CNT_Session (sp=0x21090a2008) at steps.h:42
 #5  0x0000000000419d3d in wrk_do_one (w=0x7fff36bb9ae0) at
 cache_pool.c:193
 #6  0x000000000041a236 in wrk_thread (priv=0x800f11200) at
 cache_pool.c:246
 #7  0x0000000800a99a88 in pthread_getprio () from /lib/libthr.so.3
 #8  0x0000000000000000 in ?? ()
 Cannot access memory at address 0x7fff36bba000
 }}}

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


More information about the varnish-bugs mailing list