Segfault on ruby 1.8.7


I get a SEGFAULT on ruby1.8.7 using the scripts above on Ubuntu 9.10.
It didn’t crashed ruby1.9.1 though.

Loaded symbols for /usr/lib/ruby/1.8/i486-linux/
Core was generated by `/usr/bin/ruby ./massbinder.rb’.
Program terminated with signal 6, Aborted.
#0 0x001a8422 in __kernel_vsyscall ()
(gdb) bt
#0 0x001a8422 in __kernel_vsyscall ()
#1 0x00e514d1 in *__GI_raise (sig=6) at
#2 0x00e54932 in *__GI_abort () at abort.c:92
#3 0x00c5563d in rb_bug (fmt=0xcf764c “Segmentation fault”) at
#4 0x00cc5337 in sigsegv (sig=11) at signal.c:634
#6 0x00c85a4c in rb_f_select (argc=0, argv=0x0, obj=0) at io.c:4933
#7 0x00000000 in ?? ()
(gdb) q

./massbinder.rb:32: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]

Aborted (core dumped)