Bug 508690

Summary: "convert" segfaults while trying to convert multiple jpeg files to pdf
Product: [Fedora] Fedora Reporter: Stefan Assmann <sassmann>
Component: ImageMagickAssignee: Hans de Goede <hdegoede>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: hdegoede, nmurray, pahan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-29 15:37:36 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:

Description Stefan Assmann 2009-06-29 14:13:11 UTC
Description of problem:
convert file1.jpeg file2.jpeg output.pdf 
The above command segfaults

(gdb) run
Starting program: /usr/bin/convert file1.jpeg file2.jpeg test.pdf
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000003da5edea63 in CloneImage (image=0x61faa0, columns=0, rows=0, orphan=MagickFalse, exception=0x622d18) at magick/image.c:1129
1129            clone_image->next->previous=clone_image;

(gdb) bt
#0  0x0000003da5edea63 in CloneImage (image=0x61faa0, columns=0, rows=0, orphan=MagickFalse, exception=0x622d18) at magick/image.c:1129
#1  0x0000003da5e41152 in InjectImageBlob (image_info=0x6564e0, image=0x61faa0, inject_image=0x61faa0, format=0x7ffff6c5eba8 "jpeg", exception=0x622d18)
    at magick/blob.c:1789
#2  0x00007ffff6c5d547 in WritePDFImage (image_info=<value optimized out>, image=0x61faa0) at coders/pdf.c:1559
#3  0x0000003da5e699a6 in WriteImage (image_info=0x612060, image=0x61faa0) at magick/constitute.c:1168
#4  0x0000003da5e6a120 in WriteImages (image_info=<value optimized out>, images=0x61faa0, filename=<value optimized out>, exception=0x603050)
    at magick/constitute.c:1287
#5  0x0000003da643feb6 in ConvertImageCommand (image_info=<value optimized out>, argc=<value optimized out>, argv=0x6069e0, metadata=<value optimized out>, 
    exception=0x603050) at wand/convert.c:2777
#6  0x0000000000400dab in main (argc=4, argv=0x7fffffffe6a8) at utilities/convert.c:122


Version-Release number of selected component (if applicable):
ImageMagick-6.5.1.2-1.fc11.x86_64

How reproducible:
always

Steps to Reproduce:
1. convert file1.jpeg file2.jpeg output.pdf
2.
3.
  
Actual results:
segfault

Expected results:
no segfault

Additional info:

Comment 1 Pavel Alexeev 2009-06-29 15:37:36 UTC
Thank you for the report.
I think it is duplicate of: https://bugzilla.redhat.com/show_bug.cgi?id=505740
Please reopen, If you think it is another problem.

*** This bug has been marked as a duplicate of bug 505740 ***