Bug 505740

Summary: ImageMagick convert segfault
Product: [Fedora] Fedora Reporter: Nickolay Bunev <just4nick>
Component: ImageMagickAssignee: Hans de Goede <hdegoede>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: danken, gort.klaatu, hdegoede, nmurray, pahan, sassmann
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-15 13:17:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
strace convert output
none
test jpg file
none
test jpg file 2 none

Description Nickolay Bunev 2009-06-13 10:54:02 UTC
Created attachment 347728 [details]
strace convert output

Description of problem:

convert segfault when trying to convert more than one jpg file to pdf.There is no problem when converting only one image to pdf.

Version-Release number of selected component (if applicable):

convert --version
Version: ImageMagick 6.5.1-2 2009-04-13 Q16 OpenMP http://www.imagemagick.org

Nick@Atlantis:[Sat Jun 13 13:39:29]:[~/Download/pdf]$ rpm -qa | grep ImageMagick
ImageMagick-debuginfo-6.5.1.2-1.fc11.x86_64
ImageMagick-perl-6.5.1.2-1.fc11.x86_64
ImageMagick-devel-6.5.1.2-1.fc11.x86_64
ImageMagick-6.5.1.2-1.fc11.x86_64
ImageMagick-c++-6.5.1.2-1.fc11.x86_64
ImageMagick-c++-devel-6.5.1.2-1.fc11.x86_64


How reproducible:
Everytime, when trying to convert more than one image. 

Steps to Reproduce:
1. convert *.jpg allinone.pdf
  
Actual results:

Segmentation fault and one corrupted pdf file.

Expected results:

A pdf file with one image per page.

Additional info:

convert is working as expected on Fedora 10 (x86_64), with:
convert --version
Version: ImageMagick 6.4.0 07/27/08 Q16 http://www.imagemagick.org


(gdb) run *.jpg to.pdf
Starting program: /usr/bin/convert *.jpg to.pdf
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000003e0f8dea63 in CloneImage (image=0x61fc80, columns=0, rows=0, orphan=MagickFalse, exception=0x622ef8) at magick/image.c:1129
1129            clone_image->next->previous=clone_image;
Current language:  auto; currently minimal
(gdb)

Comment 1 Nickolay Bunev 2009-06-13 10:55:06 UTC
Created attachment 347729 [details]
test jpg file

Comment 2 Nickolay Bunev 2009-06-13 10:55:31 UTC
Created attachment 347730 [details]
test jpg file 2

Comment 3 Hans de Goede 2009-06-15 13:17:28 UTC
I've just build 6.5.3.7 for rawhide / F-12 development, and that fixes this. Unfortunately I cannot do an F-11 update with this version in as the ABI is changed.

Comment 4 Pavel Alexeev 2009-06-15 13:21:06 UTC
Hans de Goede, I'm also make this update...

But shouldn't me inspire dependency-rebuild on this case? Segfault is critical bug, and closing this bug do not care reported problem, as I understood...

Comment 5 Hans de Goede 2009-06-15 13:25:11 UTC
(In reply to comment #4)
> Hans de Goede, I'm also make this update...
> 
> But shouldn't me inspire dependency-rebuild on this case? Segfault is critical
> bug, and closing this bug do not care reported problem, as I understood...  

This is a bug which almost no-one will hit, so it is not critically enough
to force a rebuild of all packages depending on ImageMagick.

Comment 6 Pavel Alexeev 2009-06-23 18:30:51 UTC
*** Bug 507661 has been marked as a duplicate of this bug. ***

Comment 7 Pavel Alexeev 2009-06-29 15:37:37 UTC
*** Bug 508690 has been marked as a duplicate of this bug. ***

Comment 8 Pavel Alexeev 2009-10-17 19:15:47 UTC
*** Bug 529481 has been marked as a duplicate of this bug. ***