Page 1 of 1

convert crashes with any command (Arch Linux)

Posted: 2017-11-09T20:28:13-07:00
by Majora320
Exactly as the title says. I'm going to use the "letter A" example on https://www.imagemagick.org/Usage/blur/ this page for the backtrace.

Code: Select all

convert -font Gecko -pointsize 48  label:A -bordercolor white -border 20x10  blur_source.png
Output:

Code: Select all

[1]    29338 abort (core dumped)  convert -font Gecko -pointsize 48 label:A -bordercolor white -border 20x10
Result of gdb `bt`:

Code: Select all

#0  0x00007ffff7960dc7 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#1  0x00007ffff79376ef in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#2  0x00007ffff79e068f in UnsharpMaskImageChannel () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#3  0x00007ffff7a45429 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#4  0x00007ffff7a45cba in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#5  0x00007ffff7a467cc in InitOpenCLEnv () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#6  0x00007ffff7934b52 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#7  0x00007ffff7938639 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#8  0x00007ffff7982db3 in CompositeImageChannel () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#9  0x00007ffff798db45 in FrameImage () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#10 0x00007ffff798f2f0 in BorderImage () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#11 0x00007ffff768ab5b in MogrifyImage () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#12 0x00007ffff76919b9 in MogrifyImages () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#13 0x00007ffff761923a in ConvertImageCommand () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#14 0x00007ffff76882c4 in MagickCommandGenesis () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#15 0x000055555555487d in ?? ()
#16 0x00007ffff701ff6a in __libc_start_main () from /usr/lib/libc.so.6
#17 0x00005555555548da in ?? ()
I'm using imagemagick version 6.9.9.22. I tried running with `-disable-opencl` to no effect.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T20:50:53-07:00
by fmw42
This command works fine for me on IM 6.9.9.22 Q16 Mac OSX. I do not have Gecko font so just used Arial

Code: Select all

convert -font Gecko -pointsize 48  label:A -bordercolor white -border 20x10  blur_source.png
What do you get from

Code: Select all

convert -version
Do you have fontconfig and freetype?

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T20:54:31-07:00
by Majora320
convert -version:

Code: Select all

Version: ImageMagick 6.9.9-22 Q16 x86_64 2017-11-05 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP 
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps raw rsvg tiff webp wmf x xml zlib
I have both fontconfig and freetype2. This isn't an issue with this command in particular - *every* command crashes imagemagick, including resizing, blurring, etc.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T21:29:37-07:00
by fmw42
Does it fail with

Code: Select all

convert logo: logo.gif
If so, then you have a bad install of imagemagick. How did you install it? You seem to have installed the HDRI version of IM 6. Was that intentional?

If it fails, then try:

Code: Select all

convert -debug all logo: logo.gif
And report the results returned to the terminal, so that the IM developers will have that as well.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T22:37:47-07:00
by Majora320
That seems to work fine. No output, and a logo.gif file is created.
It's from the Arch Linux repositories (https://www.archlinux.org/packages/extr ... agemagick/).

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T23:17:07-07:00
by fmw42
try

Code: Select all

convert -debug all logo: -resize 50% logo.jpg
and report the debug information if it fails. If it does not, then find the command that does fail and add -debug all.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T23:19:28-07:00
by Majora320
That does indeed fail.

Code: Select all

