delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/23/14:19:36

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B18CA397243C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1592936330;
bh=FcrH1FuOJFClaV4jBtagg12cthO65L8vdllfAC0D3h4=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=xvu6s/h3vuCT3gVGvDltAv711T5ByMT5INo3GjBQNbMcmkd8VthZBWzCTebQ5QrOx
j7Ku62XvxGZ5yZMozlXD3X7V+2vocf7L2u7I7ijQgoOUMrS2kS4zzvRmXR7MQNTvHy
VxkdRuxIYN6MuvLjchxf73JzYHNf224ZE8kSEQnA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 903673939C27
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=oPZSDF0WsEDZnlEo8v8RVfVjJxnVIkSfxbaBm31l5rilovNgKU9vM2BbBDwH1tf3dHP+a8EYKjghxpZqPOOoXHROoJfuUUxSCwBSoZ/w1KRnnmWG702GsbdZ7MRQt4hx9/l0SUASLPd0iIMOL5/A/PMOrXn6pw4u2ggLU6TuYGo1QKAtD8c3QuaG59wg727nRXxBehUYW5S9hDQNz4uMCQ/H0W1jy2MVC//czuWHU9c9tCRat0MZScptiAHM31NoJNsKib0YbVtf6xR9sDIZzgmT42DQH1lP7j40xnsOV8kGu8VBD6qWawh9YWz1inYEmJhlvZnyVgI2qWEtz/QA1Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=nWJnlm7u5lv5jf2P0ieZ2DGAoL0SlXlofBCgatIS9UA=;
b=U+79NxDpFAQDRXARBI8bJYmtbMS3aLPJcp1/JyYTxuCraxBgEWvFas1osMgM1nEkB+mt9UAyWbVjVBaaDYqZJCMNKXB9rTvHFeph0TLpZ+QNlmc1Nj6yCTzr0iySHtHHAp5IWk/W+9M+UZ8/QRoA1YTVU+HYSOABviWPyLWo8uxbeGHEetZw1m4XitAeR4gBj83V10nWd26asDTr4/jcZFS19xNnPJgUmdZ9IxZTH3bTEj7SzZAOfN4NWnXUdJZIYe9ilgkkvDXEY+ey0UUC1ShxsYNbjRDbR/A3IBGDlc+2F1XkNKyFyGlGx0fF0xoYACeBdZkNpyVyY3V2KlfjKQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: ImageMagick maybe broken by libgs9 upgrade
To: cygwin AT cygwin DOT com
References: <241354771 DOT 1752406 DOT 1592876221936 DOT ref AT mail DOT yahoo DOT com>
<241354771 DOT 1752406 DOT 1592876221936 AT mail DOT yahoo DOT com>
<92b51d45-55b5-33e1-c1c7-883094b6b09b AT cornell DOT edu>
<134f371b-8989-4ed7-2209-acc486960d65 AT cornell DOT edu>
<0dd00cea6dd675142ca617d2caf5d818 AT mhoenicka DOT de>
<3d65999c-c82c-0b75-925b-d799a7e8f98c AT gmail DOT com>
Message-ID: <18a9c001-03cc-1538-99aa-7ea87630abe5@cornell.edu>
Date: Tue, 23 Jun 2020 14:18:43 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.9.0
In-Reply-To: <3d65999c-c82c-0b75-925b-d799a7e8f98c@gmail.com>
X-ClientProxiedBy: CH2PR17CA0004.namprd17.prod.outlook.com
(2603:10b6:610:53::14) To BN8PR04MB6163.namprd04.prod.outlook.com
(2603:10b6:408:5c::27)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: f47fb6b3-2f8e-4cd9-f6aa-08d817a1ddef
X-MS-TrafficTypeDiagnostic: BN6PR04MB0659:
X-Microsoft-Antispam-PRVS: <BN6PR04MB0659D9A600A35D8220568A44D8940 AT BN6PR04MB0659 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:7219;
X-Forefront-PRVS: 04433051BF
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: ENtu1zW3cGfoPj1oeaHUD8oG713JGsVb3SCCP6bcaOumR0jAWoo4th4hY5FMyTW1ynEDx0iAVqEyEkwtjOFi1EqfAxmTAJt4FSGgdGbh2IrA1agcUg71UmcQy4e3yGt/8Nz5Rdc7L2HL8AmDEXsotiRlKm5ykivgbSEikzl5l6j3kTwOOL8cNQT7i3W8zgYvbV0FpdORBaMFWX7u1GIYapy19f609BcJ66+g/zGOW8HbCxW2Ztq08lS94IgmngUMBtu3bzdZuoQcCCwBLY1zjIIkEndnTJjrMUolYQLRzGQuexiW/1SqcgyvQKbvOJLVBopIq/YzSVU4FPKS2UvKxy/RSCDHUuzHCTJZhsO+BvY81FPKcy0DPaP7LILcIt0S
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:BN8PR04MB6163.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFTY:;
SFS:(4636009)(396003)(366004)(39860400002)(376002)(136003)(346002)(316002)(16576012)(786003)(6486002)(478600001)(83380400001)(75432002)(31686004)(86362001)(31696002)(235185007)(52116002)(21480400003)(19627235002)(5660300002)(66556008)(66616009)(66476007)(66946007)(2616005)(956004)(16526019)(26005)(6916009)(186003)(2906002)(36756003)(8676002)(8936002)(53546011)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: LAAIRMY5i4pCn5RCyiuT+4m494CrMq/jJRhbeV8K2IR9LGI2IgP+Qlg0B2dZlPKhwlmvXOv4Dxz9Q6rKyWxLDPk6egQIqxZPoBzMU2vuXoFlbH30UGACbH6H0siCO5ZYNCxnGovKSA32iX6tGhTYXENHQWZOwnm5s2DkjFw/kzjDpfH0l2NfOrK0RgMoBUfGefwD9iXnbrHu/8iurI3LAy9VRg7enijiV/uVyo5sY2/1Nqe6PEkKIOi4FrL13PE6jhFh2D2LHHaizf1JhLjHZ3ZIfwZkhvq9FuGFtS0HELLUq91Ffk0BgihPz0RySYzuqUElMKWAjcidOCUQgrMo6u1UmhoDUrfXprRYEr6XpN5Y03cD57l08i7fOVEzxo6LCXHMP3EiGpVJ7Ux6EyBKICU2pUsXUZMQKfV9Z4mGTGYviDlE5sR0DOLNxOvRu2Is9pcIBv8fLmEPIr1T16Xel5vZp8S8DBvA/Bs6xAX8bBY=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: f47fb6b3-2f8e-4cd9-f6aa-08d817a1ddef
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2020 18:18:45.7227 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: KPGIWYYoiTWi4AlPp15113aaPgwXHp5M+JFSAqIXY5hjK92QVtVGHgQmrPlKgDZOATDWp2U6hCvlrXv2G3U+yA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0659
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_INVALID,
DKIM_SIGNED, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

