delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/04/05/21:14:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:to:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=Fe6
ViPWAfeSJMCPTLY60QthMACgcfT2mPrl84/GjYxI6Uw23QZ/S7IVfrWX0PaFBLiH
swwpGic+O8zQiEnjJlHGBMNEVN3CzYP1M6wL/yPe+f6YB3w1LdDH+CzvhFGc18je
TeyTjshbk21TSfo5GeuOuynCSRnpUe4JEj79C7zQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:to:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=wbV3iR/8u
6bJ0oAy4JLY8JOixXY=; b=K76W7w4NRVq6Q4gtzlKz9WvDt2siH2o+DxLrfSSeG
Y2SxoSWban6gdzHO8NMu9XGVyqsJAO/iuMQ/v0/bi8jEvzNJ8/UmWL1VdNLtZrlz
e41zGelINXI/MNUWVw1bsp5T+Ok4ai0ioOaiE7jXJVSkBx17axGuOUPiNjFssxwo
hM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=proprietary, 6.1, Notice, 61
X-HELO: NAM01-SN1-obe.outbound.protection.outlook.com
Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=bestguesspass action=none header.from=analog.com;
Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta4.analog.com;
From: Giuseppe Scelsi <giuseppe DOT scelsi AT analog DOT com>
Subject: Bug in Python3 ('tempfile', 'subprocess', '_hashlib')
To: <cygwin AT cygwin DOT com>
Message-ID: <8011548c-aefd-62a2-a492-69dca7646a44@analog.com>
Date: Fri, 6 Apr 2018 11:14:26 +1000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-MS-Office365-Filtering-HT: Tenant
X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(39850400004)(346002)(396003)(39380400002)(2980300002)(438002)(199004)(189003)(65956001)(316002)(65806001)(77096007)(47776003)(2906002)(230700001)(31686004)(26005)(7636002)(305945005)(2351001)(5660300001)(36756003)(2616005)(6916009)(64126003)(476003)(50466002)(336012)(2486003)(23676004)(36916002)(7696005)(65826007)(31696002)(126002)(8676002)(67846002)(246002)(86362001)(8936002)(106002)(426003)(356003)(15974865002)(72206003)(486006)(59450400001)(58126008)(478600001)(186003)(106466001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR03MB397;H:nwd2mta4.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;A:1;MX:1;
X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD008;1:HPctndZODqTJD7YusJRUBL3AqQL2HWXes14Ae5/2c4j8VmsXfW1CqrtF1/qAb4DlE8pEEQ3YRVJu6BZCSIaeK+hsyk0yVgOk8POrmh7xFvDjGOcZ5J/jJE2nPOnp9gzR
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 4f06fd48-36c4-435c-1d8e-08d59b5bbfab
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060);SRVR:DM2PR03MB397;
X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB397;3:tUNV1oJ7L04CrMXRAkG6QWpxWvlhMZX0jxvKv9/XZkGDXMqP9u3+xFs9ukm3zSubABqDD7iDdrpaIvuke/OY647RJx2PoYfrOfQ6EWmNxOk1MhWoP61K16P4dqchc52BdpHY4Qy9CT4BV0ghhk1drNpi9jHaeQLl57WhvpfpOraASuM4rGJS91hKU32bkW7c7JJHxzQYvt0jhkpjEhKAI3Qm4byx1c4z6gzmTjOWq3Pt3xcwX4Gt6TJCkH3A/v8iLKSMTitRncD+/1bpEmlJULxknnlLNNyrp/GsusM8q7wXvbh2RszwrcJ76IYMweyPSf8lNvdY1BTs9Gw7bfqfCGvr2q2xK8L0hRB85nHos30=;25:3DDr3rRNeqFs9LWEbolhaiE65AJXxWQmyMCdZZThJAv/7l4E1tmm3tIf67y1+u+Ali2vWItHM3BLBTxF8EFrfqUmaYE5AMnt4fcBSfgNdqoY1khtBhb4jXdPQkyHgMsVJBLfxsm8fdK03fHgVf/SR3tL/NJChHTHr+PpOyzirVW58n/1a/wkMJmBHMmMTyhdlwsndTDCNTcLuoXd2EOSOhWwKUIK3COI3ENPx5inv7g26icrMLLU6OOTTf8WLWujSy3cjNX3Z7EGsq1FywWzdn2wVKqHYGucka2cokWfRYu9QnRCtdHxGsHsFo8iqhmU5GzvzqlNDaWiIAh60ruoLw==
X-MS-TrafficTypeDiagnostic: DM2PR03MB397:
X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB397;31:VLFKqu+J5O1zc2joprlPy2yUcg9w4D5Nl7867GHIGEIcOc7+xJVHOARWAbofMlXGmIKXJtZIsfN9x79w4tYWocZNHj6Mz0YjLq/A5XrqN75fKjlEr9oV5aKyohDYSfc84xkKzVDdOLI/TVQtXU4isVTZ3jcCPSoH2gPWc119pPksDN5M9IGGuZmc6wxRF7r1EvWOygxmEDwxU2OWk28ZbzAcLPbZaW4OUCDsZuroM58=;20:pn2Dml/fJbSH6j3POOH1fG15Nit2IMmisbCqKWSqOJ7meiVCqd9rJnGrDWlTtlGpS3oUUL8bi4hgjZ1VeMA/27USao3h/BwdDL5GtFiEme+iMToXn4bSKcoBzkyacl37gn/bAirjqGwV0XPLs9kfJJxf6V/tiFiMdhSM3DMjvtegyC3+cNwTikQ8JxvXi4mK6lt/IjG9gWB+vCf6hd1JcfYF+3TvyalINhSXD83x/eBh2RdVMAadHDT/xlEefevmzLoqLOhP2OBF5snX6BmPAeplsmBTA7tzTjzIergPUNjaksCMtHsbq9R9wIpgyXSV00EFTXWz+40ExiZ1jikukdf+EIjopu3WpQl3fNIR2LSJ1ocHbQSqkvHGNcYYBrn7IeL6Ldp7SwdAGTkP/eu1hgT3AeBd0uMNXEnr1WeeHKYwsWwbo9E3i2CvKDN07SG8xp5ubxP7ZXcKSdWp7G4ad+LiJZuU6K70JPguyfQPMIla2LWONUFOmDKso1N2C+Pn
X-Microsoft-Antispam-PRVS: <DM2PR03MB397731E3DC77DB0B2BD73D79ABA0 AT DM2PR03MB397 DOT namprd03 DOT prod DOT outlook DOT com>
X-Exchange-Antispam-Report-Test: UriScan:(270121546159015)(232431446821674);
X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:DM2PR03MB397;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB397;
X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB397;4:4M3PMW3u9B2NL9gW+dsxJYZL1kLLBl4aXSwL2oORoaYcThaLNutrnE8lYBjVGwKP3dgDEW38B74j0XBA//TyjkOwrEcqBtpY/gnjMO1xZBxVaNSMrKlREF7c4fgDCA5ZM04gkEXkopoOp2M+XEhOqhEo6B93uI0bBGSwEitRYDrlL/mlz61ShizUIXEGwODcNFlrD8p6QTtegYfWoPUHdDjW0T9mSt4nCTVZZGRpps8fnea1N94tz3fm+MN2XjbdYeUEijqzxJypI6VkyCKPAL7NfjYesRLn4InLuAM4iwca3UPWMSZI/+mJSNZ4CjXQQcPJmNiZmkLoVeVNJcRPil5DhcKT6FZ3nRlOsPoAH7Y=
X-Forefront-PRVS: 0634F37BFF
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjAzTUIzOTc7MjM6Ky9RRVYxS3pjV0NPVUZmV0o5QUxLMDBEQzNu?= =?utf-8?B?OUJkd1JBWWdWSEhJTi83NTZpOHlETWIzZTEvUytQRWpibDcvbmVINi9MK2xS?= =?utf-8?B?N3p6Q050Nmd3Z2tyeHZYZmdRN0dkVzBPQ3lhV2xJalROcnlEaU1BYTRJTUpZ?= =?utf-8?B?UzZzQkdTWmJPbkFoZDVTVnlTeUJzWWdVYndIdFZXNmhQendpQ2g5eGVLbFpO?= =?utf-8?B?TnBpR0Z4TzVoWFBIcTgrN21jajcvdnRKUTNqb05DVzNJY2lLRWVTSnBrc1Nj?= =?utf-8?B?OXdVK1Z6MFcxSlEvdkoweTFyTm41MkphVmlpRHpEckJ0aVBJMnlOcWs5Vnli?= =?utf-8?B?SWV4dXlvZkJFVWxXZUFpWnkvQU5rcm5FdjE2NzhBdXlzYldmNWc2dlB0bmkx?= =?utf-8?B?WGU5cjIxSTc3djZaUXFwWjlpT3ZOQmNqc2NXNU1ydHBFK21USXl2QW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I50cLtYqa+SXxpcz4IVIjitQLsPcnWXilGMyWl7ad2hu0s68fiWZhmvG5u/dAb69jRoT7Au4jCQPCG4PiPbNWpf4ytScxgGpTw4riQM/mNdrgnyB/s=;24:R3ww/4lAmMcGLTL/tBNS2Q2XZhRsr7E4Nz2UUc7gn+O+GqPf+FHTmJC9UZuP1pdaT+Bp3lYOVAvOyApIAP4xDBWCDXQvknY3NoNQgzjBtT8=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB397;7:agYHyNFI7kN7Q/fnkBRDpa3V7zOnZzEwxNkzGER2TE8EOrGPDflL1pqrKYjmLsHU10Mr637M7wPFwA6I8+CF4Hbz69yaZRGPxLsniLeVPWuKu+5q47HOjgTzpJqzlzeaY0g+fjTvHpqTWPplATR+5wluJhtTx8IWYwzM0Z735ao+HBAQATNNY0XzTG+pTGafs8pAAK2P1aatRlnzHiABx263eie0LI0otDZTGABhim6uIZDCJPwnq0HddN3lS0vY
X-OriginatorOrg: analog.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2018 01:14:30.1692 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 4f06fd48-36c4-435c-1d8e-08d59b5bbfab
X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta4.analog.com]
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB397
X-IsSubscribed: yes

