[DRE-maint] Bug#557778: Bug#557778: same problem here

Antonio Terceiro terceiro at softwarelivre.org
Wed Dec 9 12:43:54 UTC 2009


----- Forwarded message from Antonio Terceiro <terceiro at softwarelivre.org> -----

Date: Wed, 9 Dec 2009 09:38:11 -0300
From: Antonio Terceiro <terceiro at softwarelivre.org>
To: Vincent Fourmond <fourmond at debian.org>
Cc: Jérémy Lal <jerry at edagames.com>, 557778-subscribe at bugs.debian.org
Subject: Re: [DRE-maint] Bug#557778: same problem here
User-Agent: Mutt/1.5.20 (2009-06-14)

Hello,

Vincent Fourmond escreveu isso aí:
> retitle 557778 Should be less strick checking imagemagick version at run
> time
> severity 557778 serious
> thanks
> 
> Jérémy Lal wrote:
> > In fact, now i have the same problem :
> > 
> > /usr/lib/ruby/1.8/i486-linux/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.5.7 but ImageMagick 6.5.8-3 is in use. (RuntimeError)
> > 
> > Adding version in debian/control dbuild-dependencies fixes the problem :
> > 
> > Build-Depends: debhelper (>= 5), libmagickcore-dev (>= 6.5.8), ruby1.8, ruby1.8-dev, libwmf-bin, ghostscript, gsfonts, cdbs (>= 0.4.33), ruby-pkg-tools (>= 0.13), rdoc, graphviz, quilt, libsetup-ruby1.8 (>= 3.4.1-3), libmagickwand-dev (>= 6.5.8)
> 
>   This problem had shown up before, and it was fixed with a binNMU. The
> trouble is that binNMU should not be needed unless there is a bump in
> the soname, shouldn't it ?

>   This is a pain, but unfortunately, I don't have time to fix that now.
> Antonio, you did the last upload, would you have the time to investigate
> ? In principle, if the Ruby module is only sensitive to changes that
> would warrant a SONAME bump of the imagemgick libraries, the check
> should be disabled altogether; could you please check ?

RMagick itself provides a way of disabling the check: settting
RMAGICK_BYPASS_VERSION_TEST to true before requiring RMagick.so.

I've tested it in up-to-date sid and squeeze boxes by running the
spinned.rb example:

on sid
======

---------------------8<-----------------------8<---------------------------
terceiro at morere:~/tmp (home)$ cat bypass.rb
RMAGICK_BYPASS_VERSION_TEST = true
terceiro at morere:~/tmp (home)$ ruby spinner.rb 
/usr/lib/ruby/1.8/i486-linux/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.5.7 but ImageMagick 6.5.8-3 is in use. (RuntimeError)
  from /usr/lib/ruby/1.8/RMagick.rb:11
  from spinner.rb:4:in `require'
  from spinner.rb:4
terceiro at morere:~/tmp (home)$ ruby -r./bypass spinner.rb 
This example creates an animated GIF that resembles the OS X "waiting" icon.
You can view the GIF with the command

    animate spinner.gif

---------------------8<-----------------------8<---------------------------

(so it worked, the generated image was ok)

on squeeze
==========

---------------------8<-----------------------8<---------------------------
terceiro at testing:~$ cat bypass.rb
RMAGICK_BYPASS_VERSION_TEST = true
terceiro at testing:~$ ruby spinner.rb
/usr/lib/ruby/1.8/i486-linux/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.5.5 but ImageMagick 6.5.7-8 is in use. (RuntimeError)
        from /usr/lib/ruby/1.8/RMagick.rb:11
        from spinner.rb:4:in `require'
        from spinner.rb:4
terceiro at testing:~$ ruby -r./bypass spinner.rb
This example creates an animated GIF that resembles the OS X "waiting" icon.
You can view the GIF with the command

    animate spinner.gif
