[Varnish] #1853: Assert error in Lck_CondWait(), cache/cache_lck.c line 203 (on Mac OS X)

Varnish varnish-bugs at varnish-cache.org
Wed Feb 3 11:24:07 CET 2016


#1853: Assert error in Lck_CondWait(), cache/cache_lck.c line 203 (on Mac OS X)
---------------------------+----------------------
 Reporter:  Jastrzebowski  |       Type:  defect
   Status:  new            |   Priority:  normal
Milestone:                 |  Component:  varnishd
  Version:  4.1.0          |   Severity:  normal
 Keywords:                 |
---------------------------+----------------------
 We are trying to migrate local dev to Varnish 4.1.0 (from Brew) but it’s
 keep crashing after a couple of page reloads throwing an error:


 {{{
 Assert error in Lck_CondWait(), cache/cache_lck.c line 203:
   Condition((pthread_cond_wait(cond, &ilck->mtx)) == 0) not true.
 thread = (cache-worker)
 version = varnish-4.1.0 revision 3041728
 ident = Darwin,15.4.0,x86_64,-jnone,-smalloc,-smalloc,-hcritbit,kqueue
 Backtrace:
   0x106c48706: 0   varnishd                            0x0000000106c48706
 pan_ic + 405
   0x106c445e6: 0   varnishd                            0x0000000106c445e6
 Lck_CondWait + 171
   0x106c2afe8: 0   varnishd                            0x0000000106c2afe8
 VBT_Wait + 157
   0x106c262c7: 0   varnishd                            0x0000000106c262c7
 vbe_dir_gethdrs + 284
   0x106c2f9f7: 0   varnishd                            0x0000000106c2f9f7
 VDI_GetHdr + 102
   0x106c382a0: 0   varnishd                            0x0000000106c382a0
 vbf_fetch_thread + 2860
   0x106c5f740: 0   varnishd                            0x0000000106c5f740
 WRK_Thread + 1527
   0x106c5f0f1: 0   varnishd                            0x0000000106c5f0f1
 pool_thread + 51
   0x7fff915d399d: 0   libsystem_pthread.dylib
 0x00007fff915d399d _pthread_body + 131
   0x7fff915d391a: 0   libsystem_pthread.dylib
 0x00007fff915d391a _pthread_body + 0
 busyobj = 0x7feef4872620 {
   ws = 0x7feef48726e0 {
     id = "bo",
     {s,f,r,e} = {0x7feef4874598,+1136,0x0,+57440},
   },
   refcnt = 2,
   retries = 0, failed = 0, state = 1,
   flags = {do_stream},
   http_conn = 0x7feef4874958 {
     fd = 13,
     doclose = NULL,
     ws = 0x0,
     {rxbuf_b, rxbuf_e} = {0x0, 0x0},
     {pipeline_b, pipeline_e} = {0x0, 0x0},
     content_length = 0,
     body_status = none,
     first_byte_timeout = 60.000000,
     between_bytes_timeout = 60.000000,
   },
   director_req = 0x7feef3c09290 {
     vcl_name = goldenline_production,
     type = random {
     },
   },
   director_resp = 0x7feef3f01088 {
     vcl_name = php,
     type = backend {
       display_name = boot.php,
       ipv4 = 127.0.0.1,
       port = 8080,
       hosthdr = 127.0.0.1,
       health=healthy, admin_health=probe, changed=1454427684.4,
       n_conn = 1,
     },
   },
   http[bereq] = 0x7feef4872ca8 {
     ws[bo] = 0x7feef48726e0,
     hdrs {
       "GET",
 "/_fragment?_path=type%3Donline%26path%3D%252Fpracodawcy%26locale%3Den%26_format%3Dhtml%26_locale%3Den%26_controller%3DHomepageBundle%253ALayout%253Afooter&token=1db840338dc9998350313087cac23d3b&_hash=sx%2FuowyHne7J%2BOdXavQfwHEen4TDsqO2Bq2gv8%2FVwrQ%3D",
       "HTTP/1.1",
       "Host: www.goldenline.pl.127.0.0.1.xip.io",
       "X-Real-IP: 127.0.0.1",
       "X-Forwarded-Port: 443",
       "X-Forwarded-Protocol: https",
       "X-Forwarded-Proto: https",
       "accept:
 text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
       "upgrade-insecure-requests: 1",
       "user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4)
 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36",
       "X-Forwarded-For: 127.0.0.1, 127.0.0.1",
       "X-Varnish-Accept-Language: en",
       "X-UA-Device: desktop",
       "X-Environment: production",
       "X-HQ: 1",
       "Accept-Language: en",
       "Surrogate-Capability: abc=ESI/1.0",
       "Accept-Encoding: gzip",
       "X-Varnish: 524305",
     },
   },
   http[beresp] = 0x7feef4873120 {
     ws[bo] = 0x7feef48726e0,
     hdrs {
     },
   },
   objcore[fetch] = 0x7feef3e176a0 {
     refcnt = 2,
     flags = 0x2,
     objhead = 0x7feef3e147b0,
     stevedore = 0x0,
   },
   vcl = {
     temp = warm
     srcname = {
       "input",
       "Builtin",
       "backends.4.vcl",
       "accept_language.4.vcl",
       "devicedetect.vcl",
     },
   },
 },
 }}}

 Varnish 4.1.0, Mac OS 10.11.(3|4). meanwhile linux V4.1.1 with the same
 config runs perfectly normal

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



More information about the varnish-bugs mailing list