2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: utility.c/ExpandFilenames/954/Configure
  Command line: convert {-debug} {all} {logo:} {-resize} {50%} {logo.jpg}
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.9//config-Q16HDRI/coder.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.config/ImageMagick/coder.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.magick/coder.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: coder.c/LoadCoderCache/817/Configure
  Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1289/Module
  Searching for module "MAGICK" using filename "magick.la"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "magick.la" ...
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1298/Module
  Opening module at path "/usr/lib/ImageMagick-6.9.9/modules-Q16HDRI/coders/magick.la"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1325/Module
  Method "RegisterMAGICKImage" in module "MAGICK" at address 0x7fa5f96a9380
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1339/Module
  Method "UnregisterMAGICKImage" in module "MAGICK" at address 0x7fa5f96a95c0
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/delegates.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.9//config-Q16HDRI/delegates.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/delegates.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/delegates.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.config/ImageMagick/delegates.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.magick/delegates.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: delegate.c/LoadDelegateCache/2087/Configure
  Loading delegate configuration file "/etc/ImageMagick-6/delegates.xml" ...
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Policy convert[8635]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Coder; rights=Read; pattern="MAGICK" ...
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1289/Module
  Searching for module "GIF" using filename "gif.la"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "gif.la" ...
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1298/Module
  Opening module at path "/usr/lib/ImageMagick-6.9.9/modules-Q16HDRI/coders/gif.la"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1325/Module
  Method "RegisterGIFImage" in module "GIF" at address 0x7fa5f94a5b40
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Module convert[8635]: module.c/OpenModule/1339/Module
  Method "UnregisterGIFImage" in module "GIF" at address 0x7fa5f94a5c60
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Cache convert[8635]: cache.c/DestroyPixelCache/1175/Cache
  destroy 
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.9//config-Q16HDRI/magic.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.config/ImageMagick/magic.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.magick/magic.xml"
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Configure convert[8635]: magic.c/LoadMagicCache/795/Configure
  Loading magic configure file "/etc/ImageMagick-6/magic.xml" ...
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Policy convert[8635]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Coder; rights=Read; pattern="GIF" ...
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Width: 640B/640B/107.374MB
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Height: 480B/480B/107.374MB
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Area: 6144000B/6144000B/33.5731GB
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Memory: 6144000B/6144000B/15.6337GiB
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Cache convert[8635]: cache.c/OpenPixelCache/3989/Cache
  open LOGO[0] (Heap Memory, 640x480 6144000B)
2017-11-09T22:18:48-08:00 0:00.010 0.000u 6.9.9 Cache convert[8635]: cache.c/DestroyPixelCache/1175/Cache
  destroy 
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Module convert[8635]: module.c/OpenModule/1289/Module
  Searching for module "XC" using filename "xc.la"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Module convert[8635]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "xc.la" ...
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Module convert[8635]: module.c/OpenModule/1298/Module
  Opening module at path "/usr/lib/ImageMagick-6.9.9/modules-Q16HDRI/coders/xc.la"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Module convert[8635]: module.c/OpenModule/1325/Module
  Method "RegisterXCImage" in module "XC" at address 0x7fa5f2b0aed0
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Module convert[8635]: module.c/OpenModule/1339/Module
  Method "UnregisterXCImage" in module "XC" at address 0x7fa5f2b0afa0
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Policy convert[8635]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Coder; rights=Read; pattern="XC" ...
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Width: 2048B/2048B/107.374MB
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Height: 1536B/1536B/107.374MB
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Area: 50.3316MB/50.3316MB/33.5731GB
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Memory: 48MiB/53.8594MiB/15.6337GiB
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Cache convert[8635]: cache.c/OpenPixelCache/3989/Cache
  open none[0] (Heap Memory, 2048x1536 48MiB)
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/colors.xml"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.9//config-Q16HDRI/colors.xml"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/colors.xml"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/colors.xml"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.config/ImageMagick/colors.xml"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Configure convert[8635]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/moses/.magick/colors.xml"
2017-11-09T22:18:48-08:00 0:00.110 0.080u 6.9.9 Configure convert[8635]: color.c/LoadColorCache/2250/Configure
  Loading color file "/etc/ImageMagick-6/colors.xml" ...
2017-11-09T22:18:48-08:00 0:00.120 0.100u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Width: 2048B/2048B/107.374MB
2017-11-09T22:18:48-08:00 0:00.120 0.100u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Height: 1536B/1536B/107.374MB
2017-11-09T22:18:48-08:00 0:00.120 0.100u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Area: 50.3316MB/50.3316MB/33.5731GB
2017-11-09T22:18:48-08:00 0:00.120 0.100u 6.9.9 Resource convert[8635]: resource.c/AcquireMagickResource/358/Resource
  Memory: 48MiB/101.859MiB/15.6337GiB