--------------DB74B71679D03B4E6DC1B24B
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

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:
>=20
>>>>>
>>>>> But in case other ImageMagick functionality is also broken, this is=
n't a=20
>>>>> permanent solution.=A0 I tried to downgrade libgs9, but 9.27 is no =
longer an=20
>>>>> option in setup, even after I added another mirror.
>>>>
>>>> Please provide a sample label.pdf for which you're seeing this behav=
ior.
>>>
>>> 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 go=
es=20
>> anyway: I see the same crash with .ps and .eps files (unsurprisingly, =
as these=20
>> and .pdf are processed by libgs). The same conversions work with "gm c=
onvert"=20
>> from the GraphicsMagick package. gm is not linked against libgs, but s=
eems to=20
>> invoke the gs executable instead. This does not crash, although it is =
linked=20
>> against the very same libgs.
>>
>> regards,
>> Markus
>>
>=20
>=20
> 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), us=
ing the=20
OP's command line with her .pdf file replaced by the attached .eps file. =
 Here's=20
the gdb backtrace after the crash:

Thread 1 "convert" received signal SIGSEGV, Segmentation fault.
gs_lib_ctx_init (ctx=3Dctx AT entry=3D0xfffeed30, mem=3Dmem AT entry=3D0x800098=
7b0)
     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=3Dctx AT entry=3D0xfffeed30, mem=3Dmem AT entry=3D0x80=
