[Varnish] #1050: Condition((o)->magic == 0x32851d42) not true.

Varnish varnish-bugs at varnish-cache.org
Fri Nov 4 13:24:38 CET 2011


#1050: Condition((o)->magic == 0x32851d42) not true.
--------------------+-------------------------------------------------------
 Reporter:  mgkula  |        Type:  defect  
   Status:  new     |    Priority:  normal  
Milestone:          |   Component:  varnishd
  Version:  3.0.2   |    Severity:  normal  
 Keywords:          |  
--------------------+-------------------------------------------------------
 Version: varnish-3.0.2-1.el5
 # cat /etc/sysconfig/varnish
 NFILES=131072
 MEMLOCK=82000
 DAEMON_OPTS="-a :80 \
              -T localhost:6082 \
              -f /etc/varnish/default.vcl \
              -u varnish -g varnish \
              -S /etc/varnish/secret \
                 -p lru_interval=20 \
                 -p cli_timeout=60 \
                 -h classic,500009 \
                 -s malloc,30G \
                 -s persistent,/var/lib/varnish/store/silo,30G \
                 -p thread_pool_min=500 \
                 -p thread_pool_max=4000 \
                 -p thread_pools=4 \
                 -p thread_pool_add_delay=2 \
                 -p session_linger=100 \
                 -p send_timeout=120 \
                 -p sess_timeout=10 \
                 -p listen_depth=4096 \
                 -p nuke_limit=50"

 --- default.vcl ---
 #This is a basic VCL configuration file for varnish.  See the vcl(7)
 #man page for details on VCL syntax and semantics.

 # cleanup url
 include "/etc/varnish/url.vcl";

 #Default backend definition.  Set this to point to your content
 #server.
 #

 # backed is at localhost:8000
 backend default {
     .host = "127.0.0.1";
     .port = "8000";
     .max_connections = 500;
     .connect_timeout = 5s;
     .first_byte_timeout = 15s;
     .between_bytes_timeout = 2s;
 }

 ## ACL

 acl fw_purge {
         "zzz.zzz.zzz.0"/24;
 }

 #
 #Below is a commented-out copy of the default VCL logic.  If you
 #redefine any of these subroutines, the built-in logic will be
 #appended to your code.
 #
 sub vcl_recv {
     # goto apache
     set req.backend = default;
     #set req.backend = apaches;
     # bust some torrent sites
     if (req.http.referer ~
 "^http(s)?://(www\.)?(peb\.pl|dvhk\.pl|fuzja\.com|polishbytes\.net|oslonet\.net|emulek\.com\.pl|ufs\.pl|kinomaniak\.info
 |crackers-
 team\.net|darkwarez\.pl|dvdseed\.org|emulek\.info|.*\.dvhk\.pl|ukwarez\.org
 |emule-
 island\.com|emulek\.com|emulek\.info|exsite\.pl|darmowefilmy\.eu|download24\.li|megawarez\.eu|ajo\.pl|btgigs\.info|chomikuj\.pl|dvdseed\.org|marekchrzanow\.beq\.pl|torrenty\.org)/")
 {
       set req.http.host = "gfx";
       set req.url = "/busted.jpg";
       return(lookup);
     }

     ## Serve expired objs from cache if backend is irresponsible
     set req.grace = 5m;

     ## Remove any query strings, this is all about static content, no cgi
 and apps here
     set req.url = regsub(req.url, "\?.*$", "");

     ## Normalize encoding (http://varnish-
 cache.org/docs/tutorial/increasing_your_hitrate/#tutorial-increasing-your-
 hitrate)
     if (req.http.Accept-Encoding) {
         if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") {
             # No point in compressing these
             remove req.http.Accept-Encoding;
         } elsif (req.http.Accept-Encoding ~ "gzip") {
             set req.http.Accept-Encoding = "gzip";
         } elsif (req.http.Accept-Encoding ~ "deflate") {
             set req.http.Accept-Encoding = "deflate";
         } else {
             # unkown algorithm
             remove req.http.Accept-Encoding;
         }
     }

     ## Purging interface - verify ACL
     if (req.request == "PURGE" && req.http.host ~ "gfx") {
         if(client.ip ~ fw_purge) {
             #set req.http.x = req.url "#" req.http.host "#";
             #purge_hash(req.http.x);
             set req.http.host = "gfx";
             ban("req.url ~ ^" + req.url + "$");
             error 100 "Continue.";
         } else {
             error 405 "Not allowed.";
         }
     }

     # Normalize the Host: header
     if (req.http.host ~ "^[123].cdn$") {
         set req.http.host = "gfx";
     }

     # Normalize the Host: header
     if (req.http.host == "ad" || req.http.host ~ "^[0-9a-z]\.ad$") {
         set req.http.host = "ad";
     }

     # all GET to Host: (*.ad|ad|gfx) should be looked up in cache
     if (req.request == "GET") {
         if (req.http.host == "gfx" || req.http.host == "ad") {
             unset req.http.cookie;
             unset req.http.authorization;
             return(lookup);
         }
     }

     # DON'T lookup if non-RFC2616 or CONNECT which is weird
     if (req.request != "GET" && req.request != "HEAD") {
         error 405 "Not allowed.";
     }

     # DON'T lookup if HTTP-AUTH
     if (req.http.Authorization) {
         return(pass);
     }

     return(lookup);
 }

 sub vcl_fetch {
     ## Serve expired objs from cache if backend is irresponsible
     set req.grace = 5m;

     # CACHE all responses for GET requests to Host: gfx
     if (req.request == "GET" &&
       req.http.host == "gfx") {
         unset beresp.http.Set-Cookie;
         return(deliver);
     }
     # CACHE 200's only!
     if (beresp.status >= 300) {
         return(hit_for_pass);
     }
     ## if varnish thinks it's not cachable, don't cache it.
     if (beresp.ttl == 0s &&
        beresp.grace == 0s) {
         return(hit_for_pass);
     }
     ## if the object was trying to set a cookie,
     ## it probably shouldn't be cached.
     if (beresp.http.Set-Cookie) {
         return(hit_for_pass);
     }
      ## if the object is specifically saying 'don't cache me' -
      ## obey it.
      if(beresp.http.Pragma ~ "no-cache" ||
         beresp.http.Cache-Control ~ "no-cache" ||
         beresp.http.Cache-Control ~ "private")  {

         return(hit_for_pass);
     }
     ## if the object is saying how long to cache it, you
     ## can rely on the fact that it is cachable.
     if (beresp.http.Cache-Control ~ "max-age") {
         unset beresp.http.Set-Cookie;
         return(deliver);
     }
     return(hit_for_pass);
 }

 #sub vcl_hit {
     #set obj.http.X-Cache = "TCP_HIT from " server.hostname;
 #}

 sub vcl_deliver {
     remove resp.http.Via;
     remove resp.http.Age;
     remove resp.http.X-Varnish;
     if (obj.hits > 0) {
         set resp.http.X-Cache = "HIT from " + server.hostname;
         set resp.http.X-Cache-Hits = obj.hits;
     } else {
         set resp.http.X-Cache = "MISS from " + server.hostname;
     }
     return(deliver);
 }



 -- EOF ---

 Nov  3 17:12:52 varnish1 Condition((o)->magic == 0x32851d42) not true.
 Nov  3 17:12:52 varnish1 thread = (cache-worker)
 Nov  3 17:12:52 varnish1 ident =
 Linux,2.6.18-238.el5,x86_64,-smalloc,-spersistent,-smalloc,-hclassic,epoll
 Nov  3 17:12:52 varnish1 Backtrace:
 Nov  3 17:12:52 varnish1 0x42c7a6: /usr/sbin/varnishd [0x42c7a6]
 Nov  3 17:12:52 varnish1 0x448d87: /usr/sbin/varnishd [0x448d87]
 Nov  3 17:12:52 varnish1 0x425873: /usr/sbin/varnishd(HSH_Lookup+0x3a3)
 [0x425873]
 Nov  3 17:12:52 varnish1 0x41423e: /usr/sbin/varnishd [0x41423e]
 Nov  3 17:12:52 varnish1 0x417a92: /usr/sbin/varnishd(CNT_Session+0x9d2)
 [0x417a92]
 Nov  3 17:12:52 varnish1 0x42efb8: /usr/sbin/varnishd [0x42efb8]
 Nov  3 17:12:52 varnish1 0x42e19b: /usr/sbin/varnishd [0x42e19b]
 Nov  3 17:12:52 varnish1 0x391600673d: /lib64/libpthread.so.0
 [0x391600673d]
 Nov  3 17:12:52 varnish1 0x39158d3f6d: /lib64/libc.so.6(clone+0x6d)
 [0x39158d3f6d]
 Nov  3 17:12:52 varnish1 sp = 0x2aaf8a89b008 {
 Nov  3 17:12:52 varnish1 fd = 117, id = 117, xid = 217771487,
 Nov  3 17:12:52 varnish1 client = yyy.yyy.yyy.yyy 51609,
 Nov  3 17:12:52 varnish1 step = STP_LOOKUP,
 Nov  3 17:12:52 varnish1 handling = hash,
 Nov  3 17:12:52 varnish1 restarts = 0, esi_level = 0
 Nov  3 17:12:52 varnish1 flags =
 Nov  3 17:12:52 varnish1 bodystatus = 4
 Nov  3 17:12:52 varnish1 ws = 0x2aaf8a89b080 {
 Nov  3 17:12:52 varnish1 id = "sess",
 Nov  3 17:12:52 varnish1 {s,f,r,e} = {0x2aaf8a89bc90,+488,+65536,+65536},
 Nov  3 17:12:52 varnish1 },
 Nov  3 17:12:52 varnish1 http[req] = {
 Nov  3 17:12:52 varnish1 ws = 0x2aaf8a89b080[sess]
 Nov  3 17:12:52 varnish1 "GET",
 Nov  3 17:12:52 varnish1 "/wv/62/39/26239/wyscig.26239.0.jpg",
 Nov  3 17:12:52 varnish1 "HTTP/1.1",
 Nov  3 17:12:52 varnish1 "Accept: image/png, image/svg+xml, image/*;q=0.8,
 */*;q=0.5",
 Nov  3 17:12:52 varnish1 "Referer:
 http://www.filmweb.pl/video/trailer/nr+1-25484",
 Nov  3 17:12:52 varnish1 "Accept-Language: pl-PL",
 Nov  3 17:12:52 varnish1 "User-Agent: Mozilla/5.0 (compatible; MSIE 9.0;
 Windows NT 6.1; WOW64; Trident/5.0)",
 Nov  3 17:12:52 varnish1 "Connection: Keep-Alive",
 Nov  3 17:12:52 varnish1 "host: gfx",
 Nov  3 17:12:52 varnish1 },
 Nov  3 17:12:52 varnish1 worker = 0x2aaf70e02cf0 {
 Nov  3 17:12:52 varnish1 ws = 0x2aaf70e02f30 {
 Nov  3 17:12:52 varnish1 id = "wrk",
 Nov  3 17:12:52 varnish1 {s,f,r,e} =
 {0x2aaf70df0ca0,0x2aaf70df0ca0,(nil),+65536},
 Nov  3 17:12:52 varnish1 },
 Nov  3 17:12:52 varnish1 },
 Nov  3 17:12:52 varnish1 vcl = {
 Nov  3 17:12:52 varnish1 srcname = {
 Nov  3 17:12:52 varnish1 "input",
 Nov  3 17:12:52 varnish1 "Default",
 Nov  3 17:12:52 varnish1 "/etc/varnish/url.vcl",
 Nov  3 17:12:52 varnish1 },
 Nov  3 17:12:52 varnish1 },
 Nov  3 17:12:52 varnish1 },
 Nov  3 17:52:31 varnish1 Condition((o)->magic == 0x32851d42) not true.
 Nov  3 17:52:31 varnish1 thread = (cache-worker)
 Nov  3 17:52:31 varnish1 ident =
 Linux,2.6.18-238.el5,x86_64,-smalloc,-spersistent,-smalloc,-hclassic,epoll
 Nov  3 17:52:31 varnish1 Backtrace:
 Nov  3 17:52:31 varnish1 0x42c7a6: /usr/sbin/varnishd [0x42c7a6]
 Nov  3 17:52:31 varnish1 0x448d87: /usr/sbin/varnishd [0x448d87]
 Nov  3 17:52:31 varnish1 0x425873: /usr/sbin/varnishd(HSH_Lookup+0x3a3)
 [0x425873]
 Nov  3 17:52:31 varnish1 0x41423e: /usr/sbin/varnishd [0x41423e]
 Nov  3 17:52:31 varnish1 0x417a92: /usr/sbin/varnishd(CNT_Session+0x9d2)
 [0x417a92]
 Nov  3 17:52:31 varnish1 0x42efb8: /usr/sbin/varnishd [0x42efb8]
 Nov  3 17:52:31 varnish1 0x42e19b: /usr/sbin/varnishd [0x42e19b]
 Nov  3 17:52:31 varnish1 0x391600673d: /lib64/libpthread.so.0
 [0x391600673d]
 Nov  3 17:52:31 varnish1 0x39158d3f6d: /lib64/libc.so.6(clone+0x6d)
 [0x39158d3f6d]
 Nov  3 17:52:31 varnish1 sp = 0x2aaf836bd008 {
 Nov  3 17:52:31 varnish1 fd = 2272, id = 2272, xid = 1537218534,
 Nov  3 17:52:31 varnish1 client = yyy.yyy.yyy.yyy 21213,
 Nov  3 17:52:31 varnish1 step = STP_LOOKUP,
 Nov  3 17:52:31 varnish1 handling = hash,
 Nov  3 17:52:31 varnish1 restarts = 0, esi_level = 0
 Nov  3 17:52:31 varnish1 flags =
 Nov  3 17:52:31 varnish1 bodystatus = 4
 Nov  3 17:52:31 varnish1 ws = 0x2aaf836bd080 {
 Nov  3 17:52:31 varnish1 id = "sess",
 Nov  3 17:52:31 varnish1 {s,f,r,e} = {0x2aaf836bdc90,+680,+65536,+65536},
 Nov  3 17:52:31 varnish1 },
 Nov  3 17:52:31 varnish1 http[req] = {
 Nov  3 17:52:31 varnish1 ws = 0x2aaf836bd080[sess]
 Nov  3 17:52:31 varnish1 "GET",
 Nov  3 17:52:31 varnish1 "/ph/17/60/121760/99950.1.jpg",
 Nov  3 17:52:31 varnish1 "HTTP/1.1",
 Nov  3 17:52:31 varnish1 "User-Agent: Opera/9.80 (Windows NT 6.1; U; pl)
 Presto/2.7.62 Version/11.00",
 Nov  3 17:52:31 varnish1 "Accept: text/html, application/xml;q=0.9,
 application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap,
 */*;q=0.1",
 Nov  3 17:52:31 varnish1 "Accept-Language: pl-PL,pl;q=0.9,en;q=0.8",
 Nov  3 17:52:31 varnish1 "Accept-Charset: iso-8859-1, utf-8, utf-16,
 *;q=0.1",
 Nov  3 17:52:31 varnish1 "Referer:
 http://www.filmweb.pl/person/Naomie+Harris-84518",
 Nov  3 17:52:31 varnish1 "Connection: Keep-Alive, TE",
 Nov  3 17:52:31 varnish1 "TE: deflate, gzip, chunked, identity, trailers",
 Nov  3 17:52:31 varnish1 "host: gfx",
 Nov  3 17:52:31 varnish1 },
 Nov  3 17:52:31 varnish1 worker = 0x2aabc5600cf0 {
 Nov  3 17:52:31 varnish1 ws = 0x2aabc5600f30 {
 Nov  3 17:52:31 varnish1 id = "wrk",
 Nov  3 17:52:31 varnish1 {s,f,r,e} =
 {0x2aabc55eeca0,0x2aabc55eeca0,(nil),+65536},
 Nov  3 17:52:31 varnish1 },
 Nov  3 17:52:31 varnish1 },
 Nov  3 17:52:31 varnish1 vcl = {
 Nov  3 17:52:31 varnish1 srcname = {
 Nov  3 17:52:31 varnish1 "input",
 Nov  3 17:52:31 varnish1 "Default",
 Nov  3 17:52:31 varnish1 "/etc/varnish/url.vcl",
 Nov  3 17:52:31 varnish1 },
 Nov  3 17:52:31 varnish1 },
 Nov  3 17:52:31 varnish1 },
 Nov  3 18:32:47 varnish1 Condition((o)->magic == 0x32851d42) not true.
 Nov  3 18:32:47 varnish1 thread = (cache-worker)
 Nov  3 18:32:47 varnish1 ident =
 Linux,2.6.18-238.el5,x86_64,-smalloc,-spersistent,-smalloc,-hclassic,epoll
 Nov  3 18:32:47 varnish1 Backtrace:
 Nov  3 18:32:47 varnish1 0x42c7a6: /usr/sbin/varnishd [0x42c7a6]
 Nov  3 18:32:47 varnish1 0x448d87: /usr/sbin/varnishd [0x448d87]
 Nov  3 18:32:47 varnish1 0x425873: /usr/sbin/varnishd(HSH_Lookup+0x3a3)
 [0x425873]
 Nov  3 18:32:47 varnish1 0x41423e: /usr/sbin/varnishd [0x41423e]
 Nov  3 18:32:47 varnish1 0x417a92: /usr/sbin/varnishd(CNT_Session+0x9d2)
 [0x417a92]
 Nov  3 18:32:47 varnish1 0x42efb8: /usr/sbin/varnishd [0x42efb8]
 Nov  3 18:32:47 varnish1 0x42e19b: /usr/sbin/varnishd [0x42e19b]
 Nov  3 18:32:47 varnish1 0x391600673d: /lib64/libpthread.so.0
 [0x391600673d]
 Nov  3 18:32:47 varnish1 0x39158d3f6d: /lib64/libc.so.6(clone+0x6d)
 [0x39158d3f6d]
 Nov  3 18:32:47 varnish1 sp = 0x2aaf88dbd008 {
 Nov  3 18:32:47 varnish1 fd = 2366, id = 2366, xid = 17518841,
 Nov  3 18:32:47 varnish1 client = yyy.yyy.yyy.yyy 37724,
 Nov  3 18:32:47 varnish1 step = STP_LOOKUP,
 Nov  3 18:32:47 varnish1 handling = hash,
 Nov  3 18:32:47 varnish1 restarts = 0, esi_level = 0
 Nov  3 18:32:47 varnish1 flags =
 Nov  3 18:32:47 varnish1 bodystatus = 4
 Nov  3 18:32:47 varnish1 ws = 0x2aaf88dbd080 {
 Nov  3 18:32:47 varnish1 id = "sess",
 Nov  3 18:32:47 varnish1 {s,f,r,e} = {0x2aaf88dbdc90,+528,+65536,+65536},
 Nov  3 18:32:47 varnish1 },
 Nov  3 18:32:47 varnish1 http[req] = {
 Nov  3 18:32:47 varnish1 ws = 0x2aaf88dbd080[sess]
 Nov  3 18:32:47 varnish1 "GET",
 Nov  3 18:32:47 varnish1 "/po/59/57/105957/6986464.0.jpg",
 Nov  3 18:32:47 varnish1 "HTTP/1.1",
 Nov  3 18:32:47 varnish1 "User-Agent: Mozilla/5.0 (Windows NT 5.1;
 rv:7.0.1) Gecko/20100101 Firefox/7.0.1",
 Nov  3 18:32:47 varnish1 "Accept: image/png,image/*;q=0.8,*/*;q=0.5",
 Nov  3 18:32:47 varnish1 "Accept-Language: pl,en-us;q=0.7,en;q=0.3",
 Nov  3 18:32:47 varnish1 "Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7",
 Nov  3 18:32:47 varnish1 "Connection: keep-alive",
 Nov  3 18:32:47 varnish1 "Referer:
 http://www.filmweb.pl/film/Desperaci-2000-11561",
 Nov  3 18:32:47 varnish1 "host: gfx",
 Nov  3 18:32:47 varnish1 },
 Nov  3 18:32:47 varnish1 worker = 0x2aab46bffcf0 {
 Nov  3 18:32:47 varnish1 ws = 0x2aab46bfff30 {
 Nov  3 18:32:47 varnish1 id = "wrk",
 Nov  3 18:32:47 varnish1 {s,f,r,e} =
 {0x2aab46bedca0,0x2aab46bedca0,(nil),+65536},
 Nov  3 18:32:47 varnish1 },
 Nov  3 18:32:47 varnish1 },
 Nov  3 18:32:47 varnish1 vcl = {
 Nov  3 18:32:47 varnish1 srcname = {
 Nov  3 18:32:47 varnish1 "input",
 Nov  3 18:32:47 varnish1 "Default",
 Nov  3 18:32:47 varnish1 "/etc/varnish/url.vcl",
 Nov  3 18:32:47 varnish1 },
 Nov  3 18:32:47 varnish1 },
 Nov  3 18:32:47 varnish1 },
 Nov  3 18:32:47 varnish1 CLI communication error (hdr)
 Nov  3 18:32:47 varnish1 Condition(sg1->p.offset != sg->p.offset) not
 true.
 Nov  3 18:32:47 varnish1 thread = (cache-main)
 Nov  3 18:32:47 varnish1 ident =
 Linux,2.6.18-238.el5,x86_64,-smalloc,-spersistent,-smalloc,-hclassic,no_waiter
 Nov  3 18:32:47 varnish1 Backtrace:
 Nov  3 18:32:47 varnish1 0x42c7a6: /usr/sbin/varnishd [0x42c7a6]
 Nov  3 18:32:47 varnish1 0x4472f5: /usr/sbin/varnishd [0x4472f5]
 Nov  3 18:32:47 varnish1 0x4474bb: /usr/sbin/varnishd [0x4474bb]
 Nov  3 18:32:47 varnish1 0x444d57: /usr/sbin/varnishd(STV_open+0x27)
 [0x444d57]
 Nov  3 18:32:47 varnish1 0x42b525: /usr/sbin/varnishd(child_main+0xc5)
 [0x42b525]
 Nov  3 18:32:47 varnish1 0x43d5ec: /usr/sbin/varnishd [0x43d5ec]
 Nov  3 18:32:47 varnish1 0x43de7c: /usr/sbin/varnishd [0x43de7c]
 Nov  3 18:32:47 varnish1 0x35f2a094c7: /usr/lib64/varnish/libvarnish.so
 [0x35f2a094c7]
 Nov  3 18:32:47 varnish1 0x35f2a09b58:
 /usr/lib64/varnish/libvarnish.so(vev_schedule+0x88) [0x35f2a09b58]
 Nov  3 18:32:47 varnish1 0x43d7c2: /usr/sbin/varnishd(MGT_Run+0x132)
 [0x43d7c2]

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




More information about the varnish-bugs mailing list