[Varnish] #904: Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c line 225
Varnish
varnish-bugs at varnish-cache.org
Mon Apr 18 12:45:06 CEST 2011
#904: Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c line 225
------------------------------------------------------+---------------------
Reporter: kdajka | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: trunk | Severity: major
Keywords: 3b4859455803b606107c07b25b784372d5665a1f |
------------------------------------------------------+---------------------
Hi, I'm seeing Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c in
trunk 3b4859455803b606107c07b25b784372d5665a1f.
[[BR]]
I think problem is reproducible when backend gzips bitmap files and client
asks for ungzipped version. I had few similar panics (all with *.bmp
files) until I stopped gzipping bmps on backend (which was unnecessary
btw)
{{{
/usr/local/inp/varnish/sbin/varnishd -P /var/tmp/foo.bar_varnishd.pid -a
193.42.231.45:8084 -i foo.bar_varnishic06 -n foo.bar_varnishic06 -f
/exp/config/varnish//foo.bar/foo.bar.vcl -T 193.42.231.45:2084 -h
classic,20011 -p thread_pools=4 -p ban_lurker_sleep=0.1 -w 200,4000,2 -t 0
-s malloc,3G -d
}}}
{{{
$file
/usr/local/inp/varnish_3b4859455803b606107c07b25b784372d5665a1f_debug/sbin/varnishd:
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux 2.6.8, not stripped
}}}
{{{
$ ulimit -c
unlimited
}}}
{{{
/usr/local/inp/varnish/sbin/varnishd -P /var/tmp/foo.bar_varnishd.pid -a
193.42.231.45:8084 -i foo.bar_varnishic06 -n foo.bar_varnishic06 -f
/exp/config/varnish//foo.bar/foo.bar.vcl -T 193.42.231.45:2084 -h
classic,20011 -p thread_pools=4 -p ban_lurker_sleep=0.1 -w 200,4000,2 -t 0
-s malloc,3G -d
...
start
child (11512) Started
200 0
Child (11512) said Not running as root, no priv-sep
Child (11512) said Child starts
Child (11512) died signal=6
Child (11512) Panic message: Assert error in VGZ_Ibuf(), cache_gzip.c line
225:
Condition((vg->vz.avail_in) == 0) not true.
thread = (cache-worker)
ident = Linux,2.6.26-2-amd64,x86_64,-smalloc,-smalloc,-hclassic,epoll
Backtrace:
0x4349c0: pan_backtrace+16
0x434c29: pan_ic+164
0x429596: VGZ_Ibuf+bb
0x429d1c: VGZ_WrwGunzip+d4
0x4387ba: res_WriteGunzipObj+26e
0x438dad: RES_WriteObj+26b
0x417ae3: cnt_deliver+30
0x41be5d: CNT_Session+647
0x436853: wrk_do_cnt_sess+12a
0x4360be: wrk_thread_real+851
sp = 0x7f5e35381008 {
fd = 154, id = 154, xid = 1697784078,
client = 95.108.158.243 21561,
step = STP_DELIVER,
handling = deliver,
err_code = 200, err_reason = (null),
restarts = 0, esi_level = 0
ws = 0x7f5e35381080 {
id = "sess",
{s,f,r,e} = {0x7f5e35381cf0,+400,(nil),+65536},
},
http[req] = {
ws = 0x7f5e35381080[sess]
"GET",
"/resource/HARIBO_Soft_Barchen.bmp",
"HTTP/1.1",
"Host: foo.bar",
"Connection: Keep-Alive",
"Accept: image/jpeg, image/pjpeg, image/png, image/gif",
"User-Agent: Mozilla/5.0 (compatible; YandexImages/3.0;
+http://yandex.com/bots)",
"From: support at search.yandex.ru",
"x-real-forwarded-for: 95.108.158.243",
"X-Forwarded-For: 95.108.158.243",
},
worker = 0x7f5e878e8e10 {
ws = 0x7f5e878e8fb0 {
id = "wrk",
{s,f,r,e} = {0x7f5e878d6d20,+3248,(nil),+65536},
},
http[resp] = {
ws = 0x7f5e878e8fb0[wrk]
"HTTP/1.1",
"200",
"OK",
"Server: Apache",
"Cache-Control: PUBLIC, max-age=0, must-revalidate",
"Last-Modified: Thu, 13 Jan 2011 00:02:57 GMT",
"Expires: Thu, 01 Jan 1970 00:00:00 GMT",
"Content-Type: image/bmp",
"Vary: Accept-Encoding",
"Transfer-Encoding: chunked",
"Date: Fri, 15 Apr 2011 09:05:06 GMT",
"X-Varnish: 1697784078",
"Age: 0",
"Connection: keep-alive",
"X-Cache: MISS",
"Via: foo.bar_varnishic06",
},
},
vcl = {
srcname = {
"input",
"Default",
"/exp/config/varnish/foo.bar/backends_foo.bar.vcl",
},
},
obj = 0x7f5b96514000 {
xid = 1697784078,
ws = 0x7f5b96514018 {
id = "obj",
{s,f,r,e} = {0x7f5b96514270,+424,(nil),+448},
},
http[obj] = {
ws = 0x7f5b96514018[obj]
"HTTP/1.1",
"OK",
"Date: Fri, 15 Apr 2011 09:05:06 GMT",
"Server: Apache",
"Cache-Control: PUBLIC, max-age=0, must-revalidate",
"Last-Modified: Thu, 13 Jan 2011 00:02:57 GMT",
"Expires: Thu, 01 Jan 1970 00:00:00 GMT",
"Content-Encoding: gzip",
"Content-Type: image/bmp",
"x-url: /resource/HARIBO_Soft_Barchen.bmp",
"x-host: foo.bar",
"Vary: Accept-Encoding",
"Content-Length: 333104",
},
len = 333104,
store = {
131072 {
1f 8b 08 00 00 00 00 00 00 03 a4 fd 07 74 1c 57 |.............t.W|
9a 26 0a f6 bc 73 76 76 76 de 6c f7 6b 5f 5d b6 |.&...svvv.l.k_].|
ab aa 4d a9 54 92 4a 86 de 93 f0 de 7b 8f cc 84 |..M.T.J.....{...|
4f 00 99 48 78 ef bd f7 de 7b 0f 10 00 09 7a 6f |O..Hx....{....zo|
[131008 more]
},
131072 {
a7 cf 85 e4 43 b0 95 83 b6 09 7b d8 b7 21 c6 3d |....C.....{..!.=|
a7 ff c3 85 8a 7c 55 55 ff 1c f8 d4 f6 3b c0 81 |.....|UU.....;..|
f4 f7 00 59 3a 68 95 cd 52 cc a6 29 a0 16 f7 28 |...Y:h..R..)...(|
87 e4 4e 50 21 84 b2 61 94 8f d8 d4 9b 67 43 42 |..NP!..a.....gCB|
[131008 more]
},
70960 {
ad 52 b7 6b f2 d0 26 f8 4f 74 a7 18 0d 2f ca b4 |.R.k..&.Ot.../..|
6c 94 42 f6 3c 5d 9e bd 4b 06 ee 78 a3 76 e6 84 |l.B.<]..K..x.v..|
c4 91 0f 58 b2 58 53 52 20 27 b1 25 3f 1e 0c 1f |...X.XSR '.%?...|
ae 4e 7d 42 5b 61 72 87 01 e2 91 86 64 6f fa 3e |.N}B[ar.....do.>|
[70896 more]
},
},
},
},
}}}
--
Ticket URL: <http://varnish-cache.org/trac/ticket/904>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list