That doesn't crash in irb until I ^C the loop and type in 'exit'

Running this as a script with ruby does make it crash, though:

<--------->
require 'cairo'
require 'stringio'

i = 0;
1000.times do
 output = StringIO.new
 surface = Cairo::PDFSurface.new(output, 100, 100)
 context = Cairo::Context.new(surface)
 i += 1;
 puts "***************** #{i} *********" if i%100 == 0;
end
<--------->
results in: 
testcase.rb:5: [BUG] object allocation during garbage collection phase
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

where line 5 is the "1000.times do" command

-- 
[BUG] object allocation during garbage collection phase
https://bugs.launchpad.net/bugs/293464
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to