Hi,

Using freshly-updated Cygwin 64-bit under Windows 7 Enterprise Ver 6.1
and Python 3 version 3.6.4.

The execution of the following script:

     import subprocess
     import _hashlib
     import _sha3
     subprocess.run('pwd')

always results in 'BlockingIOError: [Errno 11] Resource temporarily
unavailable'.

I saw this error first in a script that imported 'tempfile' together
with 'subprocess' (in any order):

     import subprocess
     import tempfile
     subprocess.run('pwd')

I then managed to narrow down the problem to the '_sha3' module.
Notice that you need to import both '_hashlib' and '_sha3' *in that
order*.  If I swap the order and import '_sha3' before '_hashlib', the
error becomes sporadic, sometimes it happens and sometimes not.

This problem makes it impossible to use 'tempfile' and 'subprocess' in
the same script.  My workaround is currently to disable '_sha3' in
'/lib/python3.6/hashlib.py' by adding at line 62:

     __always_supported = __always_supported[0:8]

This problem only happens in Cygwin 64, 32-bit Cygwin works ok.

Can anyone reproduce this problem?

Best regards,

Giuseppe

--
Giuseppe B. Scelsi  (giuseppe DOT scelsi AT analog DOT com)
Senior Design Engineer, Analog Devices Australia Pty Ltd
Unit 3, 97 Lewis Road, Wantirna, Victoria, 3152, AUSTRALIA
Direct: +61 3 9881 9909   Main: +61 3 9881 9999
Fax: +61 3 9881 9988      Web: www.analog.com/au

Embedded & Digital Signal Processing Software.

This communication is proprietary and confidential.

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

- Raw text -


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