Forum: Ruby (no subject)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0408ea0f357ac2345b0e56f8066b814f?d=identicon&s=25 Dominic Marks (Guest)
on 2006-02-10 17:10
(Received via mailing list)
--
require 'net/imap'

imap = Net::IMAP.new('localhost', 993, true)
imap.authenticate('LOGIN','dom','mypassword')
imap.examine('INBOX')
imap.search(['SINCE','01-Jan-2000']).each do |msg_id|
  puts msg_id
  imap.fetch(msg_id, 'ENVELOPE')[0].attr['ENVELOPE']
end
--

This code will cause Ruby to core dump with a bus error after a number
of fetches. The number is not constant. Garbage collector acting up, or
am I at fault?

Cheers,
--
Dominic Marks
IT Manager, GDC
3rd Floor
69 Wilson Street
London EC2A 2BB

dominic.marks@graphdata.co.uk
www.graphdata.co.uk
Re:
F3b7b8756d0c7f71cc7460cc33aefaee?d=identicon&s=25 Daniel Berger (Guest)
on 2006-02-10 17:41
(Received via mailing list)
Dominic Marks wrote:
> --
>
> This code will cause Ruby to core dump with a bus error after a number
> of fetches. The number is not constant. Garbage collector acting up, or
> am I at fault?

No, it's a bug, either in one of the included packages (socket, monitor,
digest/md5 or openssl) or a bug in Ruby itself.  If I were a betting
man, I'd
bet on monitor (synchronize), but that's a guess.

Which version of Ruby, btw?  The Changelog indicates that there were a
few
touchups since 1.8.2.

Regards,

Dan
This topic is locked and can not be replied to.