Subject: [sup-talk] NoMethodError from thread

From: [email-masked] (Caspar Clemens Mierau)
Date: Fri, 4 Apr 2008 11:52:56 +0200

sup 0.4 (on debian etch, installed as gem) crashed with the following
stack

--- NoMethodError from thread: poll after loading inbox
undefined method `find_all' for nil:NilClass
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:191:in `fetch'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:135:in `unsynchronized_scan_mailbox'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:105:in `unsynchronized_raw_header'
(eval):3:in `raw_header'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
(eval):3:in `raw_header'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:93:in `load_header'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `send'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `__pass'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:523:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/message.rb:62:in `initialize'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:151:in `new'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:151:in `add_messages_from'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:167:in `each'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:155:in `upto'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/imap.rb:155:in `each'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `send'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:534:in `__pass'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:523:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:141:in `add_messages_from'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:98:in `do_poll'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:86:in `each'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:86:in `do_poll'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:85:in `do_poll'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `send'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/poll-mode.rb:17:in `poll'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/poll.rb:53:in `poll'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `send'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/util.rb:497:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.4/bin/sup:199
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:60:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `initialize'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `new'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.4/bin/sup:199
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:492:in `call'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:492:in `__unprotected_load_threads'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:452:in `call'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:452:in `load_n_threads_background'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:60:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `initialize'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `new'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:58:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:450:in `load_n_threads_background'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/modes/thread-index-mode.rb:501:in `__unprotected_load_threads'
(eval):12:in `load_threads'
/var/lib/gems/1.8/gems/sup-0.4/bin/sup:199
/var/lib/gems/1.8/bin/sup:18:in `load'
/var/lib/gems/1.8/bin/sup:18
--- SystemExit from thread: main
undefined method `find_all' for nil:NilClass
/var/lib/gems/1.8/gems/sup-0.4/lib/sup.rb:64:in `select'
/var/lib/gems/1.8/gems/sup-0.4/lib/sup/buffer.rb:31:in `nonblocking_getch'
/var/lib/gems/1.8/gems/sup-0.4/bin/sup:212
/var/lib/gems/1.8/bin/sup:18:in `load'
/var/lib/gems/1.8/bin/sup:18

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080404/a9853500/attachment.bin