[DRE-maint] Bug#519755: libcairo-ruby1.8: [BUG] object allocation during garbage collection phase

Lucas Nussbaum lucas at lucas-nussbaum.net
Sat Mar 14 21:26:43 UTC 2009

Package: libcairo-ruby1.8
Version: 1.5.1-1+lenny1
Severity: serious


It seems that the fix to bug #487204 is incomplete. The following script

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;

It crashes with lenny's version (1.5.1-1+lenny1), but doesn't crash
with unstable's version (1.6.3-1).

It was first reported and discussed on Launchpad (Ubuntu Intrepid is
affected): https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/293464

- Lucas

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (700, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-rc7-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libcairo-ruby1.8 depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libcairo2                     1.8.6-2    The Cairo 2D vector graphics libra
ii  libruby1.8           Libraries necessary to run Ruby 1.
ii  ruby1.8              Interpreter of object-oriented scr

libcairo-ruby1.8 recommends no packages.

libcairo-ruby1.8 suggests no packages.

-- no debconf information

More information about the Pkg-ruby-extras-maintainers mailing list