00987b0)
     at /usr/src/debug/ghostscript-9.52-2/base/gslibctx.c:269
#1  0x00000003ca37e0a3 in gs_malloc_init_with_context (ctx=3D0xfffeed30)
     at /usr/src/debug/ghostscript-9.52-2/base/gsmalloc.c:595
#2  0x00000003ca439da6 in psapi_new_instance (pinstance=3D0xfffee938,
     caller_handle=3D0xfffee930)
     at /usr/src/debug/ghostscript-9.52-2/psi/psapi.c:92
#3  0x00000003ca49e995 in gsapi_new_instance (pinstance=3D<optimized out>=
,
     caller_handle=3D<optimized out>)
     at /usr/src/debug/ghostscript-9.52-2/psi/iapi.c:64
#4  0x00000003fd2f53dc in InvokePostscriptDelegate (verbose=3DMagickFalse=
,
     command=3Dcommand AT entry=3D0xfffeed30 "'gs' -sstdout=3D%stderr -dQUIE=
T -dSAFER -dBAT
CH -dNOPAUSE -dNOPROMPT -dMaxBitmap=3D500000000 -dAlignToPixels=3D0 -dGri=
dFitTT=3D2 '-s
DEVICE=3Dpngalpha' -dTextAlphaBits=3D4 -dGraphicsAlphaBits=3D4 '-r300x300=
' -g196x2"...,
  message=3Dmessage AT entry=3D0xffff3d30 "", exception=3Dexception AT entry=3D=
0x8000664a0)
     at /usr/src/debug/ImageMagick-6.9.10.11-2/coders/ps.c:237
#5  0x00000003fd2f6234 in ReadPSImage (image_info=3D0x800076170,
     exception=3D0x8000664a0)
     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 =3D (gs_lib_ctx_core_t *) 0x73253d74756f6474

I'm looking into it.

Ken

--------------DB74B71679D03B4E6DC1B24B
Content-Type: application/postscript;
 name="TCstep1.eps"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="TCstep1.eps"

%!PS-Adobe-2.0 EPSF-2.0
%%Title: /home/kbrown/courses/4340/TCstep1.fig
%%Creator: fig2dev Version 3.2 Patchlevel 5
%%CreationDate: Tue Feb 17 16:43:47 2009
%%For: kbrown AT markov (Ken Brown,U-MARKOV\kbrown,S-1-5-21-133211054-3407560575-1477132610-1006)
%%BoundingBox: 0 0 47 55
%Magnification: 1.0000
%%EndComments
/$F2psDict 200 dict def
$F2psDict begin
$F2psDict /mtrx matrix put
/col-1 {0 setgray} bind def
/col0 {0.000 0.000 0.000 srgb} bind def
/col1 {0.000 0.000 1.000 srgb} bind def
/col2 {0.000 1.000 0.000 srgb} bind def
/col3 {0.000 1.000 1.000 srgb} bind def
/col4 {1.000 0.000 0.000 srgb} bind def
/col5 {1.000 0.000 1.000 srgb} bind def
/col6 {1.000 1.000 0.000 srgb} bind def
/col7 {1.000 1.000 1.000 srgb} bind def
/col8 {0.000 0.000 0.560 srgb} bind def
/col9 {0.000 0.000 0.690 srgb} bind def
/col10 {0.000 0.000 0.820 srgb} bind def
/col11 {0.530 0.810 1.000 srgb} bind def
/col12 {0.000 0.560 0.000 srgb} bind def
/col13 {0.000 0.690 0.000 srgb} bind def
/col14 {0.000 0.820 0.000 srgb} bind def
/col15 {0.000 0.560 0.560 srgb} bind def
/col16 {0.000 0.690 0.690 srgb} bind def
/col17 {0.000 0.820 0.820 srgb} bind def
/col18 {0.560 0.000 0.000 srgb} bind def
/col19 {0.690 0.000 0.000 srgb} bind def
/col20 {0.820 0.000 0.000 srgb} bind def
/col21 {0.560 0.000 0.560 srgb} bind def
/col22 {0.690 0.000 0.690 srgb} bind def
/col23 {0.820 0.000 0.820 srgb} bind def
/col24 {0.500 0.190 0.000 srgb} bind def
/col25 {0.630 0.250 0.000 srgb} bind def
/col26 {0.750 0.380 0.000 srgb} bind def
/col27 {1.000 0.500 0.500 srgb} bind def
/col28 {1.000 0.630 0.630 srgb} bind def
/col29 {1.000 0.750 0.750 srgb} bind def
/col30 {1.000 0.880 0.880 srgb} bind def
/col31 {1.000 0.840 0.000 srgb} bind def

