# (no subject)

**URL:** <https://www.ruby-forum.com/t/no-subject/65471>\
**Category:** Ruby\
**Created:** [February 10, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/no-subject/65471 "2006-02-10T17:10:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![djwmarks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@djwmarks](https://www.ruby-forum.com/u/djwmarks)\
**Post date:** [February 10, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/no-subject/65471/1 "2006-02-10T17:10:39Z")

</div>

–  
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 M.  
IT Manager, GDC  
3rd Floor  
69 Wilson Street  
London EC2A 2BB

removed\_email\_address@domain.invalid  
[www.graphdata.co.uk](http://www.graphdata.co.uk)

---

<div class="post-metadata">

**Author:** ![djwmarks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@djwmarks](https://www.ruby-forum.com/u/djwmarks)\
**Post date:** [February 10, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/no-subject/65471/2 "2006-02-10T17:41:43Z")

</div>

Dominic M. 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
