Mailing List Archive

#1749: Assert error in HTTP_Encode
#1749: Assert error in HTTP_Encode
--------------------------+----------------------
Reporter: llavaud | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: trunk | Severity: major
Keywords: Assert error |
--------------------------+----------------------
{{{
Jun 6 08:46:19 webcache15 varnishd[278087]: Child (278106) Panic message:
Assert error in HTTP_Encode(), cache/cache_http.c line 822:
Condition(fm->nhd < fm->shd) not true.
thread = (cache-worker)
version = varnish-trunk revision cbb2f5d
ident = Linux,3.2.0-4-amd64,x86_64,-sfile,-smalloc,-hcritbit,epoll
Backtrace:
0x434564: pan_ic+0x134
0x42db4d: HTTP_Encode+0x5fd
0x422585: vbf_beresp2obj+0x275
0x4237ac: vbf_fetch_thread+0x5bc
0x436d77: Pool_Work_Thread+0x357
0x449c03: WRK_Thread+0x103
0x435afb: pool_thread+0x2b
0x7f74f1cedb50: /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50)
[0x7f74f1cedb50]
0x7f74f1a3795d: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)
[0x7f74f1a3795d]
busyobj = 0x7f5b1e913020 {
ws = 0x7f5b1e9130e0 { OVERFLOW
id = ""o",
{s,f,r,e} = {0x7f5b1e914fa0,+6504,(nil),+254072},
},
refcnt = 2
retries = 0
failed = 0
state = 1
is_do_esi
is_do_gzip
is_uncacheable
is_is_gunzip
bodystatus = 2 (chunked),
filters = ESI_GZIP=0
},
http[bereq] = {
ws = 0x7f5b1e9130e0["o]
"GET",
"myuri",
"HTTP/1.1",
"Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36",
"Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4",
"Host: myhost",
"Surrogate-Capability: abc=ESI/1.0",
"X-Forwarded-For: myip",
"Cookie: xtvrn=$517037$;
lauser_token=9fjJSF7D7hlvZ6kIsGIYfZiCW3XNdNTr7FZ_xhxKtLc; xtan=-; xtant=1;
A2DCAPPV2=6082%3A1433411810%3A980120873;
A2DCAPPVBD2=6082%3A1433411810%3A980120873",
"X-Varnish: 407192649",
},
http[beresp] = {
ws = 0x7f5b1e9130e0["o]
"HTTP/1.1",

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

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1749: Assert error in HTTP_Encode [ In reply to ]
#1749: Assert error in HTTP_Encode
--------------------------+----------------------------------------
Reporter: llavaud | Owner: Poul-Henning Kamp <phk@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: major | Resolution: fixed
Keywords: Assert error |
--------------------------+----------------------------------------
Changes (by Poul-Henning Kamp <phk@…>):

* owner: => Poul-Henning Kamp <phk@…>
* status: new => closed
* resolution: => fixed


Comment:

In [5177b9950ca3ba6c44178cb51e8e2637e7d6d6c7]:
{{{
#!CommitTicketReference repository=""
revision="5177b9950ca3ba6c44178cb51e8e2637e7d6d6c7"
Fix an assert which was (safe) off by one.

Strengthen another assert for increased safety.

Fixes: #1749
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1749#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs