Skip to content

Instantly share code, notes, and snippets.

@jbq
Created September 2, 2011 12:12
Show Gist options
  • Save jbq/1188467 to your computer and use it in GitHub Desktop.
Save jbq/1188467 to your computer and use it in GitHub Desktop.
Varnish 3.0.1 rc1 HttpGarbage crash
Sep 2 08:14:09 gw1 varnishd[7268]: Child (829) Panic message: Assert error in WSLR(), cache_shmlog.c line 220:
Condition(VSL_END(w->wlp, l) < w->wle) not true.
thread = (cache-worker)
ident = Linux,2.6.38-8-generic,x86_64,-sfile,-smalloc,-hcritbit,epoll
Backtrace:
0x435d9f: /usr/sbin/varnishd() [0x435d9f]
0x436074: /usr/sbin/varnishd() [0x436074]
0x43c61a: /usr/sbin/varnishd(WSLR+0x161) [0x43c61a]
0x430e26: /usr/sbin/varnishd(http_DissectRequest+0x1e6) [0x430e26]
0x41b65a: /usr/sbin/varnishd() [0x41b65a]
0x41bd07: /usr/sbin/varnishd(CNT_Session+0x460) [0x41bd07]
0x437f02: /usr/sbin/varnishd() [0x437f02]
0x437723: /usr/sbin/varnishd() [0x437723]
0x437b64: /usr/sbin/varnishd() [0x437b64]
0x7fd0cb3c5d8c: /lib/x86_64-linux-gnu/libpthread.so.0(+0x6d8c) [0x7fd0cb3c5d8c]
sp = 0x7fc424b35008 {
fd = 475, id = 475, xid = 619198145,
client = 208.80.194.28 39547,
step = STP_START,
handling = deliver,
restarts = 0, esi_level = 0
ws = 0x7fc424b35080 {
id = "sess",
{s,f,r,e} = {0x7fc424b35cc8,+23808,(nil),+65536},
},
http[req] = {
ws = 0x7fc424b35080[sess]
"GET",
"/foobar.html",
"HTTP/1.0",
"Host: my.site.com",
"User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; byond_3.5; byond_3.5; .NET CLR 1.1.4322)",
},
worker = 0x7fc4390fbb50 {
ws = 0x7fc4390fbcf8 {
id = "wrk",
{s,f,r,e} = {0x7fc4390e9aa0,0x7fc4390e9aa0,(nil),+65536},
},
},
vcl = {
srcname = {
"input",
"Default",
"/etc/varnish/hash.vcl",
},
},
},
Sep 2 08:14:09 gw1 varnishd[7268]: child (1735) Started
Sep 2 08:14:09 gw1 varnishd[7268]: Child (1735) said Child starts
Sep 2 08:14:09 gw1 varnishd[7268]: Child (1735) said SMF.s0 mmap'ed 53687091200 bytes of 53687091200
-----------------------------------8<-----------------------------------
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/varnish/libvarnish.so...Reading symbols from /usr/lib/debug/usr/lib/varnish/libvarnish.so...done.
done.
Loaded symbols for /usr/lib/varnish/libvarnish.so
Reading symbols from /usr/lib/varnish/libvarnishcompat.so...Reading symbols from /usr/lib/debug/usr/lib/varnish/libvarnishcompat.so...done.
done.
Loaded symbols for /usr/lib/varnish/libvarnishcompat.so
Reading symbols from /usr/lib/varnish/libvcl.so...Reading symbols from /usr/lib/debug/usr/lib/varnish/libvcl.so...done.
done.
Loaded symbols for /usr/lib/varnish/libvcl.so
Reading symbols from /usr/lib/varnish/libvgz.so...Reading symbols from /usr/lib/debug/usr/lib/varnish/libvgz.so...done.
done.
Loaded symbols for /usr/lib/varnish/libvgz.so
Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libpcre.so.3
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libdl.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnsl.so.1
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libpthread.so.0
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6
Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/librt.so.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnss_compat.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnss_nis.so.2
Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libnss_files.so.2
Reading symbols from ./vcl.QnwBiSD5.so...done.
Loaded symbols for ./vcl.QnwBiSD5.so
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1
Core was generated by `/usr/sbin/varnishd -P /var/run/varnishd.pid -a :80 -t 604800 -T localhost:6082'.
Program terminated with signal 6, Aborted.
#0 0x00007fd0cb05ed05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007fd0cb05ed05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fd0cb062ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x0000000000436133 in pan_ic (func=0x47441b "WSLR", file=0x474209 "cache_shmlog.c", line=220, cond=0x4742f0 "VSL_END(w->wlp, l) < w->wle", err=0, xxx=0) at cache_panic.c:363
#3 0x000000000043c61a in WSLR (w=0x7fc4390fbb50, tag=SLT_HttpGarbage, id=475, t=...) at cache_shmlog.c:220
#4 0x0000000000430e26 in http_DissectRequest (sp=0x7fc424b35008) at cache_http.c:674
#5 0x000000000041b65a in cnt_start (sp=0x7fc424b35008) at cache_center.c:1445
#6 0x000000000041bd07 in CNT_Session (sp=0x7fc424b35008) at steps.h:35
#7 0x0000000000437f02 in wrk_do_cnt_sess (w=0x7fc4390fbb50, priv=0x7fc424b35008) at cache_pool.c:301
#8 0x0000000000437723 in wrk_thread_real (qp=0x7fd0cad07150, shm_workspace=8192, sess_workspace=65536, nhttp=64, http_space=1128, siov=128) at cache_pool.c:184
#9 0x0000000000437b64 in wrk_thread (priv=0x7fd0cad07150) at cache_pool.c:231
#10 0x00007fd0cb3c5d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007fd0cb11104d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()
@tamilmani58
Copy link

Hey Hi,
I'm facing the same issue in varnish 3.0.4 [http://stackoverflow.com/questions/16712542/varnish-restart-trace]
May I get some help in case you had found the root cause or any possible fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment