Mailing List Archive

#1839: sml_iterator(), storage/storage_simple.c line 271
#1839: sml_iterator(), storage/storage_simple.c line 271
----------------------+-------------------
Reporter: lkarsten | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Keywords:
----------------------+-------------------
Built and deployed master earlier today:

{{{
Panic at: Tue, 12 Jan 2016 12:35:54 GMT
"Assert error in sml_iterator(), storage/storage_simple.c line 271:
Condition((((&obj->list)->vtqh_first == ((void *)0))) == 0) not true.
thread = (cache-worker)
version = varnish-trunk revision 7f6f2c5
ident =
Linux,3.16.0-4-amd64,x86_64,-junix,-smalloc,-smalloc,-hcritbit,epoll
Backtrace:
0x43a3e1: pan_backtrace+0x1d
0x43a7e6: pan_ic+0x2bc
0x47aed8: sml_iterator+0x1d5
0x437d21: ObjIterate+0xf6
0x41c5da: VDP_DeliverObj+0x8a
0x45be43: V1D_Deliver+0x43c
0x43d694: cnt_vdp+0x360
0x43dd58: cnt_deliver+0x6c2
0x44092e: CNT_Request+0x4c6
0x45d95b: HTTP1_Session+0x765
req = 0x7f1b2ca2f020 {
vxid = 983123, step = R_STP_DELIVER,
req_body = R_BODY_NONE,
restarts = 0, esi_level = 0,
sp = 0x7f1b2c411220 {
fd = 14, vxid = 983122,
client = 77.88.102.50 55101,
step = S_STP_H1PROC,
},
worker = 0x7f1b400f7c90 {
stack = {0x7f1b400f8000 -> 0x7f1b400ec000},
ws = 0x7f1b400f7e78 {
id = \"wrk\",
{s,f,r,e} = {0x7f1b400f7450,0x7f1b400f7450,(nil),+2040},
},
VCL::method = DELIVER,
VCL::return = deliver,
VCL::methods = {RECV, HASH, MISS, DELIVER},
},
ws = 0x7f1b2ca2f200 {
id = \"req\",
{s,f,r,e} = {0x7f1b2ca31000,+760,+57336,+57336},
},
http_conn = 0x7f1b2ca2f128 {
fd = 14,
doclose = NULL,
ws = 0x7f1b2ca2f200,
{rxbuf_b, rxbuf_e} = {0x7f1b2ca31020, 0x7f1b2ca311f8},
{pipeline_b, pipeline_e} = {(nil), (nil)},
content_length = -1,
body_status = none,
first_byte_timeout = 0.000000,
between_bytes_timeout = 0.000000,
},
http[req] = 0x7f1b2ca2f298 {
ws[req] = 0x7f1b2ca2f200,
hdrs {
\"GET\",
\"/racing/xp38-nor15038-xpronto.html\",
\"HTTP/1.1\",
\"Connection: keep-alive\",
\"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 (Windows NT 10.0; WOW64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106
Safari/537.36\",
\"Referer: https://www.google.no/\",
\"Accept-Language: nb-NO,nb;q=0.8,no;q=0.6,nn;q=0.4,en-
US;q=0.2,en;q=0.2\",
\"X-Forwarded-For: 77.88.102.50\",
\"host: hyse.org\",
\"Accept-Encoding: gzip\",
},
},
http[resp] = 0x7f1b2ca2fb88 {
ws[req] = 0x7f1b2ca2f200,
hdrs {
\"HTTP/1.1\",
\"200\",
\"OK\",
\"Server: nginx/1.6.2\",
\"Date: Tue, 12 Jan 2016 12:35:53 GMT\",
\"Content-Type: text/html\",
\"Last-Modified: Sun, 20 Dec 2015 13:57:03 GMT\",
\"Content-Encoding: gzip\",
\"Vary: Accept-Encoding\",
\"X-Varnish: 983123\",
\"Age: 0\",
\"Via: 1.1 varnish-v4\",
\"Accept-Ranges: bytes\",
\"Transfer-Encoding: chunked\",
\"Connection: keep-alive\",
},
},
vcl = {
temp = warm
srcname = {
\"/etc/varnish/default.vcl\",
\"Builtin\",
},
},
objcore[REQ] = 0x7f1b3501f340 {
refcnt = 3,
flags = 0x8,
exp_flags = 0x1000,
exp = { 1452602153.744026, 120.000000, 60.000000, 86400.000000 }
objhead = 0x7f1b35021240,
stevedore = 0x7f1b3dcee240 (malloc s0),
},
busyobj = 0x7f1b2d5a6020 {
ws = 0x7f1b2d5a60e0 {
id = \"bo\",
{s,f,r,e} = {0x7f1b2d5a7fa0,+2176,(nil),+57432},
},
refcnt = 3,
retries = 0, failed = 0, state = 2,
flags = {do_stream, is_gzip},
filters = TESTGUNZIP=1 V1F_CHUNKED=1
director_req = 0x7f1b3dd31ab8 {
vcl_name = nginx,
type = backend {
display_name = boot.nginx,
ipv4 = 127.0.0.1,
port = 8085,
hosthdr = 127.0.0.1,
health=healthy, admin_health=probe, changed=1452595190.7,
n_conn = 2,
},
},
director_resp = director_req,
http[bereq] = 0x7f1b2d5a66b0 {
ws[bo] = 0x7f1b2d5a60e0,
hdrs {
\"GET\",
\"/racing/xp38-nor15038-xpronto.html\",
\"HTTP/1.1\",
\"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 (Windows NT 10.0; WOW64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106
Safari/537.36\",
\"Referer: https://www.google.no/\",
\"Accept-Language: nb-NO,nb;q=0.8,no;q=0.6,nn;q=0.4,en-
US;q=0.2,en;q=0.2\",
\"X-Forwarded-For: 77.88.102.50\",
\"host: hyse.org\",
\"Accept-Encoding: gzip\",
\"X-Varnish: 983124\",
},
},
http[beresp] = 0x7f1b2d5a6b28 {
ws[bo] = 0x7f1b2d5a60e0,
hdrs {
\"HTTP/1.1\",
\"200\",
\"OK\",
\"Server: nginx/1.6.2\",
\"Date: Tue, 12 Jan 2016 12:35:53 GMT\",
\"Content-Type: text/html\",
\"Last-Modified: Sun, 20 Dec 2015 13:57:03 GMT\",
\"Transfer-Encoding: chunked\",
\"Connection: keep-alive\",
\"Content-Encoding: gzip\",
\"Vary: Accept-Encoding\",
},
},
objcore[fetch] = 0x7f1b3501f340 {
refcnt = 3,
flags = 0x8,
exp_flags = 0x1000,
exp = { 1452602153.744026, 120.000000, 60.000000, 86400.000000 }
objhead = 0x7f1b35021240,
stevedore = 0x7f1b3dcee240 (malloc s0),
},
vcl = {
temp = warm
srcname = {
\"/etc/varnish/default.vcl\",
\"Builtin\",
},
},
},
flags = {
},
},
}}}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1839>
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: #1839: sml_iterator(), storage/storage_simple.c line 271 [ In reply to ]
#1839: sml_iterator(), storage/storage_simple.c line 271
----------------------+----------------------------------------
Reporter: lkarsten | Owner: Poul-Henning Kamp <phk@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution: fixed
Keywords: |
----------------------+----------------------------------------
Changes (by Poul-Henning Kamp <phk@…>):

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


Comment:

In [5d04b20099d30407ee3f8f885b6bcbfd7145544d]:
{{{
#!CommitTicketReference repository=""
revision="5d04b20099d30407ee3f8f885b6bcbfd7145544d"
This is sort of embarrasing: I forgot to lock the busyobj when
changing the storage list.

Fixes: #1839
}}}

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