[Varnish] #1489: Assert error to use the req.esi in vcl_backend_response

Varnish varnish-bugs at varnish-cache.org
Mon Apr 28 10:05:42 CEST 2014


#1489: Assert error to use the req.esi in vcl_backend_response
-------------------+----------------------
 Reporter:  xcir   |       Type:  defect
   Status:  new    |   Priority:  normal
Milestone:         |  Component:  varnishd
  Version:  4.0.0  |   Severity:  normal
 Keywords:         |
-------------------+----------------------
 Hi,
 I found the req.esi that can be accessed by vcl_backend_response in
 lib/libvcc/generate.py

 I tried it, only to fail.



 {{{
 vcl 4.0;
 import directors;
 import std;
 backend default { .host = "192.168.1.199";.port = "88";}

 sub vcl_backend_response{
   std.log("req.esi" + req.esi);

 }
 }}}
 {{{
 Last panic at: Mon, 28 Apr 2014 07:16:53 GMT
 Assert error in VRT_r_req_esi(), cache/cache_vrt_var.c line 388:
   Condition((ctx->req) != NULL) not true.
 thread = (cache-worker)
 ident = Linux,3.2.0-60-generic,x86_64,-smalloc,-smalloc,-hcritbit,epoll
 Backtrace:
   0x4325b5: /usr/sbin/varnishd() [0x4325b5]
   0x4454b0: /usr/sbin/varnishd(VRT_r_req_esi+0xb0) [0x4454b0]
   0x7f678adede4a:
 ./vcl.9MoGK6Nv.so(VGC_function_vcl_backend_response+0x2a) [0x7f678adede4a]
   0x43e348: /usr/sbin/varnishd() [0x43e348]
   0x43f658: /usr/sbin/varnishd(VCL_backend_response_method+0x48)
 [0x43f658]
   0x4209a3: /usr/sbin/varnishd() [0x4209a3]
   0x434ab4: /usr/sbin/varnishd(Pool_Work_Thread+0xb4) [0x434ab4]
   0x4477e8: /usr/sbin/varnishd() [0x4477e8]
   0x7f67a3f9ae9a: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)
 [0x7f67a3f9ae9a]
   0x7f67a3cc73fd: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)
 [0x7f67a3cc73fd]
   busyobj = 0x7f6778010cf0 {
     ws = 0x7f6778010db8 {
       id = "bo",
       {s,f,r,e} = {0x7f6778012cc0,+440,(nil),+57392},
     },
   refcnt = 2
   retries = 0
   failed = 0
   state = 1
     is_do_stream
     is_should_close
     bodystatus = 3 (length),
     },
     http[bereq] = {
       ws = 0x7f6778010db8[bo]
         "GET",
         "/date2.php",
         "HTTP/1.1",
         "User-Agent: Wget/1.12 (linux-gnu)",
         "Accept: */*",
         "Host: 192.168.1.45",
         "X-Forwarded-For: 192.168.1.199",
         "Accept-Encoding: gzip",
         "X-Varnish: 3",
     },
     http[beresp] = {
       ws = 0x7f6778010db8[bo]
         "HTTP/1.1",
         "200",
         "OK",
         "Date: Mon, 28 Apr 2014 07:00:27 GMT",
         "Server: Apache/2.2.15 (Scientific Linux)",
         "X-Powered-By: PHP/5.3.2",
         "Cache-Control: no-store",
         "Content-Length: 20",
         "Connection: close",
         "Content-Type: text/html; charset=UTF-8",
     },
     ws = 0x7f6778010f40 { BAD_MAGIC(0x00000000) },
     },
   objcore (FETCH) = 0x7f6778010b10 {
     refcnt = 2
     flags = 0x2
     objhead = 0x7f6778010ba0
   }
   }
 }}}

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



More information about the varnish-bugs mailing list