Infinite mutex lock wait in "convert"
Posted: 2013-01-17T10:46:59-07:00
Stack trace from gdb:
Command invoked is:
Happens all the time, randomly, the exact image does not seem to matter. We are using MAGICK_THREAD_LIMIT=1 because otherwise it hangs or crashes a lot more often.
Environment is Ubuntu Precise, 64-bit, and:
We have rolled our own packages from I another Ubuntu repo, I can find out if it's necessary.
Code: Select all
#0 0x00007f98d5fc889c in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007f98d5fc4065 in _L_lock_858 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007f98d5fc3eba in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007f98d6683be5 in DestroySemaphoreInfo () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#4 0x00007f98d65fe7dc in DestroyLinkedList () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#5 0x00007f98d65e1b12 in DestroyExceptionInfo () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#6 0x00007f98d6616707 in GetLocaleMessage () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#7 0x00007f98d65e1cf1 in GetLocaleExceptionMessage () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#8 0x00007f98d65e24fc in ThrowMagickExceptionList () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#9 0x00007f98d65e2287 in ThrowMagickException () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#10 0x00007f98d6683cb1 in DestroySemaphoreInfo () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#11 0x00007f98d661b105 in MagickCoreTerminus () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#12 0x00007f98d65e19ed in ?? () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#13 0x00007f98d65e2130 in CatchException () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#14 0x00007f98d65211a3 in ?? () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#15 0x00007f98d6521df2 in QueueAuthenticPixelCacheNexus () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#16 0x00007f98d65411d1 in QueueAuthenticPixels () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#17 0x00007f98d28710e7 in ?? () from /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.0/modules-Q16/coders/jpeg.so
#18 0x00007f98d657721c in ReadImage () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#19 0x00007f98d657772b in ReadImages () from /usr/lib/x86_64-linux-gnu/libMagickCore.so.6
#20 0x00007f98d6215c80 in ConvertImageCommand () from /usr/lib/x86_64-linux-gnu/libMagickWand.so.6
#21 0x00007f98d6282b69 in MagickCommandGenesis () from /usr/lib/x86_64-linux-gnu/libMagickWand.so.6
#22 0x00000000004007e7 in ?? ()
#23 0x00007f98d5c1c76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#24 0x0000000000400839 in ?? ()
#25 0x00007fffc7c2b698 in ?? ()
#26 0x000000000000001c in ?? ()
#27 0x000000000000000a in ?? ()
#28 0x00007fffc7c2cb95 in ?? ()
#29 0x00007fffc7c2cb9d in ?? ()
#30 0x00007fffc7c2cbaa in ?? ()
#31 0x00007fffc7c2cbb2 in ?? ()
#32 0x00007fffc7c2cbba in ?? ()
#33 0x00007fffc7c2cbc3 in ?? ()
#34 0x00007fffc7c2cbc7 in ?? ()
#35 0x00007fffc7c2cbcd in ?? ()
#36 0x00007fffc7c2cbd7 in ?? ()
#37 0x00007fffc7c2cc12 in ?? ()
#38 0x0000000000000000 in ?? ()
Code: Select all
env MAGICK_TIME_LIMIT=30 MAGICK_THREAD_LIMIT=1 convert ...
Environment is Ubuntu Precise, 64-bit, and:
Code: Select all
$ convert --version
Version: ImageMagick 6.8.0-1 2012-10-19 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
$ uname -a
Linux [...] 3.3.4-bengler #3 SMP Tue Jul 31 14:59:36 CEST 2012 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l "*magick*" | grep "^i"
ii imagemagick 8:6.8.0.1-1bengler1 image manipulation programs
ii imagemagick-common 8:6.8.0.1-1bengler1 image manipulation programs -- infrastructure
ii libmagickcore-dev 8:6.8.0.1-1bengler1 low-level image manipulation library - development files
ii libmagickcore5 8:6.8.0.1-1bengler1 low-level image manipulation library
ii libmagickcore5-extra 8:6.8.0.1-1bengler1 low-level image manipulation library - extra codecs
ii libmagickwand-dev 8:6.8.0.1-1bengler1 image manipulation library - development files
ii libmagickwand5 8:6.8.0.1-1bengler1 image manipulation library