Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Bugs

#1077: "Assert error in smp_open_segs" panic with persistent storage

 

 

Varnish bugs RSS feed   Index | Next | Previous | View Threaded


varnish-bugs at varnish-cache

Dec 26, 2011, 8:38 PM

Post #1 of 10 (492 views)
Permalink
#1077: "Assert error in smp_open_segs" panic with persistent storage

#1077: "Assert error in smp_open_segs" panic with persistent storage
-------------------+--------------------------------------------------------
Reporter: acdha | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.2 | Severity: critical
Keywords: |
-------------------+--------------------------------------------------------
Running on Ubuntu 10.04 using the varnish-cache.org repository, I've
noticed two repeated solid crashes using large persistent cache files.

The first sign of a problem will be this message:
{{{
varnishd[27978]: Child (6953) Panic message: Assert error in
smp_oc_getobj(), storage_persistent_silo.c line 400:
Condition((const void*)(o) >= (const void*)((sg->sc)->base) && (const
void*)(o) < (const void *)((sg->sc)->base + (sg->sc)->mediasize)) not
true.
thread = (cache-worker)
ident = Linux,2.6.32-341-ec2,x86_64,-spersistent,-smalloc,-hcritbit,epoll
Backtrace:
0x42f118: /usr/sbin/varnishd() [0x42f118]
0x44c525: /usr/sbin/varnishd() [0x44c525]
0x428986: /usr/sbin/varnishd(HSH_Lookup+0x3a6) [0x428986]
0x415a79: /usr/sbin/varnishd() [0x415a79]
0x419165: /usr/sbin/varnishd(CNT_Session+0x6d5) [0x419165]
0x430aa8: /usr/sbin/varnishd() [0x430aa8]
0x430f31: /usr/sbin/varnishd() [0x430f31]
0x7f4825d909ca: /lib/libpthread.so.0(+0x69ca) [0x7f4825d909ca]
0x7f4825aed70d: /lib/libc.so.6(clone+0x6d) [0x7f4825aed70d]
sp = 0x7f3bc659b008 {
fd = 12, id = 12, xid = 2073042236,
client = 10.210.214.8 34709,
step = STP_LOOKUP,
handling = hash,
err_code = 200, err_reason = (null),
restarts = 0, esi_level = 0
flags =
bodystatus = 4
ws = 0x7f3bc659b080 {
id = "sess",
{s,f,r,e} = {0x7f3bc659bc90,+1152,+65536,+65536},
},
}}}

At this point, varnishd will appear to be running but each child will
immediately fail and no requests will actually be processed:

{{{
varnishd[27978]: Child cleanup complete
varnishd[27978]: child (7670) Started
varnishd[27978]: Pushing vcls failed:
CLI communication error (hdr)
varnishd[27978]: Stopping Child
varnishd[27978]: Child (7670) died signal=6
varnishd[27978]: Child (7670) Panic message: Assert error in
smp_open_segs(), storage_persistent.c line 239:
Condition(sg1->p.offset != sg->p.offset) not true.
thread = (cache-main)
ident =
Linux,2.6.32-341-ec2,x86_64,-spersistent,-smalloc,-hcritbit,no_waiter
Backtrace:
0x42f118: /usr/sbin/varnishd() [0x42f118]
0x44a96d: /usr/sbin/varnishd() [0x44a96d]
0x44aacb: /usr/sbin/varnishd() [0x44aacb]
0x447f57: /usr/sbin/varnishd(STV_open+0x27) [0x447f57]
0x42ddfa: /usr/sbin/varnishd(child_main+0xca) [0x42ddfa]
0x4406ee: /usr/sbin/varnishd() [0x4406ee]
0x441037: /usr/sbin/varnishd() [0x441037]
0x7f4826eb56a2: /usr/lib/varnish/libvarnish.so(+0x96a2) [0x7f4826eb56a2]
0x7f4826eb5cf8: /usr/lib/varnish/libvarnish.so(vev_schedule+0x88)
[0x7f4826eb5cf8]
0x4408d9: /usr/sbin/varnishd(MGT_Run+0x139) [0x4408d9]
}}}

(see https://gist.github.com/1515327 for more logs)

This problem is persistent - I've found two ways to restore Varnish to
service: increasing the persistent cache size or deleting the file so it
can be recreated.

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

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


varnish-bugs at varnish-cache

Jan 2, 2012, 3:20 AM

Post #2 of 10 (470 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+-----------------------------------------------------
Reporter: acdha | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Keywords:
----------------------+-----------------------------------------------------
Changes (by phk):

* owner: => phk


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

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


varnish-bugs at varnish-cache

Jan 30, 2012, 7:53 AM

Post #3 of 10 (431 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+-----------------------------------------------------
Reporter: acdha | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Keywords:
----------------------+-----------------------------------------------------

Comment(by guangnan):

Save problem here. Really annoying that made my live site goes down. =<

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

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


varnish-bugs at varnish-cache

Jan 30, 2012, 7:57 AM

Post #4 of 10 (425 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+-----------------------------------------------------
Reporter: acdha | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Keywords:
----------------------+-----------------------------------------------------

Comment(by guangnan):

BTW, I'm having this problem on a 32bit Fedora with Varnish (varnish-2.1.5
SVN )

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

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


varnish-bugs at varnish-cache

Jan 30, 2012, 7:59 AM

Post #5 of 10 (427 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+-----------------------------------------------------
Reporter: acdha | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Keywords:
----------------------+-----------------------------------------------------

Comment(by guangnan):

{{{
Jan 30 15:38:36 (none) varnishd[11667]: child (11671) Started
Jan 30 15:38:37 (none) varnishd[11667]: Pushing vcls failed: CLI
communication error (hdr)
Jan 30 15:38:37 (none) varnishd[11667]: Child (11671) died signal=6
Jan 30 15:38:37 (none) varnishd[11667]: Child (11671) Panic message:
Assert error in smp_open_segs(), storage_persistent.c line 1026:#012
Condition(sg1->p.offset != sg->p.offset) not true.#012errno = 9 (Bad file
descriptor)#012thread = (cache-main)#012ident =
Linux,3.0.17-linode41,i686,-spersistent,-hcritbit,no_waiter#012Backtrace:#012
0x8070a34: varnishd() [0x8070a34]#012 0x8090818: varnishd()
[0x8090818]#012 0x8091add: varnishd() [0x8091add]#012 0x808ba7c:
varnishd(STV_open+0x1c) [0x808ba7c]#012 0x806f80f:
varnishd(child_main+0xdf) [0x806f80f]#012 0x8081d9c: varnishd()
[0x8081d9c]#012 0x8082722: varnishd(MGT_Run+0x212) [0x8082722]#012
0x80505d4: varnishd(main+0xeb4) [0x80505d4]#012 0xb74a5413:
/lib/libc.so.6(__libc_start_main+0xf3) [0xb74a5413]#012 0x80509b9:
varnishd() [0x80509b9]#012
Jan 30 15:38:37 (none) varnishd[11667]: Child (-1) said
Jan 30 15:38:37 (none) varnishd[11667]: Child (-1) said Child starts

}}}

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

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