end
save
newpath 0 55 moveto 0 0 lineto 47 0 lineto 47 55 lineto closepath clip newpath
-120.8 144.5 translate
1 -1 scale

/cp {closepath} bind def
/ef {eofill} bind def
/gr {grestore} bind def
/gs {gsave} bind def
/sa {save} bind def
/rs {restore} bind def
/l {lineto} bind def
/m {moveto} bind def
/rm {rmoveto} bind def
/n {newpath} bind def
/s {stroke} bind def
/sh {show} bind def
/slc {setlinecap} bind def
/slj {setlinejoin} bind def
/slw {setlinewidth} bind def
/srgb {setrgbcolor} bind def
/rot {rotate} bind def
/sc {scale} bind def
/sd {setdash} bind def
/ff {findfont} bind def
/sf {setfont} bind def
/scf {scalefont} bind def
/sw {stringwidth} bind def
/tr {translate} bind def
/tnt {dup dup currentrgbcolor
  4 -2 roll dup 1 exch sub 3 -1 roll mul add
  4 -2 roll dup 1 exch sub 3 -1 roll mul add
  4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
  bind def
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
  4 -2 roll mul srgb} bind def
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
/$F2psEnd {$F2psEnteredState restore end} def

$F2psBegin
10 setmiterlimit
0 slj 0 slc
 0.06000 0.06000 sc
%
% Fig objects follow
%
% 
% here starts figure with depth 50
/Times-Roman ff 150.00 scf sf
2365 2150 m
gs 1 -1 sc (1) col0 sh gr
% here ends figure;
% 
% here starts figure with depth 40
% Arc
7.500 slw
0 slc
gs  clippath
2581 2191 m 2490 2070 l 2442 2106 l 2533 2227 l 2533 2227 l 2485 2113 l 2581 2191 l cp
eoclip
n 2400.0 2240.6 159.4 -118.0725 -61.9275 arcn
gs col4 s gr
 gr

% arrowhead
0 slj
n 2581 2191 m 2485 2113 l 2533 2227 l  col4 s
% Polyline
gs  clippath
2231 1922 m 2306 2052 l 2358 2023 l 2283 1892 l 2283 1892 l 2317 2011 l 2231 1922 l cp
eoclip
n 2025 1505 m
 2325 2025 l gs col1 s gr gr

% arrowhead
n 2231 1922 m 2317 2011 l 2283 1892 l  col1 s
% Polyline
gs  clippath
2733 1637 m 2809 1507 l 2757 1476 l 2681 1607 l 2681 1607 l 2768 1519 l 2733 1637 l cp
eoclip
n 2475 2025 m
 2776 1505 l gs col1 s gr gr

% arrowhead
n 2733 1637 m 2768 1519 l 2681 1607 l  col1 s
% here ends figure;
$F2psEnd
rs
showpage
%%Trailer
%EOF

--------------DB74B71679D03B4E6DC1B24B
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

--------------DB74B71679D03B4E6DC1B24B--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019