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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
JodieC
Posts: 82
Joined: 2014-10-03T21:38:50-07:00
Authentication code: 6789

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

Post 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/ )
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post by glennrp »

identify also hangs in the PNM ("P1") reader while attempting to decode this file.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Try now. We were working on the PNM module yesterday and our work is now complete.
JodieC
Posts: 82
Joined: 2014-10-03T21:38:50-07:00
Authentication code: 6789

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

Post by JodieC »

Tested 12/15/2014 with http://www.imagemagick.org/download/bet ... 215.tar.gz Result: Fail
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
JodieC
Posts: 82
Joined: 2014-10-03T21:38:50-07:00
Authentication code: 6789

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

Post by JodieC »

Post Reply