varnish-bugs at varnish-cache

Mar 1, 2012, 5:35 AM

Post #6 of 10 (381 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+-----------------------------------------------------
Reporter: acdha | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Keywords:
----------------------+-----------------------------------------------------

Comment(by timbunce):

Same problem here. varnishd (varnish-3.0.2 revision 55e70a4) on CentOS 6.

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

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


varnish-bugs at varnish-cache

Apr 18, 2012, 12:45 PM

Post #7 of 10 (330 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+-----------------------------------------------------
Reporter: acdha | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Keywords:
----------------------+-----------------------------------------------------

Comment(by acdha):

@phk: is there anything we could do to help with debugging? I have enough
redundancy to be able to run a diagnostic build or verify a patch under
load if that would be useful.

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

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


varnish-bugs at varnish-cache

Apr 18, 2012, 12:52 PM

Post #8 of 10 (332 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+-----------------------------------------------------
Reporter: acdha | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Keywords:
----------------------+-----------------------------------------------------

Comment(by eikeon):

@cc

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

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


varnish-bugs at varnish-cache

Oct 29, 2012, 4:22 AM

Post #9 of 10 (204 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+---------------------
Reporter: acdha | Owner: martin
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Resolution:
Keywords: |
----------------------+---------------------
Changes (by phk):

* owner: phk => martin


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

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


varnish-bugs at varnish-cache

Jul 15, 2013, 3:21 AM

Post #10 of 10 (57 views)
Permalink
Re: #1077: "Assert error in smp_open_segs" panic with persistent storage [In reply to]

#1077: "Assert error in smp_open_segs" panic with persistent storage
----------------------+------------------------
Reporter: acdha | Owner: martin
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: critical | Resolution: duplicate
Keywords: |
----------------------+------------------------
Changes (by phk):

* status: new => closed
* resolution: => duplicate


Comment:

Link this over to our catch-all persistent ticket: #1053

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

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

Varnish bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.