Page 1 of 1

100% CPU - 6.9.0-1 Beta convert - (f56e9710)

Posted: 2014-12-14T18:41:28-07:00
by JodieC
Source file: https://www.dropbox.com/s/07nyi99s7wwivyg/f56e9710?dl=0

To reproduce:

Code: Select all

convert f56e9710 png:/dev/null
Running this on my systems uses 100% CPU and will run for minutes until I kill the process.

BT during the 100%:

Code: Select all

#0  ReadBlobByte (image=0x648010) at magick/blob.c:3008
#1  0x00007ffff795f238 in PNMInteger (base=<optimized out>, image=<optimized out>) at coders/pnm.c:197
#2  ReadPNMImage (image_info=0x60f050, exception=0x605990) at coders/pnm.c:487
#3  0x00007ffff6ebf78a in ReadImage (image_info=image_info@entry=0x609ea0, exception=exception@entry=0x605990)
    at magick/constitute.c:547
#4  0x00007ffff6ec311b in ReadImages (image_info=0x609ea0, exception=0x605990) at magick/constitute.c:853
#5  0x00007ffff66dc8d2 in ConvertImageCommand (image_info=0x609ea0, argc=3, argv=0x604490, metadata=0x0, exception=0x605990)
    at wand/convert.c:622
#6  0x00007ffff68d3a7e in MagickCommandGenesis (image_info=0x605b10, command=0x400a30 <ConvertImageCommand@plt>, argc=3, 
    argv=0x7fffffffdbe8, metadata=<optimized out>, exception=0x605990) at wand/mogrify.c:168
#7  0x0000000000400b9f in ConvertMain (argv=0x7fffffffdbe8, argc=3) at utilities/convert.c:81
#8  main (argc=3, argv=0x7fffffffdbe8) at utilities/convert.c:92
#9  0x00007ffff6039ec5 in __libc_start_main (main=0x400b20 <main>, argc=3, argv=0x7fffffffdbe8, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdbd8) at libc-start.c:287
#10 0x0000000000400bf3 in _start ()
System Details:
AMD64
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

Software: ImageMagick 6.9.0-1 Beta compiled from source.

(Does not occur on 6.7.7.10-6ubuntu )
Found with American Fuzzy Lop ( http://lcamtuf.coredump.cx/afl/ )

Re: 100% CPU - 6.9.0-1 Beta convert - (f56e9710)

Posted: 2014-12-14T19:04:37-07:00
by glennrp
identify also hangs in the PNM ("P1") reader while attempting to decode this file.

Re: 100% CPU - 6.9.0-1 Beta convert - (f56e9710)

Posted: 2014-12-15T04:13:56-07:00
by magick
Try now. We were working on the PNM module yesterday and our work is now complete.

Re: 100% CPU - 6.9.0-1 Beta convert - (f56e9710)

Posted: 2014-12-15T19:19:40-07:00
by JodieC
Tested 12/15/2014 with http://www.imagemagick.org/download/bet ... 215.tar.gz Result: Fail

Re: 100% CPU - 6.9.0-1 Beta convert - (f56e9710)

Posted: 2014-12-18T01:33:37-07:00
by dlemstra
Can you try with a newer beta or a svn checkout? I am getting the following output:

Code: Select all

D:\Images\Fuzz>convert f56e9710 f56e9710.png
convert.exe: Negative or zero image size `f56e9710' @ error/pnm.c/ReadPNMImage/417.
convert.exe: no images defined `f56e9710.png' @ error/convert.c/ConvertImageCommand/3210.

Re: 100% CPU - 6.9.0-1 Beta convert - (f56e9710)

Posted: 2014-12-18T05:21:50-07:00
by JodieC