2017-11-09T22:18:48-08:00 0:00.120 0.100u 6.9.9 Cache convert[8635]: cache.c/OpenPixelCache/3989/Cache
  open none[0] (Heap Memory, 2048x1536 48MiB)
[1]    8635 abort (core dumped)  convert -debug all logo: -resize 50% logo.jpg

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T23:26:34-07:00
by fmw42
Where are you running that command? Does the directory have enough space and does it have read/write permissions?

The IM developers will need to review the output, as I am not knowledgeable about the code.

Also I don't know much about installing on Linux as I use a Mac.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-09T23:28:21-07:00
by Majora320
I'm running it in my home directory, with about 60GiB of space free, so no problems there. This happens wherever I run it.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-10T02:33:06-07:00
by dlemstra
Seems I made a mistake when I refactored the code. Just pushed a fix to our github repository to resolve this. This is an IM6 OpenCL issue, switching to IM7 or disabling OpenCL for now will resolve your issue.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-10T13:11:41-07:00
by Majora320
Setting MAGICK_OCL_DEVICE to OFF seemed to work. I'll install imagemagick7 (has an aur package). Thanks!

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-14T03:08:33-07:00
by abieler
Not sure this is related, but I am on Arch too, using imagemagick 6.9.9.22-1.

convert fails whenever I use the -despeckle or -kuwahara option. Otherwise runs fine.

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-14T07:56:41-07:00
by ashka
This fails as well on Arch with imagemagick 6.9.9-23. Using MAGICK_OCL_DEVICE has no effect.

Code: Select all

$ convert -debug all logo: -resize 50% /tmp/logo2.gif
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: utility.c/ExpandFilenames/954/Configure
  Command line: convert {-debug} {all} {logo:} {-resize} {50%} {/tmp/logo2.gif}
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.9//config-Q16HDRI/coder.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/ashka/.config/ImageMagick/coder.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/ashka/.magick/coder.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: coder.c/LoadCoderCache/817/Configure
  Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1289/Module
  Searching for module "MAGICK" using filename "magick.la"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "magick.la" ...
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1298/Module
  Opening module at path "/usr/lib/ImageMagick-6.9.9/modules-Q16HDRI/coders/magick.la"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1325/Module
  Method "RegisterMAGICKImage" in module "MAGICK" at address 0x7fe0a1852380
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1339/Module
  Method "UnregisterMAGICKImage" in module "MAGICK" at address 0x7fe0a18525c0
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/delegates.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.9//config-Q16HDRI/delegates.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/delegates.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/delegates.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/ashka/.config/ImageMagick/delegates.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/ashka/.magick/delegates.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: delegate.c/LoadDelegateCache/2087/Configure
  Loading delegate configuration file "/etc/ImageMagick-6/delegates.xml" ...
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Policy convert[30757]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Coder; rights=Read; pattern="MAGICK" ...
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1289/Module
  Searching for module "GIF" using filename "gif.la"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/GetMagickModulePath/546/Module
  Searching for coder module file "gif.la" ...
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1298/Module
  Opening module at path "/usr/lib/ImageMagick-6.9.9/modules-Q16HDRI/coders/gif.la"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1325/Module
  Method "RegisterGIFImage" in module "GIF" at address 0x7fe0a164eb40
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Module convert[30757]: module.c/OpenModule/1339/Module
  Method "UnregisterGIFImage" in module "GIF" at address 0x7fe0a164ec60
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Cache convert[30757]: cache.c/DestroyPixelCache/1175/Cache
  destroy 
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.9//config-Q16HDRI/magic.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/ashka/.config/ImageMagick/magic.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/ashka/.magick/magic.xml"
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Configure convert[30757]: magic.c/LoadMagicCache/795/Configure
  Loading magic configure file "/etc/ImageMagick-6/magic.xml" ...
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Policy convert[30757]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Coder; rights=Read; pattern="GIF" ...
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Resource convert[30757]: resource.c/AcquireMagickResource/358/Resource
  Width: 640B/640B/107.374MB
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Resource convert[30757]: resource.c/AcquireMagickResource/358/Resource
  Height: 480B/480B/107.374MB
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Resource convert[30757]: resource.c/AcquireMagickResource/358/Resource
  Area: 6144000B/6144000B/33.4624GB
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Resource convert[30757]: resource.c/AcquireMagickResource/358/Resource
  Memory: 6144000B/6144000B/15.5821GiB
