Mailing List Archive

#1864: Assert error in BAN_CheckObject()
#1864: Assert error in BAN_CheckObject()
-------------------+----------------------
Reporter: batty | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 4.1.1 | Severity: major
Keywords: |
-------------------+----------------------
Upgraded from Varnish 3.0.6 to 4.1.1 late last week on a tier of three
servers. We use BANs quite a bit. On one of the servers in the tier,
we've received this assert twice.

{{{


Last panic at: Thu, 25 Feb 2016 04:06:41 GMT

"Assert error in BAN_CheckObject(), cache/cache_ban.c line 539:

Condition((b) != NULL) not true.

thread = (cache-worker)

version = varnish-4.1.1 revision 66bb824

ident =
Linux,2.6.32-358.23.2.el6.x86_64,x86_64,-junix,-smalloc,-smalloc,-hcritbit,epoll

Backtrace:

0x4328b3: varnishd() [0x4328b3]

0x4163d0: varnishd(BAN_CheckObject+0x320) [0x4163d0]

0x4287b8: varnishd(HSH_Lookup+0x2f8) [0x4287b8]

0x436291: varnishd() [0x436291]

0x436c31: varnishd(CNT_Request+0x3b1) [0x436c31]

0x44dc5b: varnishd(HTTP1_Session+0x11b) [0x44dc5b]

0x439dbd: varnishd(SES_Proto_Req+0x5d) [0x439dbd]

0x448a1d: varnishd() [0x448a1d]

0x448e4b: varnishd() [0x448e4b]

0x7fcb3ed97aa1: libpthread.so.0(+0x7aa1) [0x7fcb3ed97aa1]

req = 0x7fcaee106020 {

vxid = 5064422, step = R_STP_LOOKUP,

req_body = R_BODY_NONE,

restarts = 0, esi_level = 0,

sp = 0x7fcae0e55020 {

fd = 22, vxid = 5064354,

client = xxxxx 48795,

step = S_STP_H1PROC,

},

worker = 0x7fcb272f6bc0 {

stack = {0x7fcb272f7000 -> 0x7fcb272eb000},

ws = 0x7fcb272f6db8 {

id = \"wrk\",

{s,f,r,e} = {0x7fcb272f6380,0x7fcb272f6380,(nil),+2040},

},

VCL::method = HASH,

VCL::return = lookup,

VCL::methods = {RECV, PASS, HASH, MISS, HIT, DELIVER},

},

ws = 0x7fcaee106200 {

id = \"req\",

{s,f,r,e} = {0x7fcaee108000,+1984,+1040376,+1040376},

},

http_conn = 0x7fcaee106128 {

fd = 22,

doclose = NULL,

ws = 0x7fcaee106200,

{rxbuf_b, rxbuf_e} = {0x7fcaee108000, 0x7fcaee10876f},

{pipeline_b, pipeline_e} = {(nil), (nil)},

content_length = -1,

body_status = none,

first_byte_timeout = 0.000000,

between_bytes_timeout = 0.000000,

},

http[req] = 0x7fcaee106298 {

ws[req] = 0x7fcaee106200,

hdrs {

\"GET\",

\"/xxxxx/xxxxx",

\"HTTP/1.1\",

\"User-Agent: xxxx",

\"Accept: */*\",

\"X-Forwarded-For: xxxxx, xxxxx\",

\"host: varnish.xxxxx.com\",

},

},

vcl = {

temp = warm

srcname = {

\"/etc/varnish/default.vcl\",

\"Builtin\",

},

},

flags = {

},

},

}}}

I'm working with our operations team to try to enable core dumps and get a
back trace.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1864>
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: #1864: Assert error in BAN_CheckObject() [ In reply to ]
#1864: Assert error in BAN_CheckObject()
----------------------+--------------------
Reporter: batty | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 4.1.1
Severity: major | Resolution:
Keywords: |
----------------------+--------------------

Comment (by batty):

FYI, this server is in the same tier as the server in [ticket:1863 ticket
1863]. It just received a different ban assert. The errors may (or may
not) be related.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1864#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
Re: #1864: Assert error in BAN_CheckObject() [ In reply to ]
#1864: Assert error in BAN_CheckObject()
----------------------+----------------------------------------
Reporter: batty | Owner: Poul-Henning Kamp <phk@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: 4.1.1
Severity: major | Resolution: fixed
Keywords: |
----------------------+----------------------------------------
Changes (by Poul-Henning Kamp <phk@…>):

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


Comment:

In [c1bc0d8ecee281d585d23173921ee8676421462f]:
{{{
#!CommitTicketReference repository=""
revision="c1bc0d8ecee281d585d23173921ee8676421462f"
Snapshot & refcount the final ban to check, to avoid running of the
ban-list if the lurker washes this OC while we check it.

Mostly diagnosed by: Martin

Fixes: #1864
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1864#comment:2>
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: #1864: Assert error in BAN_CheckObject() [ In reply to ]
#1864: Assert error in BAN_CheckObject()
----------------------+----------------------------------------
Reporter: batty | Owner: Poul-Henning Kamp <phk@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: 4.1.1
Severity: major | Resolution: fixed
Keywords: |
----------------------+----------------------------------------

Comment (by Martin Blix Grydeland <martin@…>):

In [ea9e3aa324e9e491540ddcf846038778f4696613]:
{{{
#!CommitTicketReference repository=""
revision="ea9e3aa324e9e491540ddcf846038778f4696613"
Snapshot & refcount the final ban to check, to avoid running of the
ban-list if the lurker washes this OC while we check it.

Mostly diagnosed by: Martin

Fixes: #1864
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1864#comment:3>
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: #1864: Assert error in BAN_CheckObject() [ In reply to ]
#1864: Assert error in BAN_CheckObject()
----------------------+----------------------------------------
Reporter: batty | Owner: Poul-Henning Kamp <phk@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: 4.1.1
Severity: major | Resolution: fixed
Keywords: |
----------------------+----------------------------------------

Comment (by batty):

Thanks for the quick turnaround on this! Any idea on when the change may
be available in a release?

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1864#comment:4>
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