From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2103.outbound.protection.outlook.com [40.107.223.103]) by sourceware.org (Postfix) with ESMTPS id A48423851C12 for ; Wed, 3 Jun 2020 11:56:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A48423851C12 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cqu5D0VZqz8ww8guKUWmqZmYOYkxFywFPhk/lj5h08kGkCCFExKJOIh4vIHtVyhdb9uM5uJ5VizwzAfddBN/HUrpwuZnRUQPZ/tGIo1DBe4X23wHunKqssZsm3rdB4zNHMk1VXKcIVvGuID63n5Wf6x6yO5qzEkPpb8DoDcfMg3Pcf4+vlE5vgV6vhMHS0Tdti4Fcp2wsu9ufaEvH7sTxmJqSSaLgiyWCY9ZhTg3vjqFNmURL+4d87NxifeR7x7rYWJhSlXJ5m0X33kBKoFgXdWRg7/AesO5hEwMX/emTHCg5kcjmbG371cSFA8dYbpXwezyUKCHdTpfh1/RZeJwAA== 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=dBS/7R7f+SQTr1Ym7NzO/VSwSL60bTalWj6Q6h6cp5E=; b=guXzS4R3i0SY5TPFoAwmqv9NTUXn2819Bwq9TuixAqsLk5YpZrz+HRU8iju+myJ8c5ah6hj4yJysEMgeqGEngeXs6PO7eVNTIDPddebbukbL4Cmn2Rvy0sXKA4yyJzzsTPbWX4ezaUOJFNJ2cIguvXLC9z2VxVU0O8rpbXhdK/mdw/VgiVRR564Af/og2qtqerkftutzD2D9uHe2yBuym7bh/Ymc+MN9/U7q4xVFrv8oZA6Y9+s0OhFd4hUs3Jb3D6N+pg6jLrXYWL7XRlVSOJlDo8Q568Bois/jjwV7ZhNjpWs9OpT8/ME6QqOm568vA1Qsj4YzVkRnFn8EbPWZuw== 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 MN2PR04MB6446.namprd04.prod.outlook.com (2603:10b6:208:1aa::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Wed, 3 Jun 2020 11:56:28 +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; Wed, 3 Jun 2020 11:56:28 +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: Wed, 3 Jun 2020 07:56:25 -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: MN2PR16CA0047.namprd16.prod.outlook.com (2603:10b6:208:234::16) 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 MN2PR16CA0047.namprd16.prod.outlook.com (2603:10b6:208:234::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Wed, 3 Jun 2020 11:56:27 +0000 X-Originating-IP: [68.175.129.7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 329d2b32-7972-4584-fea1-08d807b525c6 X-MS-TrafficTypeDiagnostic: MN2PR04MB6446: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1284; X-Forefront-PRVS: 04238CD941 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eI/JhPshihNhvhS2zouRpSz5RcALjsFRyAf/mMmjYVbIgnrsPDXQzElGuW5ubOzOsXweKKu5jncfe5geZtp7KELZt9X3sogzhuynbuS9mC1FCiWKsTb1pr0WtNK0sk5pYAV2Twlyd1A1RGip/htV0MREF58Krm3apdYGsYxh29CocE+k40MHHm5lHvWHsb4RZDRP38QT4UK5BNeM2IhIAPGCdCveC9Oggj9eRKUq3iLZWsumZJeqSPWYX2kupVbZD07Z5nyiT4pS3/goEeKbUj2sUCVWEX16zOZZa2TvXwCVKvCPIUdt4fMm110Mp30xvWUy1RsyK3a+X0kCymFni8fTI/fNe9/Q7pV6779wGnyneQR34UsflgKf4+fBbLHA/CkO9QDjGGQB/btwv1eeKB5vI/iP1S1EbpB3NtMEdYfOpGRr0d376+rkoRJ36d703K7DR7cflJLRDHjIgtUwaQ== 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)(39860400002)(366004)(396003)(136003)(346002)(376002)(8936002)(5660300002)(956004)(83380400001)(8676002)(316002)(86362001)(786003)(53546011)(31696002)(31686004)(36756003)(52116002)(16576012)(478600001)(7116003)(6486002)(3480700007)(2616005)(966005)(66946007)(6916009)(2906002)(26005)(75432002)(186003)(66556008)(16526019)(66476007)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 59mQKYvtXCTPYMZX5ZS4S4GGaw+OrTs6AmNxDF5lqR5ye8fr8PyZi7aupu+ITwSiquOk8NEdGgAjFEsCsqO/ExTJwjk1yKplc7qRdPPDwL5ksX3sQd9R/PrWFdTFKJ2EcmdPIt8tcHMqER1/LGDw5Jlzk+sO0e4hJTG/9rMnMlUH/qsXPmqIs2ng0fgZhO/VQmgiKm32LD17VaYE4v+EFoXXMTIqwaIcvf+P2KLqqsFC7LL29+V4H0Q3YFb+zBOuAb84a/Yx/0GdGDeXfsCLiR9KH0E3ZfRLSEKOd2F2nn+RgDs4q8eHXS5/iv+AlhSINIsg6zlRoOmelU0rCt2ezyFQM8vqnsRg2Lg7Z/MGuGvpkwZhMU7wC67TiTXkxq2E8ovkovQDdZpLMehkh9HX1F6mZy4bwp8ypnvz6CNbo0hSYi71CmFblqDIuk6ALpMIVPE0xT0vsuPezz0AtoYK4fnpvs1DAslTK9CQzfKHlhI= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 329d2b32-7972-4584-fea1-08d807b525c6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2020 11:56:28.0496 (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: CgIA+FXw+5v0VAryhYfEa7Mo5a46Ecm1ehGHEEVLYOEKVEMD9pluE8O79e9winxuwUFaiOgAZPM1Ksh7iuCuaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6446 X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_00, BODY_8BITS, 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-Level: * 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: Wed, 03 Jun 2020 11:56:33 -0000 On 6/2/2020 2:14 PM, Ken Brown via Cygwin wrote: > 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. It turned out that fixing that one commit was all that was required, but the hunk I quoted above wasn't the culprit. I've just uploaded ghostscript 9.52-2, which should fix the problem Ken