From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2128.outbound.protection.outlook.com [40.107.93.128]) by sourceware.org (Postfix) with ESMTPS id 90C94385DC00 for ; Tue, 2 Jun 2020 18:14:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 90C94385DC00 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TiEYnFxfcc+b8hiRkihn4HRuG5ixHmR6MLD10Bgrlu1LHe37uMsoTfJCMqFRKfan76OuhjLIUVj8mqxysv6DFJ4ozz53KKs1iJR0kI4SZzJ9Dy3jmsmRUQsyr6UwFeVMKFO7VKRv8s6QtnORdqmteRRMNvYUYogexSLvwTsscj9ZawSbdbvLzN/tK4OrX4hOJzJ6eAxEa8KDDJ3qlCrMvKXCuXsbmgxg2AbAg6vOh18dPp9io7ChujyEwuCr4hgeiPKyTrogDeEpP9MYpxfawOJp4oI5CH2GkArxM3oyBFYq6g2oDG0e8HFPXx9BQEUUVZaCN+qRMgPgcLROq1s8Zw== 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=YiwA7IbFkFFYFFuVrgEkVs+UqAR71KmGUVHhez9jaQA=; b=RA0HEsyp7K0epWgM8xjOmIQM/ZN98uf5B0tCZkLH7xGCOaO7n/zDM/LVfPPuMDgi5TmwFukr32Yf72/Xn/7UhlY7tcyllEIwCjq/x3ScMZ7BeVVKLOvJTdmQje7NGwVWaPiaJlIzlOID+OzqY0hojRVcEeCJtobd8liLLQcV61dcoYj4YxG9D2RQnp8eta6DS7cpbr32DS+3M94Yod/DlW4siMePLD28lqoVS10kqZLGUqmSAgmOpazgnLXbbr1P/rAN3J7mcCz7not7vn0D1BAITtUB1TOtPjOoGg6AyuJvUVj0f5//cVHgyj89lgiEjyWo59/S/lHYj8QD26bFIQ== 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 Received: from MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) by MN2PR04MB5808.namprd04.prod.outlook.com (2603:10b6:208:a3::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.17; Tue, 2 Jun 2020 18:14:45 +0000 Received: from MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::ecf5:cc00:84d8:bb6a]) by MN2PR04MB6176.namprd04.prod.outlook.com ([fe80::ecf5:cc00:84d8:bb6a%7]) with mapi id 15.20.3045.022; Tue, 2 Jun 2020 18:14:45 +0000 Subject: Re: ghostscript issues To: cygwin@cygwin.com References: <1604953430.859583.1591025163209@mail.yahoo.com> <54b353b1-3d7f-a3fb-532f-06e761ddaa0b@cornell.edu> <20200602205814.76F7.50F79699@gmail.com> From: Ken Brown Message-ID: Date: Tue, 2 Jun 2020 14:14:42 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BL1PR13CA0023.namprd13.prod.outlook.com (2603:10b6:208:256::28) To MN2PR04MB6176.namprd04.prod.outlook.com (2603:10b6:208:e3::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.0.17] (68.175.129.7) by BL1PR13CA0023.namprd13.prod.outlook.com (2603:10b6:208:256::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.7 via Frontend Transport; Tue, 2 Jun 2020 18:14:45 +0000 X-Originating-IP: [68.175.129.7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d8b96bb8-61f1-4a59-ccbf-08d80720d422 X-MS-TrafficTypeDiagnostic: MN2PR04MB5808: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:632; X-Forefront-PRVS: 0422860ED4 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bRAMUfGhwR0q6khxff+DNzGoRip6mn8Ergc0GE3IwSvWsS3bTgBRLtpVNlLqe2x5w8gSP7qpYluLfB7ck9rHlGiI4zBbKvm6YQOoohQSAtYUfJFmVMNmrAg9nKDOcbUGu9iAr4Fo15HADsgvxbgp6u2E/ZyEcV1pUuHtqyUPxd/btiMPpQ+hJE/9eorRzQ7jQ6CZV1kwTL1zzkQHWYt1DBWX5QkMpA6WTh7no4SRzDUiqW/lXDEKZ5A8GKofXIKVkjoQ9F+vGBLrCFMWP2Xu22rP3OfF3cXhGTRIpV3jOGAeBI0RKT3fdg/zktYqAj71RxD5wUfBEpEsMb5TzDyW65ZqLFWoyqjB4ai9pvNQoXrlatP9qrt39Tw+WZe2u0jSPL+5LGwhIDPXOkevB0arAtULHs0rJIOHcajlD19frIWuL0Jo8sagi7y5RFZRIiyKjiTnM/ZfBFp0OCvqGQJfkw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(39860400002)(366004)(346002)(376002)(396003)(316002)(3480700007)(66556008)(6666004)(786003)(2906002)(83380400001)(66946007)(186003)(6916009)(16526019)(966005)(53546011)(2616005)(66476007)(16576012)(26005)(478600001)(52116002)(7116003)(75432002)(5660300002)(6486002)(86362001)(31686004)(8936002)(8676002)(31696002)(956004)(36756003)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: dymEQfj3nFle2Ipcv3Kqdqa6jn9a1gWAVZ9kejWy+U4WSjOkTjt3sCofB/ShgZbW3V/NAYBDZRv9oNEeuugWP6CJphea8F6yFRtHYBTv/WK9V92wG434ILNQtu9TkvNiD4F0pttZqkqK6OKx2hL9smUryg2ZuTFJOkOjXsgi8t8ukefBbYKkKa24s+JGdm8WjMhCXxOBTpuQBvtieKbGle4o+iKwR9cnRMJ2zRjJshWBl3FbJ+Qiv3j576wQr18IZDGC37MVb0gACQkgwZkxx+Qs494B8DYIsqll3bPYIrRx77QWfZ6VqrkZh/cZk/LJt3Z4reozOslE5Qsf5CcquifyXRLU02ilXdQq3f/BadKfo36UqivqFDE93zObLDMjKb003eu/B9jZIhZwU2K1nsvEIQ8u3byMNHMhUZVAQvdqS0RzY5n53XEAU0vOqyJtScWMHekKND7/8yARrJtGZsToLSJ4WCV20mga6pF8CPE= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: d8b96bb8-61f1-4a59-ccbf-08d80720d422 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2020 18:14:45.5571 (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: D78uVSC2/Dqzab9YtlzW+SrQ04zv5RrYbb5PkhFigsNtwpnc9fz3oHWx5i2G5dor23IK24qmMEUWmmn+dtayGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5808 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 18:14:48 -0000 On 6/2/2020 8:12 AM, Ken Brown via Cygwin wrote: > On 6/2/2020 7:58 AM, Lemures Lemniscati via Cygwin wrote: >> Date: Mon, 1 Jun 2020 12:43:44 -0400 >> From: Ken Brown via Cygwin >> >>> On 6/1/2020 11:26 AM, Thomas Bodine via Cygwin wrote: >>>> My favorite use of ghost script is to combine PDF's. I upgraded Cygwin this >>>> weekend, and ghost script fails to perform this task >>>> >>>> I am running this: >>>> Cygwin Setup version 2.904 (64 bit) >>>> base-cygwin 3.8-1 >>>> ghostscript 9.52-1 >>>> ghostscript-fonts-other 6.0-1 >>>> Windows 10 Pro version 1909 build 18363.836 >>>> >>>> When I run the script: >>>>    $ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite  -sOutputFile=combine.pdf >>>> able.pdf baker.pdf charly.pdf >>>>> >>>> GPL Ghostscript 9.52 (2020-03-19) >>>> Copyright (C) 2020 Artifex Software, Inc.  All rights reserved. >>>> This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: >>>> see the file COPYING for details. >>>> Processing pages 1 through 1. >>>> Page 1 >>>> Error: /rangecheck in --restore-- >>>> Operand stack: >>>>      --dict:8/16(L)--   --dict:38/38(ro)(L)-- >>>> Execution stack: >>>>      %interp_exit   .runexec2   --nostringval--   restore   --nostringval--   2 >>>> %stopped_push   --nostringval--   restore   restore   false   1   %stopped_push >>>>     1990   1   3   %oparray_pop   1989   1   3   %oparray_pop   1977   1 >>>> 3   %op >>>> array_pop   1978   1   3   %oparray_pop   restore   restore   2   1   1 >>>> restor >>>> e   %for_pos_int_continue   1981   1   7   %oparray_pop   restore >>>> restore   18 >>>> 94   2   9   %oparray_pop >>>> Dictionary stack: >>>>      --dict:737/1123(ro)(G)--   --dict:1/20(G)--   --dict:80/200(L)-- >>>> --dict:80/ >>>> 200(L)--   --dict:135/256(ro)(G)--   --dict:318/325(ro)(G)-- >>>> --dict:33/64(L)-- >>>>      --dict:6/9(L)--   --dict:6/20(L)-- >>>> Current allocation mode is local >>>> GPL Ghostscript 9.52: Unrecoverable error, exit code 1 >>> >>> I can confirm this.  As a workaround, downgrade ghostscript and libgs9 to the >>> previous version, 9.50-1, while I investigate. >>> >>> Thanks for the report. >>> >>> Ken >> >> Hi! >> >> The first bad commit causing the issue seems to be 327dc89: >> >> http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=327dc8943c0aac1c7be7a1fb6e93346b61cd0900 >> > > Thanks!  I think the problem is here: > > @@ -234,18 +242,14 @@ CONTRIBINCLUDE="include $srcdir/contrib/contrib.mak" >  INSTALL_CONTRIB="install-contrib-extras" > >  if test x"$enable_contrib" = x; then > -  if test x"$cross_compiling" = x"yes"; then > -    enable_contrib= > -  else > -    case `uname` in > -      MINGW*|MSYS*) > +    case $host in > +      *-mingw*|*-msys*|*-cygwin*) >          AC_MSG_WARN([disabling contrib devices]) >          enable_contrib=no >        ;; >        *) >        ;; >      esac > -  fi >  fi > >  if test x"$enable_contrib" != x"no"; then > > Do you want to send the obvious fix upstream or should I do it? Let's hold off on this. Just making this one change doesn't solve the problem. I've found several other commits that have mistakenly lumped cygwin with mingw and msys. I'm still working on it. Ken