*** glibc detected *** ruby: malloc(): memory corruption: 0x08990978 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7d12824]
/lib/i686/cmov/libc.so.6[0xb7d152cb]
/lib/i686/cmov/libc.so.6(__libc_malloc+0x5e)[0xb7d1717e]
/usr/lib/libMagickCore.so.2(AcquireMagickMemory+0x26)[0xb7a09476]
/usr/lib/libMagickCore.so.2(AcquireImageInfo+0x23)[0xb79f7073]
/usr/lib/libMagickCore.so.2(CloneImageInfo+0x1c)[0xb79f712c]
/usr/lib/libMagickCore.so.2(GetDrawInfo+0x74)[0xb79a6fc4]
/usr/lib/ruby/1.8/i486-linux/RMagick2.so(DrawOptions_initialize+0x52)[0xb7becaa2]
/usr/lib/ruby/1.8/i486-linux/RMagick2.so(Draw_initialize+0x48)[0xb7becb38]
/usr/lib/libruby1.8.so.1.8[0xb7e99ae5]
/usr/lib/libruby1.8.so.1.8[0xb7ea4c8c]
/usr/lib/libruby1.8.so.1.8[0xb7ea4e20]
/usr/lib/libruby1.8.so.1.8(rb_funcall2+0x6b)[0xb7ea57ab]
/usr/lib/libruby1.8.so.1.8(rb_obj_call_init+0x57)[0xb7ea5857]
/usr/lib/libruby1.8.so.1.8(rb_class_new_instance+0x3a)[0xb7ed5bfa]
/usr/lib/libruby1.8.so.1.8[0xb7e99b00]
/usr/lib/libruby1.8.so.1.8[0xb7ea4c8c]
/usr/lib/libruby1.8.so.1.8[0xb7ea4e20]
/usr/lib/libruby1.8.so.1.8[0xb7e9f671]
/usr/lib/libruby1.8.so.1.8[0xb7ea08fc]
/usr/lib/libruby1.8.so.1.8[0xb7ea330c]
/usr/lib/libruby1.8.so.1.8(rb_yield+0x27)[0xb7eaeb47]
/usr/lib/libruby1.8.so.1.8[0xb7ecea29]
/usr/lib/libruby1.8.so.1.8[0xb7e99ae5]
/usr/lib/libruby1.8.so.1.8[0xb7ea4c8c]
/usr/lib/libruby1.8.so.1.8[0xb7ea4e20]
/usr/lib/libruby1.8.so.1.8[0xb7e9f671]
/usr/lib/libruby1.8.so.1.8[0xb7ea2a59]
/usr/lib/libruby1.8.so.1.8[0xb7eb1267]
/usr/lib/libruby1.8.so.1.8(ruby_exec+0x22)[0xb7eb12b2]
/usr/lib/libruby1.8.so.1.8(ruby_run+0x2f)[0xb7eb12ef]
ruby[0x804871d]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7cbdb55]
ruby[0x8048631]
======= Memory map: ========
08048000-08049000 r-xp 00000000 03:01 186363     /usr/bin/ruby1.8
08049000-0804a000 rw-p 00000000 03:01 186363     /usr/bin/ruby1.8
088e1000-089a4000 rw-p 00000000 00:00 0          [heap]
b7200000-b7221000 rw-p 00000000 00:00 0
b7221000-b7300000 ---p 00000000 00:00 0
b73bf000-b73db000 r-xp 00000000 03:01 171699     /lib/libgcc_s.so.1
b73db000-b73dc000 rw-p 0001c000 03:01 171699     /lib/libgcc_s.so.1
b73e3000-b7528000 r--p 00000000 03:01 197591     /usr/lib/locale/locale-archive
b7528000-b752c000 r-xp 00000000 03:01 180498     /usr/lib/libXdmcp.so.6.0.0
b752c000-b752d000 rw-p 00003000 03:01 180498     /usr/lib/libXdmcp.so.6.0.0
b752d000-b7545000 r-xp 00000000 03:01 180500     /usr/lib/libxcb.so.1.1.0
b7545000-b7546000 rw-p 00017000 03:01 180500     /usr/lib/libxcb.so.1.1.0
b7546000-b7549000 r-xp 00000000 03:01 171762     /lib/libuuid.so.1.3.0
b7549000-b754a000 rw-p 00002000 03:01 171762     /lib/libuuid.so.1.3.0
b754a000-b754c000 r-xp 00000000 03:01 180496     /usr/lib/libXau.so.6.0.0
b754c000-b754d000 rw-p 00001000 03:01 180496     /usr/lib/libXau.so.6.0.0
b754d000-b7570000 r-xp 00000000 03:01 186098     /usr/lib/libexpat.so.1.5.2
b7570000-b7572000 rw-p 00023000 03:01 186098     /usr/lib/libexpat.so.1.5.2
b7572000-b75a1000 r-xp 00000000 03:01 173977     /lib/libpcre.so.3.12.1
b75a1000-b75a2000 rw-p 0002f000 03:01 173977     /lib/libpcre.so.3.12.1
b75a2000-b75a9000 r-xp 00000000 03:01 186309     /usr/lib/libltdl.so.7.2.0
b75a9000-b75aa000 rw-p 00007000 03:01 186309     /usr/lib/libltdl.so.7.2.0
b75aa000-b75b6000 r-xp 00000000 03:01 186300     /usr/lib/libgomp.so.1.0.0
b75b6000-b75b7000 rw-p 0000b000 03:01 186300     /usr/lib/libgomp.so.1.0.0
b75b7000-b75c6000 r-xp 00000000 03:01 171824     /lib/libbz2.so.1.0.4
b75c6000-b75c7000 rw-p 0000f000 03:01 171824     /lib/libbz2.so.1.0.4
b75c7000-b7615000 r-xp 00000000 03:01 186313     /usr/lib/libXt.so.6.0.0
b7615000-b7619000 rw-p 0004d000 03:01 186313     /usr/lib/libXt.so.6.0.0
b7619000-b7732000 r-xp 00000000 03:01 180503     /usr/lib/libX11.so.6.3.0
b7732000-b7736000 rw-p 00118000 03:01 180503     /usr/lib/libX11.so.6.3.0
b7736000-b774b000 r-xp 00000000 03:01 186303     /usr/lib/libICE.so.6.3.0
b774b000-b774c000 rw-p 00014000 03:01 186303     /usr/lib/libICE.so.6.3.0
b774c000-b774e000 rw-p 00000000 00:00 0
b774e000-b7755000 r-xp 00000000 03:01 186311     /usr/lib/libSM.so.6.0.1
b7755000-b7756000 rw-p 00006000 03:01 186311     /usr/lib/libSM.so.6.0.1
b7756000-b7763000 r-xp 00000000 03:01 180505     /usr/lib/libXext.so.6.4.0
b7763000-b7764000 rw-p 0000c000 03:01 180505     /usr/lib/libXext.so.6.4.0
b7764000-b778e000 r-xp 00000000 03:01 186157     /usr/lib/libfontconfig.so.1.3.0
b778e000-b778f000 rw-p 0002a000 03:01 186157     /usr/lib/libfontconfig.so.1.3.0
b778f000-b7845000 r-xp 00000000 03:01 173983     /lib/libglib-2.0.so.0.2200.3
b7845000-b7846000 rw-p 000b6000 03:01 173983     /lib/libglib-2.0.so.0.2200.3
b7846000-b7856000 r-xp 00000000 03:01 186307     /usr/lib/liblqr-1.so.0.3.1
b7856000-b7857000 rw-p 0000f000 03:01 186307     /usr/lib/liblqr-1.so.0.3.1
b7857000-b7876000 r-xp 00000000 03:01 186148     /usr/lib/libjpeg.so.62.0.0
b7876000-b7877000 rw-p 0001e000 03:01 186148     /usr/lib/libjpeg.so.62.0.0
b7877000-b78d0000 r-xp 00000000 03:01 186153     /usr/lib/libtiff.so.4.3.2
b78d0000-b78d2000 rw-p 00059000 03:01 186153     /usr/lib/libtiff.so.4.3.2
b78d2000-b7903000 r-xp 00000000 03:01 186305     /usr/lib/liblcms.so.1.0.18
b7903000-b7905000 rw-p 00030000 03:01 186305     /usr/lib/liblcms.so.1.0.18
b7905000-b7907000 rw-p 00000000 00:00 0
b7907000-b7ad5000 r-xp 00000000 03:01 186315     /usr/lib/libMagickCore.so.2.0.1
b7ad5000-b7b24000 rw-p 001ce000 03:01 186315     /usr/lib/libMagickCore.so.2.0.1
b7b24000-b7b3c000 rw-p 00000000 00:00 0
b7b3c000-b7b50000 r-xp 00000000 03:01 182317     /usr/lib/libz.so.1.2.3.3
b7b50000-b7b51000 rw-p 00013000 03:01 182317     /usr/lib/libz.so.1.2.3.3
b7b51000-b7bc4000 r-xp 00000000 03:01 184066     /usr/lib/libfreetype.so.6.3.22
b7bc4000-b7bc8000 rw-p 00073000 03:01 184066     /usr/lib/libfreetype.so.6.3.22
b7bc8000-b7c1a000 r-xp 00000000 03:01 229824     /usr/lib/ruby/1.8/i486-linux/RMagick2.so
b7c1a000-b7c1c000 rw-p 00051000 03:01 229824     /usr/lib/ruby/1.8/i486-linux/RMagick2.so
b7c1c000-b7ca7000 rw-p 00000000 00:00 0
b7ca7000-b7de8000 r-xp 00000000 03:01 188873     /lib/i686/cmov/libc-2.10.2.so
b7de8000-b7dea000 r--p 00141000 03:01 188873     /lib/i686/cmov/libc-2.10.2.so
b7dea000-b7deb000 rw-p 00143000 03:01 188873     /lib/i686/cmov/libc-2.10.2.so
b7deb000-b7dee000 rw-p 00000000 00:00 0
b7dee000-b7e12000 r-xp 00000000 03:01 188870     /lib/i686/cmov/libm-2.10.2.so
b7e12000-b7e13000 r--p 00023000 03:01 188870     /lib/i686/cmov/libm-2.10.2.so
b7e13000-b7e14000 rw-p 00024000 03:01 188870     /lib/i686/cmov/libm-2.10.2.so
b7e14000-b7e1d000 r-xp 00000000 03:01 188885     /lib/i686/cmov/libcrypt-2.10.2.so
b7e1d000-b7e1e000 r--p 00008000 03:01 188885     /lib/i686/cmov/libcrypt-2.10.2.so
b7e1e000-b7e1f000 rw-p 00009000 03:01 188885     /lib/i686/cmov/libcrypt-2.10.2.so
b7e1f000-b7e46000 rw-p 00000000 00:00 0
b7e46000-b7e48000 r-xp 00000000 03:01 188881     /lib/i686/cmov/libdl-2.10.2.so
b7e48000-b7e49000 r--p 00001000 03:01 188881     /lib/i686/cmov/libdl-2.10.2.so
b7e49000-b7e4a000 rw-p 00002000 03:01 188881     /lib/i686/cmov/libdl-2.10.2.so
b7e4a000-b7e51000 r-xp 00000000 03:01 188869     /lib/i686/cmov/librt-2.10.2.so
b7e51000-b7e52000 r--p 00006000 03:01 188869     /lib/i686/cmov/librt-2.10.2.so
b7e52000-b7e53000 rw-p 00007000 03:01 188869     /lib/i686/cmov/librt-2.10.2.so
b7e53000-b7e54000 rw-p 00000000 00:00 0
b7e54000-b7e69000 r-xp 00000000 03:01 188868     /lib/i686/cmov/libpthread-2.10.2.so
b7e69000-b7e6a000 r--p 00014000 03:01 188868     /lib/i686/cmov/libpthread-2.10.2.so
b7e6a000-b7e6b000 rw-p 00015000 03:01 188868     /lib/i686/cmov/libpthread-2.10.2.so
b7e6b000-b7e6d000 rw-p 00000000 00:00 0
b7e6d000-b7f3a000 r-xp 00000000 03:01 186321     /usr/lib/libruby1.8.so.1.8.7
b7f3a000-b7f3d000 rw-p 000cc000 03:01 186321     /usr/lib/libruby1.8.so.1.8.7
b7f3d000-b7f4d000 rw-p 00000000 00:00 0
b7f53000-b7f56000 rw-p 00000000 00:00 0
b7f56000-b7f57000 r-xp 00000000 00:00 0          [vdso]
b7f57000-b7f73000 r-xp 00000000 03:01 171712     /lib/ld-2.10.2.so
b7f73000-b7f74000 r--p 0001b000 03:01 171712     /lib/ld-2.10.2.so
b7f74000-b7f75000 rw-p 0001c000 03:01 171712     /lib/ld-2.10.2.so
bfa9c000-bfab1000 rw-p 00000000 00:00 0          [stack]
Abortado
---------------------8<-----------------------8<---------------------------

So it seems that on sid disabling the version test was harmless (for the
spinner example, at least), while on squeeze it breaks badly. Rebuilding
the package on the squeeze box made it work.

I'm not sure if it's safe to disable that version check entirely.  OTOH,
I guess that having to do a binNMU every time a new imagemagick is
uploaded is a waste of people's time.

Cheers,

-- 
Antonio Terceiro <terceiro at softwarelivre.org>
http://softwarelivre.org/terceiro





----- End forwarded message -----

-- 
Antonio Terceiro <terceiro at softwarelivre.org>
http://softwarelivre.org/terceiro


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20091209/0bcda6d2/attachment-0003.pgp>


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