[Varnish] #1539: Assert error in cnt_lookup(), cache/cache_req_fsm.c line 411:

Varnish varnish-bugs at varnish-cache.org
Mon Jun 30 13:53:01 CEST 2014


#1539: Assert error in cnt_lookup(), cache/cache_req_fsm.c line 411:
-----------------------+----------------------------------
 Reporter:  shing6326  |       Owner:
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  Varnish 4.0 release
Component:  varnishd   |     Version:  4.0.1
 Severity:  normal     |  Resolution:
 Keywords:             |
-----------------------+----------------------------------
Description changed by martin:

Old description:

> Last panic at: Wed, 25 Jun 2014 17:27:33 GMT
> Assert error in cnt_lookup(), cache/cache_req_fsm.c line 411:
>   Condition((oc->exp_flags & (1<<7)) == 0) not true.
> errno = 104 (Connection reset by peer)
> thread = (cache-worker)
> ident =
> Linux,2.6.32-431.17.1.el6.x86_64,x86_64,-smalloc,-smalloc,-hcritbit,epoll
> Backtrace:
>   0x431255: /usr/sbin/varnishd() [0x431255]
>   0x434df0: /usr/sbin/varnishd() [0x434df0]
>   0x436621: /usr/sbin/varnishd(CNT_Request+0x271) [0x436621]
>   0x42ba23: /usr/sbin/varnishd(HTTP1_Session+0x5b3) [0x42ba23]
>   0x43a138: /usr/sbin/varnishd() [0x43a138]
>   0x433d54: /usr/sbin/varnishd(Pool_Work_Thread+0x354) [0x433d54]
>   0x4462a8: /usr/sbin/varnishd() [0x4462a8]
>   0x3ac08079d1: /lib64/libpthread.so.0() [0x3ac08079d1]
>   0x3ac04e8b5d: /lib64/libc.so.6(clone+0x6d) [0x3ac04e8b5d]
> req = 0x7fcc880e9020 {
>   sp = 0x7fcc7f92a9a0, vxid = 1158170269,  step = R_STP_LOOKUP,
>   req_body = R_BODY_NONE,
>   restarts = 0, esi_level = 0
>   sp = 0x7fcc7f92a9a0 {
>     fd = 1586, vxid = 87960717,
>     client = 61.15.234.154 49440,
>     step = S_STP_WORKING,
>   },
>   worker = 0x7fcc74bdac10 {
>     ws = 0x7fcc74bdae28 {
>       id = "wrk",
>       {s,f,r,e} = {0x7fcc74bda400,0x7fcc74bda400,(nil),+2048},
>     },
>   VCL::method = 0x0,
>   VCL::return = deliver,
>   },
>   ws = 0x7fcc880e91b8 {
>     id = "req",
>     {s,f,r,e} = {0x7fcc880eb010,+632,(nil),+57360},
>   },
>   http[req] = {
>     ws = 0x7fcc880e91b8[req]
>       "GET",
>       "/ls/feeds/?/event_get",
>       "HTTP/1.1",
>       "Host: xxx.net",
>       "Connection: keep-alive",
>       "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153
> Safari/537.36",
>       "Origin: http://xxx.com",
>       "Accept: */*",
>       "Referer: http://xxx.com/live/43/",
>       "Accept-Language: en-US,en;q=0.8,zh-TW;q=0.6,zh;q=0.4,zh-
> CN;q=0.2,ja;q=0.2",
>       "If-None-Match: "d8edfda29fd0c8e1b9f472b6a18deb1fd33451ad"",
>       "If-Modified-Since: Wed, 25 Jun 2014 17:26:38 GMT",
>       "X-Forwarded-For: 61.15.234.154",
>       "Accept-Encoding: gzip",
>   },
>   vcl = {
>     srcname = {
>       "input",
>       "Builtin",
>     },
>   },
>   obj (REQ) = 0x7fcc72c27800 {
>     vxid = 2233786712,
>     http[obj] = {
>       ws = 0x7fcc84bed268[]
>         "HTTP/1.1",
>         "200",
>         "OK",
>         "Server: nginx/1.2.1",
>         "Content-Type: application/json; charset=UTF-8",
>         "X-Powered-By: PHP/5.4.4-14+deb7u11",
>         "Etag: "4dc539cdc18409dac8fe9f0e0991d638083fbefa"",
>         "Cache-Control: public,max-age=2",
>         "Expires: Wed, 25 Jun 2014 17:26:56 GMT",
>         "Last-Modified: Wed, 25 Jun 2014 17:26:49 GMT",
>         "Access-Control-Allow-Origin: *",
>         "Access-Control-Allow-Methods: GET",
>         "Access-Control-Allow-Headers: origin, x-requested-with, content-
> type, accept",
>         "Access-Control-Max-Age: 86400",
>         "X-Fn-Web: xxx.com",
>         "Content-Encoding: gzip",
>         "X-Srv: yyy.com",
>         "X-Sbe: z5fn7",
>         "X-Varnish: 1459020872 1459019162",
>         "Via: 1.1 varnish",
>         "X-Varnish-IP: x.x.x.x",
>         "X-Varnish: 586649592 586646228",
>         "Via: 1.1 varnish",
>         "Date: Wed, 25 Jun 2014 17:26:40 GMT",
>         "X-Varnish: 8455419",
>         "Via: 1.1 varnish (v4)",
>         "X-Varnish: 2903666671 2903663776",
>         "Via: 1.1 varnish",
>         "X-Varnish: 35636137",
>         "Via: 1.1 varnish (v4)",
>         "X-Varnish: 586647830 586646228",
>         "Via: 1.1 varnish",
>         "X-Varnish: 34058632",
>         "Via: 1.1 varnish (v4)",
>         "X-Varnish: 1744788186",
>         "Via: 1.1 varnish",
>         "X-Varnish: 37206824",
>         "Via: 1.1 varnish (v4)",
>     },
>     len = 14044,
>     store = {
>       14044 {
>         1f 8b 08 00 00 00 00 00 00 03 ed 5d 69 73 db c6
> |...........]is..|
>         b2 fd 2b 2c 7e 96 63 ec 8b be 49 8a 62 3b 96 62
> |..+,~.c...I.b;.b|
>         97 68 27 37 ef 3a e5 82 48 50 e2 33 45 ea 71 b1
> |.h'7.:..HP.3E.q.|
>         af ed ca 7f 7f a7 7b 06 83 01 08 02 43 09 94 e4
> |......{.....C...|
>         [13980 more]
>       },
>     },
>   },
> },

