[Varnish] #144: Race in backend socket address replacement.

Varnish varnish-bugs at projects.linpro.no
Wed Jan 2 11:42:46 CET 2008


#144: Race in backend socket address replacement.
---------------------------------------+------------------------------------
 Reporter:  anders                     |        Owner:  phk        
     Type:  defect                     |       Status:  reopened   
 Priority:  high                       |    Milestone:  Varnish 1.2
Component:  varnishd                   |      Version:  1.1        
 Severity:  major                      |   Resolution:             
 Keywords:  varnishd core dump sig 10  |  
---------------------------------------+------------------------------------
Comment (by anders):

 Some more info from the previous coredump/backtrace:

 {{{
 (gdb) frame 5
 #5  0x000000000040cafa in Fetch (sp=0xc15008) at cache_fetch.c:278
 278     cache_fetch.c: No such file or directory.
         in cache_fetch.c
 (gdb) print *sp
 $1 = {magic = 741317722, fd = 65, id = 65, xid = 652152521,
   wrk = 0x7ffffd1e7ad0, sockaddrlen = 16, mysockaddrlen = 128,
   sockaddr = 0xc15410, mysockaddr = 0xc15490,
   addr = "84.211.134.255", '\0' <repeats 49 times>,
   port = "16051\000\000\000\000\000\000\000\000\000\000", srcaddr =
 0x28cbf00,
   doclose = 0x0, http = 0xc15180, t_open = 1199268349.6441126,
   t_req = 1199268349.9035521, t_resp = nan(0x8000000000000),
   t_end = 1199268349.6441126, step = STP_FETCH, handling = 32,
   wantbody = 1 '\001', err_code = 0, err_reason = 0x0, list = {
     vtqe_next = 0xd07008, vtqe_prev = 0xbb50d8}, backend = 0xaf1b80,
   bereq = 0xbbb000, obj = 0x2c33800, vcl = 0x2d816c49c0, mem = 0xc15000,
   workreq = {list = {vtqe_next = 0x0, vtqe_prev = 0x0}, sess = 0xc15008},
   acct = {first = 1199268348.5672638, sess = 1, req = 3, pipe = 0, pass =
 0,
     fetch = 3, hdrbytes = 1024, bodybytes = 26656}, nhashptr = 10,
   ihashptr = 4, lhashptr = 69, hashptr = 0xc15798}
 (gdb) print *hp
 $3 = {magic = 1680389577, ws = {{s = 0xbbb2a0 "X-Varnish: 652152521",
       e = 0xbbd2a0 "",
       f = 0xbbb2d5 "\nServer: Apache/2.2.3 (Debian) Resin/3.1.3", r =
 0x0}},
   rx_s = 0x0, rx_e = 0x0, pl_s = 0x0, pl_e = 0x0, conds = 0 '\0',
   logtag = HTTP_Tx, hd = {{b = 0x42a3e2 "GET", e = 0x42a3e5 ""}, {
       b = 0xc15514 "/dynamic/tms.jsp/1.0.0/finnvector/14/1660/1653.png",
       e = 0xc15546 ""}, {b = 0x42a11a "HTTP/1.1", e = 0x42a122 ""}, {b =
 0x0,
       e = 0x0}, {b = 0x0, e = 0x0}, {b = 0xc15551 "Accept: */*",
       e = 0xc1555c ""}, {
       b = 0xc1555e "Referer:
 http://finn.no/finn/mappopup?finnkode=11172143&utmx=249915&utmy=6825202&mapTitle=Skotten+Seter,++FÃ¥vang&airPossible=1",
       e = 0xc155dd ""}, {b = 0xc155df "Accept-Language: no", e = 0xc155f2
 ""},
     {b = 0xc155f4 "UA-CPU: x86", e = 0xc155ff ""}, {
       b = 0xc15601 "Accept-Encoding: gzip, deflate", e = 0xc1561f ""}, {
       b = 0xc15621 "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows
 NT 5.1; .NET CLR 1.1.4322)", e = 0xc15672 ""}, {
       b = 0xc15674 "Host: maptiles2.finn.no", e = 0xc1568b ""}, {
       b = 0xc156a5 "Cookie: finn_ld=aeb69f3baeb69f34baeebabd;
 JSESSIONID=cbapacpyQ6ArR95jm95Cr; RMID=54d386ff477b6170;
 WT_FPC=id=2a8d6d3b7025c46a8bc1199268218640:lv=1199268345093:ss=1199268218640;
 IADVISITOR=406416167; f"...,
       e = 0xc1578d ""}, {b = 0xbbb2a0 "X-Varnish: 652152521",
       e = 0xbbb2b4 ""}, {b = 0xbbb2b5 "X-Forwarded-for: 84.211.134.255",
       e = 0xbbb2d4 ""}, {b = 0x0, e = 0x0} <repeats 17 times>},
   hdf = '\0' <repeats 31 times>, nhd = 15}
 }}}

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


More information about the varnish-bugs mailing list