Subject: [sup-talk] crash while sup is sitting idle

From: [email-masked] (Michael Gurski)
Date: Fri, 28 Mar 2008 23:03:56 -0400

After a 28+ hour sup-sync -a -o, on git head, sup sitting idle crashed
with the following error:

--- Ferret::StateError from thread: load threads for thread-index-mode
State Error occured at <except.c>:93 in xraise
Error occured in index.c:4150 - sr_get_lazy_doc
        Document 69 has already been deleted

/var/lib/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:421:in `[]'
/var/lib/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:421:in `[]'
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
/var/lib/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:413:in `[]'
./lib/sup/index.rb:228:in `each_id_by_date'
./lib/sup/index.rb:228:in `each'
./lib/sup/index.rb:228:in `each_id_by_date'
./lib/sup/thread.rb:326:in `load_n_threads'
./lib/sup/modes/thread-index-mode.rb:507:in
`__unprotected_load_n_threads'
(eval):12:in `load_n_threads'
./lib/sup/modes/thread-index-mode.rb:491:in
`load_n_threads_background'
./lib/sup.rb:60:in `reporting_thread'
./lib/sup.rb:58:in `initialize'
./lib/sup.rb:58:in `new'
./lib/sup.rb:58:in `reporting_thread'
./lib/sup/modes/thread-index-mode.rb:490:in
`load_n_threads_background'
./lib/sup/modes/thread-index-mode.rb:560:in
`__unprotected_load_threads'
(eval):12:in `load_threads'
./lib/sup/modes/thread-index-mode.rb:70:in `initialize'
./lib/sup/modes/line-cursor-mode.rb:177:in `call'
./lib/sup/modes/line-cursor-mode.rb:177:in `call_load_more_callbacks'
./lib/sup/modes/line-cursor-mode.rb:177:in `each'
./lib/sup/modes/line-cursor-mode.rb:177:in `call_load_more_callbacks'
./lib/sup/modes/line-cursor-mode.rb:80:in `cursor_down'
./lib/sup/mode.rb:49:in `send'
./lib/sup/mode.rb:49:in `handle_input'
./lib/sup/buffer.rb:231:in `handle_input'
bin/sup:223
--- SystemExit from thread: main
State Error occured at <except.c>:93 in xraise
Error occured in index.c:4150 - sr_get_lazy_doc
        Document 69 has already been deleted

./lib/sup.rb:64:in `select'
./lib/sup/buffer.rb:31:in `nonblocking_getch'
bin/sup:217

-- 
Michael A. Gurski (opt. [first].)[last]@pobox.com  http://www.pobox.com/~[last]
1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7  17 57 1E 4E 62 56 45 70
1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB  AD81 ADC9 E606 1166 213E
4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042  7788 1DCE B5EE C0B4 F04B
Views expressed by the host do not reflect the staff, management or sponsors.

---

From: [email-masked] (William Morgan)
Date: Tue, 01 Apr 2008 08:35:23 -0700

>         Document 69 has already been deleted

Scary Ferret error. Any weird circumstances, like running out of disk
space? Does this happen consistently?

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Michael Gurski)
Date: Tue, 01 Apr 2008 12:52:53 -0400

> space? Does this happen consistently?

13G free on that partition, quite a bit of memory free as well, both
real and swap.  I can more or less get it to happen consistently if I
try to load 4+ pages of unread messages at a time.  It might be more
needed now, as it's been several days since I've tried it.

---

From: [email-masked] (William Morgan)
Date: Tue, 01 Apr 2008 10:13:23 -0700

> needed now, as it's been several days since I've tried it.

And which git branch, master or next?

---

From: [email-masked] (Michael Gurski)
Date: Tue, 01 Apr 2008 15:50:40 -0400

> And which git branch, master or next?

master

---

From: [email-masked] (Christopher Warrington)
Date: Tue, 1 Apr 2008 15:03:08 -0500

William Morgan @ 2008-4-01 10:35:23 AM
"[sup-talk] crash while sup is sitting idle" <mid:1207064087-sup-7567 at south>

> Scary Ferret error. Any weird circumstances, like running out of
> disk space? Does this happen consistently?

I've had this too. A Index.index.optimize seems to fix it.

-- 
Christopher Warrington <chrisw at rice.edu>

Minds are like parachutes: they only function when open.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080401/1028bd6a/attachment.bin

---

From: [email-masked] (William Morgan)
Date: Wed, 02 Apr 2008 18:43:26 -0700

> I've had this too. A Index.index.optimize seems to fix it.

Hm. I think I need to wrap a mutex around all Ferret access.