New description:

 {{{
 Last panic at: Wed, 25 Jun 2014 17:27:33 GMT
 Assert error in cnt_lookup(), cache/cache_req_fsm.c line 411:
   Condition((oc->exp_flags & (1<<7)) == 0) not true.
 errno = 104 (Connection reset by peer)
 thread = (cache-worker)
 ident =
 Linux,2.6.32-431.17.1.el6.x86_64,x86_64,-smalloc,-smalloc,-hcritbit,epoll
 Backtrace:
   0x431255: /usr/sbin/varnishd() [0x431255]
   0x434df0: /usr/sbin/varnishd() [0x434df0]
   0x436621: /usr/sbin/varnishd(CNT_Request+0x271) [0x436621]
   0x42ba23: /usr/sbin/varnishd(HTTP1_Session+0x5b3) [0x42ba23]
   0x43a138: /usr/sbin/varnishd() [0x43a138]
   0x433d54: /usr/sbin/varnishd(Pool_Work_Thread+0x354) [0x433d54]
   0x4462a8: /usr/sbin/varnishd() [0x4462a8]
   0x3ac08079d1: /lib64/libpthread.so.0() [0x3ac08079d1]
   0x3ac04e8b5d: /lib64/libc.so.6(clone+0x6d) [0x3ac04e8b5d]
 req = 0x7fcc880e9020 {
   sp = 0x7fcc7f92a9a0, vxid = 1158170269,  step = R_STP_LOOKUP,
   req_body = R_BODY_NONE,
   restarts = 0, esi_level = 0
   sp = 0x7fcc7f92a9a0 {
     fd = 1586, vxid = 87960717,
     client = 61.15.234.154 49440,
     step = S_STP_WORKING,
   },
   worker = 0x7fcc74bdac10 {
     ws = 0x7fcc74bdae28 {
       id = "wrk",
       {s,f,r,e} = {0x7fcc74bda400,0x7fcc74bda400,(nil),+2048},
     },
   VCL::method = 0x0,
   VCL::return = deliver,
   },
   ws = 0x7fcc880e91b8 {
     id = "req",
     {s,f,r,e} = {0x7fcc880eb010,+632,(nil),+57360},
   },
   http[req] = {
     ws = 0x7fcc880e91b8[req]
       "GET",
       "/ls/feeds/?/event_get",
       "HTTP/1.1",
       "Host: xxx.net",
       "Connection: keep-alive",
       "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3)
 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153
 Safari/537.36",
       "Origin: http://xxx.com",
       "Accept: */*",
       "Referer: http://xxx.com/live/43/",
       "Accept-Language: en-US,en;q=0.8,zh-TW;q=0.6,zh;q=0.4,zh-
 CN;q=0.2,ja;q=0.2",
       "If-None-Match: "d8edfda29fd0c8e1b9f472b6a18deb1fd33451ad"",
       "If-Modified-Since: Wed, 25 Jun 2014 17:26:38 GMT",
       "X-Forwarded-For: 61.15.234.154",
       "Accept-Encoding: gzip",
   },
   vcl = {
     srcname = {
       "input",
       "Builtin",
     },
   },
   obj (REQ) = 0x7fcc72c27800 {
     vxid = 2233786712,
     http[obj] = {
       ws = 0x7fcc84bed268[]
         "HTTP/1.1",
         "200",
         "OK",
         "Server: nginx/1.2.1",
         "Content-Type: application/json; charset=UTF-8",
         "X-Powered-By: PHP/5.4.4-14+deb7u11",
         "Etag: "4dc539cdc18409dac8fe9f0e0991d638083fbefa"",
         "Cache-Control: public,max-age=2",
         "Expires: Wed, 25 Jun 2014 17:26:56 GMT",
         "Last-Modified: Wed, 25 Jun 2014 17:26:49 GMT",
         "Access-Control-Allow-Origin: *",
         "Access-Control-Allow-Methods: GET",
         "Access-Control-Allow-Headers: origin, x-requested-with, content-
 type, accept",
         "Access-Control-Max-Age: 86400",
         "X-Fn-Web: xxx.com",
         "Content-Encoding: gzip",
         "X-Srv: yyy.com",
         "X-Sbe: z5fn7",
         "X-Varnish: 1459020872 1459019162",
         "Via: 1.1 varnish",
         "X-Varnish-IP: x.x.x.x",
         "X-Varnish: 586649592 586646228",
         "Via: 1.1 varnish",
         "Date: Wed, 25 Jun 2014 17:26:40 GMT",
         "X-Varnish: 8455419",
         "Via: 1.1 varnish (v4)",
         "X-Varnish: 2903666671 2903663776",
         "Via: 1.1 varnish",
         "X-Varnish: 35636137",
         "Via: 1.1 varnish (v4)",
         "X-Varnish: 586647830 586646228",
         "Via: 1.1 varnish",
         "X-Varnish: 34058632",
         "Via: 1.1 varnish (v4)",
         "X-Varnish: 1744788186",
         "Via: 1.1 varnish",
         "X-Varnish: 37206824",
         "Via: 1.1 varnish (v4)",
     },
     len = 14044,
     store = {
       14044 {
         1f 8b 08 00 00 00 00 00 00 03 ed 5d 69 73 db c6 |...........]is..|
         b2 fd 2b 2c 7e 96 63 ec 8b be 49 8a 62 3b 96 62 |..+,~.c...I.b;.b|
         97 68 27 37 ef 3a e5 82 48 50 e2 33 45 ea 71 b1 |.h'7.:..HP.3E.q.|
         af ed ca 7f 7f a7 7b 06 83 01 08 02 43 09 94 e4 |......{.....C...|
         [13980 more]
       },
     },
   },
 },
 }}}

--

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1539#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list