ImageMagick hangs when decoding some PSD images

Bug #597469 reported by Jordan Yelloz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
imagemagick (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: imagemagick

I'm experiencing this problem with the latest 10.04 (x86_64) packages.
If I just run
convert "ubuntu-imagemagick-hang.psd" null:

ImageMagick will hang indefinitely while reading one of the layers of this PSD file.
This problem does not occur on my installations of Mac OS X (MacPorts) or Gentoo Linux.
I am experiencing this problem on every Ubuntu 10.04 and 9.10 system that I have tried (about 10, including 1 virtual machine).
If I manually build the latest subversion checkout of ImageMagick on one of the Ubuntu systems, the problem persists.

This doesn't seem to be related to OpenMP or threading because I built ImageMagick without both and I still encounter this problem. It's likely a problem with one of the libraries upon which ImageMagick depends.

Revision history for this message
Jordan Yelloz (jordan-yelloz) wrote :
Revision history for this message
broucaries (roucaries-bastien+bugs) wrote :

It does not hang but complain about memory exhaustion.

Changed in imagemagick (Ubuntu):
status: New → Incomplete
Revision history for this message
Jordan Yelloz (jordan-yelloz) wrote :

After how long does it complain about memory? I have left some of these running for several minutes and never run out of memory. I started one a few minutes ago and I will let it run until the end of the day and report back on the results.

Revision history for this message
Jordan Yelloz (jordan-yelloz) wrote :

Well, it appears that after 15-20 minutes, the process stops hogging all the CPU because it filled up the 32GB hard disk on my virtual machine:

df -h /dev/vda1
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 32G 30G 8.0K 100% /

du -sh /tmp/magick-XXYttOhe
29G /tmp/magick-XXYttOhe

Here's the stats on the process after the mentioned duration:
ps ax | grep conver[t]
 4698 pts/0 DN+ 4:29 convert -debug all ubuntu-imagemagick-hang.psd null:

I'll still let it run for the rest of the day in case anything interesting happens.

Changed in imagemagick (Ubuntu):
status: Incomplete → New
Revision history for this message
Jordan Yelloz (jordan-yelloz) wrote :

Just to follow up on this, it is many hours later and the same process is still running. It is the only active process on the machine and in 6 hours, it only used up 83 minutes of CPU time:

ps ax | grep conver[t]
 4698 pts/0 RN+ 83:37 convert -debug all ubuntu-imagemagick-hang.psd null:

I still have no free disk space but plenty of RAM is available.

Revision history for this message
broucaries (roucaries-bastien+bugs) wrote :

Could you report upstream

Revision history for this message
Jordan Yelloz (jordan-yelloz) wrote :

I did some more testing and this is a 64-bit issue, not a Ubuntu-specific bug.
I reported it to ImageMagick at http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=16721 .

Revision history for this message
broucaries (roucaries-bastien+bugs) wrote :

File is really huge see upstream answer need 8TB

Changed in imagemagick (Ubuntu):
status: New → Invalid
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.