Core Dump PDF to PNG 7.0.8-38 - 7.0.8-42
Posted: 2019-04-22T08:13:11-07:00
Alpine 3.9
Ghostscript: 9.26-r2
ImageMagick: 7.0.8.38-r0
PDF Example File: https://www.iso.org/files/live/sites/is ... t_2009.pdf
Other files also trigger core dump but not all
There were issues with ghostscript options -dFirstPage=1 -dLastPage=1 creating core dumps, but the underlying ghostscript command works in the patched version of 9.26. ( Older bug: https://bugs.launchpad.net/ubuntu/+sour ... ug/1806517 )
If you leave off the page restriction '[0]' all pages are processed successfully.
Command:
Output:
Ghostscript: 9.26-r2
ImageMagick: 7.0.8.38-r0
PDF Example File: https://www.iso.org/files/live/sites/is ... t_2009.pdf
Other files also trigger core dump but not all
There were issues with ghostscript options -dFirstPage=1 -dLastPage=1 creating core dumps, but the underlying ghostscript command works in the patched version of 9.26. ( Older bug: https://bugs.launchpad.net/ubuntu/+sour ... ug/1806517 )
If you leave off the page restriction '[0]' all pages are processed successfully.
Command:
Code: Select all
'magick -debug all test.pdf[0] test.png'
Code: Select all
2019-04-22T14:59:29+00:00 0:00.000 0.000u 7.0.8 Wand magick[15]: wandcli.c/AcquireMagickCLI/131/Wand
MagickWandCLI-0
2019-04-22T14:59:29+00:00 0:00.000 0.000u 7.0.8 Command magick[15]: magick-cli.c/MagickImageCommand/709/Command
Initializing "magick"
2019-04-22T14:59:29+00:00 0:00.000 0.000u 7.0.8 Command magick[15]: magick-cli.c/ProcessCommandOptions/388/Command
at CLI arg 1 - Starting ("-debug")
2019-04-22T14:59:29+00:00 0:00.000 0.000u 7.0.8 Command magick[15]: operation.c/CLISettingOptionInfo/439/Command
at CLI arg 1 - Setting Option: -debug "all" "(null)"
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Resource magick[15]: resource.c/AcquireMagickResource/373/Resource
ListLength: 1/0/9.22337E
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Pixel magick[15]: pixel.c/SetPixelChannelMask/6291/Pixel
[07ffffff]
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Pixel magick[15]: pixel.c/LogPixelChannels/6175/Pixel
[07ffffff]
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Pixel magick[15]: pixel.c/LogPixelChannels/6272/Pixel
0: red (update)
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Pixel magick[15]: pixel.c/LogPixelChannels/6272/Pixel
1: green (update)
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Pixel magick[15]: pixel.c/LogPixelChannels/6272/Pixel
2: blue (update)
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Resource magick[15]: resource.c/AcquireMagickResource/373/Resource
Area: 1B/0B/7.70167GiB
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Resource magick[15]: resource.c/AcquireMagickResource/373/Resource
Memory: 12B/12B/3.85083GiB
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Cache magick[15]: cache.c/OpenPixelCache/3766/Cache
open [0] (Heap Memory, 1x1x3 12B)
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Cache magick[15]: cache.c/DestroyPixelCache/1040/Cache
destroy [0]
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Resource magick[15]: resource.c/RelinquishMagickResource/1069/Resource
Memory: 12B/0B/3.85083GiB
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Wand magick[15]: wandcli.c/CLICatchException/242/Wand
magick-CLI
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Command magick[15]: operation.c/CLINoImageOperator/4668/Command
at CLI arg 3 - NoImage Operator: -read "test4.pdf[0]" ""
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Configure magick[15]: utility.c/ExpandFilenames/959/Configure
Command line: test4.pdf[0]
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Policy magick[15]: policy.c/IsRightsAuthorized/609/Policy
Domain: Module; rights=Read; pattern="PDF" ...
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Module magick[15]: module.c/OpenModule/1272/Module
Searching for module "PDF" using filename "pdf.la"
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Module magick[15]: module.c/GetMagickModulePath/546/Module
Searching for coder module file "pdf.la" ...
2019-04-22T14:59:29+00:00 0:00.001 0.000u 7.0.8 Module magick[15]: module.c/OpenModule/1281/Module
Opening module at path "/usr/lib/ImageMagick-7.0.8/modules-Q16HDRI/coders/pdf.la"
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Module magick[15]: module.c/OpenModule/1308/Module
Method "RegisterPDFImage" in module "PDF" at address 0x7f76f3b7454b
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Module magick[15]: module.c/OpenModule/1322/Module
Method "UnregisterPDFImage" in module "PDF" at address 0x7f76f3b7469c
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Policy magick[15]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="test4.pdf" ...
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Blob magick[15]: blob.c/OpenBlob/3379/Blob
read 3 magic header bytes
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Cache magick[15]: cache.c/DestroyPixelCache/1040/Cache
destroy
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Policy magick[15]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="test4.pdf" ...
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Blob magick[15]: blob.c/OpenBlob/3379/Blob
read 3 magic header bytes
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Cache magick[15]: cache.c/DestroyPixelCache/1040/Cache
destroy
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Policy magick[15]: policy.c/IsRightsAuthorized/609/Policy
Domain: Coder; rights=Read; pattern="PDF" ...
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Policy magick[15]: policy.c/IsRightsAuthorized/609/Policy
Domain: Path; rights=Read; pattern="test4.pdf" ...
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Blob magick[15]: blob.c/OpenBlob/3379/Blob
read 3 magic header bytes
2019-04-22T14:59:29+00:00 0:00.014 0.000u 7.0.8 Resource magick[15]: resource.c/AcquireUniqueFileResource/566/Resource
...
2019-04-22T14:59:29+00:00 0:00.015 0.000u 7.0.8 Resource magick[15]: resource.c/AcquireUniqueFileResource/622/Resource
/tmp/magick-157xyxU4EnEojd
2019-04-22T14:59:29+00:00 0:00.015 0.000u 7.0.8 Resource magick[15]: resource.c/RelinquishUniqueFileResource/1107/Resource
/tmp/magick-157xyxU4EnEojd
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Resource magick[15]: resource.c/AcquireUniqueFileResource/566/Resource
...
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Resource magick[15]: resource.c/AcquireUniqueFileResource/622/Resource
/tmp/magick-15WOKkvwIgDMCb
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Configure magick[15]: configure.c/GetConfigureOptions/672/Configure
Searching for configure file: "/usr/share/ImageMagick-7/delegates.xml"
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Configure magick[15]: configure.c/GetConfigureOptions/672/Configure
Searching for configure file: "/usr/lib/ImageMagick-7.0.8//config-Q16HDRI/delegates.xml"
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Configure magick[15]: configure.c/GetConfigureOptions/672/Configure
Searching for configure file: "/etc/ImageMagick-7/delegates.xml"
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Configure magick[15]: configure.c/GetConfigureOptions/672/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-7/delegates.xml"
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Configure magick[15]: configure.c/GetConfigureOptions/672/Configure
Searching for configure file: "/root/.config/ImageMagick/delegates.xml"
2019-04-22T14:59:29+00:00 0:00.171 0.150u 7.0.8 Configure magick[15]: delegate.c/LoadDelegateCache/2037/Configure
Loading delegate configuration file "/etc/ImageMagick-7/delegates.xml" ...
2019-04-22T14:59:29+00:00 0:00.172 0.160u 7.0.8 Resource magick[15]: resource.c/AcquireUniqueFileResource/566/Resource
...
2019-04-22T14:59:29+00:00 0:00.172 0.160u 7.0.8 Resource magick[15]: resource.c/AcquireUniqueFileResource/622/Resource
/tmp/magick-15H1z4xjaJcELk
2019-04-22T14:59:29+00:00 0:00.172 0.160u 7.0.8 Resource magick[15]: resource.c/RelinquishUniqueFileResource/1107/Resource
/tmp/magick-15H1z4xjaJcELk
2019-04-22T14:59:29+00:00 0:00.533 0.510u 7.0.8 Exception magick[15]: utility.c/ShredFile/1843/Exception
Failed to remove: /tmp/magick-15WOKkvwIgDMCb
Aborted (core dumped)