2017-11-14T15:52:25+01:00 0:00.000 0.000u 6.9.9 Cache convert[30757]: cache.c/OpenPixelCache/3987/Cache
  open LOGO[0] (Heap Memory, 640x480 6144000B)
2017-11-14T15:52:25+01:00 0:00.010 0.000u 6.9.9 Cache convert[30757]: cache.c/DestroyPixelCache/1175/Cache
  destroy
- segfault -

GDB bt:
#0  0x00007fe0a61678a0 in raise () from /usr/lib/libc.so.6
#1  0x00007fe0a6168f09 in abort () from /usr/lib/libc.so.6
#2  0x00007fe0a6b641f1 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#3  <signal handler called>
#4  0x00007fe0a61678a0 in raise () from /usr/lib/libc.so.6
#5  0x00007fe0a6168f09 in abort () from /usr/lib/libc.so.6
#6  0x00007fe0a6b641f1 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#7  <signal handler called>
#8  0x0000000000001f90 in ?? ()
#9  0x00007fe0a6f1b51a in call_init.part () from /lib64/ld-linux-x86-64.so.2
#10 0x00007fe0a6f1b626 in _dl_init () from /lib64/ld-linux-x86-64.so.2
#11 0x00007fe0a6f1fafe in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#12 0x00007fe0a6265144 in _dl_catch_error () from /usr/lib/libc.so.6
#13 0x00007fe0a6f1f31a in _dl_open () from /lib64/ld-linux-x86-64.so.2
#14 0x00007fe0a291ee86 in ?? () from /usr/lib/libdl.so.2
#15 0x00007fe0a6265144 in _dl_catch_error () from /usr/lib/libc.so.6
#16 0x00007fe0a291f587 in ?? () from /usr/lib/libdl.so.2
#17 0x00007fe0a291ef22 in dlopen () from /usr/lib/libdl.so.2
#18 0x00007fe0a3e45005 in ?? () from /usr/lib/libOpenCL.so.1
#19 0x00007fe0a3e452e3 in ?? () from /usr/lib/libOpenCL.so.1
#20 0x00007fe0a3e46930 in ?? () from /usr/lib/libOpenCL.so.1
#21 0x00007fe0a3e46e84 in clGetPlatformIDs () from /usr/lib/libOpenCL.so.1
#22 0x00007fe0a6b7950f in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#23 0x00007fe0a6b7a6fc in InitOpenCLEnv () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#24 0x00007fe0a6a68b22 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#25 0x00007fe0a6a73c91 in ?? () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#26 0x00007fe0a6bcb036 in ResizeImage () from /usr/lib/libMagickCore-6.Q16HDRI.so.5
#27 0x00007fe0a67c0ddd in MogrifyImage () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#28 0x00007fe0a67c59b9 in MogrifyImages () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#29 0x00007fe0a674d23a in ConvertImageCommand () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#30 0x00007fe0a67bc2c4 in MagickCommandGenesis () from /usr/lib/libMagickWand-6.Q16HDRI.so.5
#31 0x00005641dc41f87d in ?? ()
#32 0x00007fe0a6153f6a in __libc_start_main () from /usr/lib/libc.so.6
#33 0x00005641dc41f8da in ?? ()

Version: ImageMagick 6.9.9-23 Q16 x86_64 2017-11-12 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP 
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps raw rsvg tiff webp wmf x xml zlib

Re: convert crashes with any command (Arch Linux)

Posted: 2017-11-14T11:53:27-07:00
by dlemstra
This looks like a crash somewhere in the OpenCL library ashka? I can run your command without any issues.