convert crashed with SIGSEGV in CloneImage()

Bug #455740 reported by Brian Murray
104
This bug affects 18 people
Affects Status Importance Assigned to Milestone
imagemagick (Debian)
Fix Released
Unknown
imagemagick (Ubuntu)
Fix Released
Medium
Canonical Desktop Team
Nominated for Karmic by Alexis de Lattre

Bug Description

Binary package hint: imagemagick

When trying to convert multiple jpegs into a pdf I receive the following crash report. Note that it is possible to convert each individual image into a pdf.

ProblemType: Crash
Architecture: amd64
Date: Mon Oct 19 12:32:01 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/convert
Package: imagemagick 7:6.5.1.0-1.1ubuntu3
ProcCmdline: convert Image004.jpg Lcpl\ Valdez,\ Lcpl\ Akens,\ Lcpl\ Woodburn,\ Lcpl\ Frazier,\ Lcpl\ Rodriguez.jpg tmp.pdf
ProcEnviron:
 PATH=(custom, user)
 SHELL=/bin/zsh
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.47-generic
SegvAnalysis:
 Segfault happened at: 0x7f2d91880fa3 <CloneImage+691>: mov %rbp,0x3320(%rax)
 PC (0x7f2d91880fa3) ok
 source "%rbp" ok
 destination "0x3320(%rax)" (0x00003320) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: imagemagick
StacktraceTop:
 CloneImage () from /usr/lib/libMagickCore.so.2
 InjectImageBlob () from /usr/lib/libMagickCore.so.2
 ?? ()
 WriteImage () from /usr/lib/libMagickCore.so.2
 WriteImages () from /usr/lib/libMagickCore.so.2
Title: convert crashed with SIGSEGV in CloneImage()
Uname: Linux 2.6.31-14-generic x86_64
UserGroups: adm admin audio cdrom dialout dip family floppy fuse libvirtd lpadmin plugdev pulse pulse-access sambashare sbuild scanner video

Revision history for this message
Brian Murray (brian-murray) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:CloneImage (image=0xe3d690, columns=0, rows=0,
InjectImageBlob (image_info=0xe54450,
WritePDFImage (image_info=<value optimized out>,
WriteImage (image_info=0xe2f3d0, image=0xe3d690)
WriteImages (image_info=<value optimized out>,

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in imagemagick (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
visibility: private → public
Changed in imagemagick (Ubuntu):
status: New → Triaged
Changed in imagemagick (Debian):
status: Unknown → Fix Released
Revision history for this message
Stinger (e-mindahl) wrote :

Bug #424249 seem to be a duplicate of this one aswell.

tags: added: regression-release
Changed in imagemagick (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
eMaX (mnott) wrote :

Exact same problem here. See attachment. Plz provide details on how to downgrade image magick.

M

Revision history for this message
Martin Pitt (pitti) wrote :

This version was merged to lucid, so this should be fixed in lucid:

imagemagick | 7:6.5.5.3-1ubuntu1 | lucid | source, amd64, i386

Changed in imagemagick (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Alexis de Lattre (alexis-via) wrote :

Great news !

Could we have the fix in Karmic also ?

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 455740] Re: convert crashed with SIGSEGV in CloneImage()

sixela [2009-11-15 20:09 -0000]:
> Could we have the fix in Karmic also ?

If someone wants to prepare a patch and drive the SRU, it's
appropriate for an SRU.

Revision history for this message
Alexis de Lattre (alexis-via) wrote :

Here are the results of my morning tests :

1) on a standard Karmic box with imagemagick+perlmagick+libmagickcore2+libmagickwand2 in version 7:6.5.1.0-1.1ubuntu3 :
- it do get a segfault when I convert multiple JPG in PDF,
- I can't save PDFs in gscan2pdf, cf my bug #424249 which is currently marked as a duplicate of this one.

2) then, I upgrade this karmic box with the packages imagemagick+perlmagick+libmagickcore2+libmagickwand2 in version 7:6.5.5.3-1ubuntu1 as available in Lucid :
- I don't get the segfault when I convert multiple JPG in PDF any more, so the present bug is fixed,
- I still can't save PDFs in gscan2pdf, so the bug #424249 is still present !

So :
- I confirm that the current bug is fixed in Lucid,
- bug #424249 is NOT a duplicate of the current bug and is still present with the updated imagemagick packages of Lucid
- the workaround of bug #424249 is still to downgrade the perlmagick package to jaunty's version.

Revision history for this message
Alastair Carey (alastair-carey) wrote :

What's the procedure for upgrading the karmic imagemagick packages to the lucid ones? I assume you can download them from launchpad somewhere, but I can't see where.

Revision history for this message
Alastair Carey (alastair-carey) wrote :

Ok, I see it at http://packages.ubuntu.com/lt/lucid/amd64/imagemagick/download etc. I'm going to try applying those packages and seeing if it fixes my problem (segfault while converting multiple jpgs to pdf).

Revision history for this message
Alastair Carey (alastair-carey) wrote :

Confirmed, problem has gone!

Revision history for this message
Jonathan Ernst (jonathan.ernst) wrote :

It still segfaults when using "-compress jpeg" even with lucid's version here. Anyone can confirm this?

Revision history for this message
Karol Pucyński (kpucynski) wrote :

For me new (lucid version) package is not segfaulting at all (even with '-compres jpeg' mentioned above).

Revision history for this message
Nicola Ferralis (feranick) wrote :

Still present in Karmic: #551484

Revision history for this message
Narcis Garcia (narcisgarcia) wrote :

Upgrading to Lucid's ImageMagick worked for me.

libmagickcore2 7:6.5.7.8-1ubuntu1
libmagickwand2 7:6.5.7.8-1ubuntu1
imagemagick 7:6.5.7.8-1ubuntu1
libmagickcore2-extra 7:6.5.7.8-1ubuntu1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.