[DRE-maint] Bug#497191: libgd-ruby1.8: interlace option segfaults on amd64

Antonio Terceiro terceiro at softwarelivre.org
Sat Aug 30 16:58:28 UTC 2008

Package: libgd-ruby1.8
Severity: normal
Tags: patch

When using interlace option, ruby segfaults:

terceiro at boipeba:~$ irb -rGD
>> image = GD::Image.new(100,100)
=> #<GD::Image:0x2b85b01eb9a8>
>> image.interlace = true
(irb):2: [BUG] Segmentation fault
ruby 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux]


This problem was already reported and fixed in Gentoo, cf.

According to the bug report the problem may also affect other 64-bit architectures.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

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

Versions of packages libgd-ruby1.8 depends on:
ii  libc6                  2.7-13            GNU C Library: Shared libraries
ii  libfreetype6           2.3.7-2           FreeType 2 font engine, shared lib
ii  libgd2-xpm             2.0.36~rc1~dfsg-3 GD Graphics Library version 2
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libruby1.8           Libraries necessary to run Ruby 1.
ii  libx11-6               2:1.1.4-2         X11 client-side library
ii  libxpm4                1:3.5.7-1         X11 pixmap library
ii  zlib1g                 1: compression library - runtime

libgd-ruby1.8 recommends no packages.

libgd-ruby1.8 suggests no packages.

-- no debconf information
-------------- next part --------------
--- /home/graaff/playground/ruby-GD-0.7.4/GD.c	2001-05-30 16:14:17.000000000 +0200
+++ GD.c	2007-04-19 08:53:47.000000000 +0200
@@ -1374,6 +1374,7 @@
 static VALUE
 img_set_interlace(img, val)
+    VALUE img, val;
     gdImagePtr im;

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