From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: ImageMagick maybe broken by libgs9 upgrade
Date: Tue, 23 Jun 2020 14:18:43 -0400 [thread overview]
Message-ID: <18a9c001-03cc-1538-99aa-7ea87630abe5@cornell.edu> (raw)
In-Reply-To: <3d65999c-c82c-0b75-925b-d799a7e8f98c@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3117 bytes --]
On 6/23/2020 12:56 PM, Marco Atzeri via Cygwin wrote:
> On 23.06.2020 15:03, Markus Hoenicka wrote:
>> On 2020-06-23 14:15, Ken Brown via Cygwin was heard to say:
>>> On 6/23/2020 7:27 AM, Ken Brown via Cygwin wrote:
>>>> On 6/22/2020 9:37 PM, Emily via Cygwin wrote:
>
>>>>>
>>>>> 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
>>
>> Hi,
>>
>> I don't know whether this helps to track down the problem, but here goes
>> anyway: I see the same crash with .ps and .eps files (unsurprisingly, as these
>> and .pdf are processed by libgs). The same conversions work with "gm convert"
>> from the GraphicsMagick package. gm is not linked against libgs, but seems to
>> invoke the gs executable instead. This does not crash, although it is linked
>> against the very same libgs.
>>
>> regards,
>> Markus
>>
>
>
> without a sample case we don't know if we need to rebuild ImageMagick
> or GS
I found a .eps file with which I could reproduce the crash (attached), using the
OP's command line with her .pdf file replaced by the attached .eps file. Here's
the gdb backtrace after the crash:
Thread 1 "convert" received signal SIGSEGV, Segmentation fault.
gs_lib_ctx_init (ctx=ctx@entry=0xfffeed30, mem=mem@entry=0x8000987b0)
at /usr/src/debug/ghostscript-9.52-2/base/gslibctx.c:269
269 gx_monitor_enter((gx_monitor_t *)(pio->core->monitor));
(gdb) bt
#0 gs_lib_ctx_init (ctx=ctx@entry=0xfffeed30, mem=mem@entry=0x8000987b0)
at /usr/src/debug/ghostscript-9.52-2/base/gslibctx.c:269
#1 0x00000003ca37e0a3 in gs_malloc_init_with_context (ctx=0xfffeed30)
at /usr/src/debug/ghostscript-9.52-2/base/gsmalloc.c:595
#2 0x00000003ca439da6 in psapi_new_instance (pinstance=0xfffee938,
caller_handle=0xfffee930)
at /usr/src/debug/ghostscript-9.52-2/psi/psapi.c:92
#3 0x00000003ca49e995 in gsapi_new_instance (pinstance=<optimized out>,
caller_handle=<optimized out>)
at /usr/src/debug/ghostscript-9.52-2/psi/iapi.c:64
#4 0x00000003fd2f53dc in InvokePostscriptDelegate (verbose=MagickFalse,
command=command@entry=0xfffeed30 "'gs' -sstdout=%stderr -dQUIET -dSAFER -dBAT
CH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-s
DEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r300x300' -g196x2"...,
message=message@entry=0xffff3d30 "", exception=exception@entry=0x8000664a0)
at /usr/src/debug/ImageMagick-6.9.10.11-2/coders/ps.c:237
#5 0x00000003fd2f6234 in ReadPSImage (image_info=0x800076170,
exception=0x8000664a0)
at /usr/src/debug/ImageMagick-6.9.10.11-2/coders/ps.c:846
The crash occurs because of an attempt to access ridiculously high memory:
(gdb) p pio->core
$8 = (gs_lib_ctx_core_t *) 0x73253d74756f6474
I'm looking into it.
Ken
[-- Attachment #2: TCstep1.eps --]
[-- Type: application/postscript, Size: 3784 bytes --]
next prev parent reply other threads:[~2020-06-23 18:18 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 [this message]
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
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=18a9c001-03cc-1538-99aa-7ea87630abe5@cornell.edu \
--to=kbrown@cornell.edu \
--cc=cygwin@cygwin.com \
/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).