public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Emily <emilyw@yahoo.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>, Ken Brown <kbrown@cornell.edu>
Subject: Re: ImageMagick maybe broken by libgs9 upgrade
Date: Tue, 23 Jun 2020 19:32:27 +0000 (UTC)	[thread overview]
Message-ID: <1848914256.2100800.1592940748029@mail.yahoo.com> (raw)
In-Reply-To: <134f371b-8989-4ed7-2209-acc486960d65@cornell.edu>

[-- Attachment #1: Type: text/plain, Size: 1919 bytes --]

Hi Ken,

Any actual label.pdf would contain the Ebay buyer's name and address, and my return address.  Is there a tool I can use to redact sensitive information in a PDF?

I am attaching two files: debug.txt is the output of adding `-debug all` to the convert command, and convert.exe.stackdump is a file that appears when I get the core dumped error message.

Maybe invoking Ghostscript directly will help narrow down the problem.  What's the equivalent gs command?

Thanks!
Emily


 On Tuesday, June 23, 2020, 5:15:04 AM PDT, Ken Brown <kbrown@cornell.edu> wrote: 
On 6/23/2020 7:27 AM, Ken Brown via Cygwin wrote:
> On 6/22/2020 9:37 PM, Emily via Cygwin wrote:
>> I use ImageMagick to convert and crop shipping labels from PDFs generated by 
>> Ebay.  On 6/8, this command worked:
>>
>> $ convert -density 300 -crop 1500x1200 label.pdf label.png
>> Aborted (core dumped)
>>
>>
>> The command still runs on PDFs that were not generated by Ebay, but I get the 
>> same error on old Ebay PDF files (from 6/8 and earlier) that previously 
>> converted and cropped without problems.
>>
>>
>> This is in my /var/log/setup.log:
>>
>> 2020/06/09 19:52:15   29 install libgs9                9.52-2
>> 2020/06/09 19:52:15   30   erase libgs9                9.27-2
>>
>>
>> Cropping in a separate step after converting to PNG still works:
>>
>> $ convert -density 300 label.pdf temp.png
>> $ convert -crop 1500x1200 temp.png label.png
>>
>>
>> But in case other ImageMagick functionality is also broken, this isn't a 
>> permanent solution.  I tried to downgrade libgs9, but 9.27 is no longer an 
>> option in setup, even after I added another mirror.
> 
> Please provide a sample label.pdf for which you're seeing this behavior.

You could also try adding the '-verbose' option to your command line to see if 
that gives a clue.


Ken

[-- Attachment #2: debug.txt --]
[-- Type: text/plain, Size: 7641 bytes --]

2020-06-22T17:10:10-07:00 0:00.007 0.000u 6.9.10 Configure convert[1783]: utility.c/ExpandFilenames/954/Configure
  Command line: convert {-density} {300} {-crop} {1500x1200} {-debug} {all} {label.pdf} {label.png}
2020-06-22T17:10:10-07:00 0:00.011 0.016u 6.9.10 Policy convert[1783]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Module; rights=Read; pattern="PDF" ...
2020-06-22T17:10:10-07:00 0:00.011 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2020-06-22T17:10:10-07:00 0:00.012 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.10//config-Q16/coder.xml"
2020-06-22T17:10:10-07:00 0:00.012 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2020-06-22T17:10:10-07:00 0:00.013 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml"
2020-06-22T17:10:10-07:00 0:00.014 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "C:\Users\emily\AppData\Local/ImageMagick/coder.xml"
2020-06-22T17:10:10-07:00 0:00.014 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/emily/.config/ImageMagick/coder.xml"
2020-06-22T17:10:10-07:00 0:00.015 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/emily/.magick/coder.xml"
2020-06-22T17:10:10-07:00 0:00.015 0.016u 6.9.10 Configure convert[1783]: coder.c/LoadCoderCache/818/Configure
  Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2020-06-22T17:10:10-07:00 0:00.020 0.016u 6.9.10 Policy convert[1783]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Path; rights=Read; pattern="label.pdf" ...
2020-06-22T17:10:10-07:00 0:00.021 0.016u 6.9.10 Blob convert[1783]: blob.c/OpenBlob/2765/Blob
    read 3 magic header bytes
2020-06-22T17:10:10-07:00 0:00.022 0.016u 6.9.10 Cache convert[1783]: cache.c/DestroyPixelCache/1181/Cache
  destroy
2020-06-22T17:10:10-07:00 0:00.022 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2020-06-22T17:10:10-07:00 0:00.023 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.10//config-Q16/magic.xml"
2020-06-22T17:10:10-07:00 0:00.023 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2020-06-22T17:10:10-07:00 0:00.024 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml"
2020-06-22T17:10:10-07:00 0:00.025 0.016u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "C:\Users\emily\AppData\Local/ImageMagick/magic.xml"
2020-06-22T17:10:10-07:00 0:00.026 0.031u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/emily/.config/ImageMagick/magic.xml"
2020-06-22T17:10:10-07:00 0:00.026 0.031u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/emily/.magick/magic.xml"
2020-06-22T17:10:10-07:00 0:00.027 0.031u 6.9.10 Configure convert[1783]: magic.c/LoadMagicCache/796/Configure
  Loading magic configure file "/etc/ImageMagick-6/magic.xml" ...
2020-06-22T17:10:10-07:00 0:00.031 0.031u 6.9.10 Policy convert[1783]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Path; rights=Read; pattern="label.pdf" ...
2020-06-22T17:10:10-07:00 0:00.032 0.031u 6.9.10 Blob convert[1783]: blob.c/OpenBlob/2765/Blob
    read 3 magic header bytes
2020-06-22T17:10:10-07:00 0:00.032 0.031u 6.9.10 Cache convert[1783]: cache.c/DestroyPixelCache/1181/Cache
  destroy
2020-06-22T17:10:10-07:00 0:00.033 0.031u 6.9.10 Policy convert[1783]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Coder; rights=Read; pattern="PDF" ...
2020-06-22T17:10:10-07:00 0:00.036 0.031u 6.9.10 Policy convert[1783]: policy.c/IsRightsAuthorized/603/Policy
  Domain: Path; rights=Read; pattern="label.pdf" ...
2020-06-22T17:10:10-07:00 0:00.037 0.031u 6.9.10 Blob convert[1783]: blob.c/OpenBlob/2765/Blob
    read 3 magic header bytes
2020-06-22T17:10:10-07:00 0:00.037 0.031u 6.9.10 Resource convert[1783]: resource.c/AcquireUniqueFileResource/588/Resource
  ...
2020-06-22T17:10:10-07:00 0:00.046 0.047u 6.9.10 Resource convert[1783]: resource.c/AcquireUniqueFileResource/641/Resource
  Acquire /tmp/magick-1783Kaf-yzdbYlSE
2020-06-22T17:10:10-07:00 0:00.047 0.047u 6.9.10 Resource convert[1783]: resource.c/RelinquishUniqueFileResource/1200/Resource
  Relinquish /tmp/magick-1783Kaf-yzdbYlSE
2020-06-22T17:10:10-07:00 0:00.082 0.078u 6.9.10 Resource convert[1783]: resource.c/AcquireUniqueFileResource/588/Resource
  ...
2020-06-22T17:10:10-07:00 0:00.085 0.078u 6.9.10 Resource convert[1783]: resource.c/AcquireUniqueFileResource/641/Resource
  Acquire /tmp/magick-178339pwm3leUVdE
2020-06-22T17:10:10-07:00 0:00.085 0.078u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/ImageMagick-6/delegates.xml"
2020-06-22T17:10:10-07:00 0:00.086 0.078u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.9.10//config-Q16/delegates.xml"
2020-06-22T17:10:10-07:00 0:00.086 0.078u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/etc/ImageMagick-6/delegates.xml"
2020-06-22T17:10:10-07:00 0:00.087 0.078u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6/delegates.xml"
2020-06-22T17:10:10-07:00 0:00.088 0.094u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "C:\Users\emily\AppData\Local/ImageMagick/delegates.xml"
2020-06-22T17:10:10-07:00 0:00.088 0.094u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/emily/.config/ImageMagick/delegates.xml"
2020-06-22T17:10:10-07:00 0:00.089 0.094u 6.9.10 Configure convert[1783]: configure.c/GetConfigureOptions/685/Configure
  Searching for configure file: "/home/emily/.magick/delegates.xml"
2020-06-22T17:10:10-07:00 0:00.090 0.094u 6.9.10 Configure convert[1783]: delegate.c/LoadDelegateCache/2087/Configure
  Loading delegate configuration file "/etc/ImageMagick-6/delegates.xml" ...
2020-06-22T17:10:10-07:00 0:00.096 0.094u 6.9.10 Resource convert[1783]: resource.c/AcquireUniqueFileResource/588/Resource
  ...
2020-06-22T17:10:10-07:00 0:00.099 0.094u 6.9.10 Resource convert[1783]: resource.c/AcquireUniqueFileResource/641/Resource
  Acquire /tmp/magick-1783qhQP_o5CJvAf
2020-06-22T17:10:10-07:00 0:00.099 0.094u 6.9.10 Resource convert[1783]: resource.c/RelinquishUniqueFileResource/1200/Resource
  Relinquish /tmp/magick-1783qhQP_o5CJvAf
2020-06-22T17:10:10-07:00 0:00.102 0.094u 6.9.10 Exception convert[1783]: utility.c/ShredFile/1820/Exception
  Failed to remove: /tmp/magick-178339pwm3leUVdE

[-- Attachment #3: convert.exe.stackdump --]
[-- Type: application/octet-stream, Size: 162 bytes --]

Stack trace:
Frame     Function  Args
0022DE9C  6102486E (00000230, 0000EA60, 000000A4, 0022DEFC)
0022DFBC  61105C49 (0022DFDC, 00000000, 00000000, 00000000)

  parent reply	other threads:[~2020-06-23 19:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <241354771.1752406.1592876221936.ref@mail.yahoo.com>
2020-06-23  1:37 ` Emily
2020-06-23 11:27   ` Ken Brown
2020-06-23 12:15     ` Ken Brown
2020-06-23 13:03       ` Markus Hoenicka
2020-06-23 16:56         ` Marco Atzeri
2020-06-23 18:18           ` Ken Brown
2020-06-23 20:56             ` Ken Brown
2020-06-23 21:02               ` Marco Atzeri
2020-06-24  5:30                 ` Marco Atzeri
2020-06-24 10:24                   ` Ken Brown
2020-06-24 18:21                     ` Marco Atzeri
2020-06-24 18:46                       ` Emily
2020-06-24 19:03                         ` Ken Brown
2020-06-24 19:04                         ` Marco Atzeri
     [not found]                           ` <1033343864.3079093.1593118308854@mail.yahoo.com>
2020-06-26  3:38                             ` Marco Atzeri
2020-06-26  4:00                               ` Marco Atzeri
2020-06-26  5:46                                 ` Emily
2020-06-26 18:10                                   ` marco atzeri
2020-06-23 13:05       ` Lemures Lemniscati
2020-06-23 19:32       ` Emily [this message]
2020-06-23 19:41         ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1848914256.2100800.1592940748029@mail.yahoo.com \
    --to=emilyw@yahoo.com \
    --cc=cygwin@cygwin.com \
    --cc=kbrown@cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).