X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0DDAA38930DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1615050984; bh=Its9xEZVdLtLhVufLfiuFewKiAEcsLHZ6Lp4rEw0pw8=; 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=EGRmQud6Uo3BGwpf14CQxyPrDnMjrpU3l6tWWONhpiH1UuT3ENooLhHukYdrFNbWX PZN67UQ8D0izAm4m7eHDshiORzqIUX5wiyr4i9+NF0PGrmSXXHkljMMLvIPdlewdZK cpW9OnwenLYJKvYej5xZ8gf6PNv3BIgb7yfMgwtU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9DAE1383F85F ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m+XQ4tnITnOmaoGbQ0qmZkonALRen22y0MewB77v1ASDBb40vjs2Y07LLlWQpt7NJqnkDuV6osXll21Hi9FJwyS+pGqPdHS4oKOl8P1tGH8ASQjbs1gEp4OH3gxnGbZpH3U8t4JmcfGC9qzUx3npKvV7HqIsVQ1nbTvi0kRBY/OMVkkbYphCEQaIHPV31VoZvZ6h7HCPV3BU3Q3r39HecuRAmwEXnIFJcb68woDxLf+1uG7rVXuIr400t0TtabdpujAQuB0U17PIPRyBNFTl7autw1EH2VCUgA/h9BZ4t9rfTMSIF8KClhf8D2j5P6pj/DQKrRGDMODDS33fLEgtcA== 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=OwQ0NM/1r/44PBo3TTwCjbOt5U6uonEG2qhaXdskBZs=; b=k0STkZ/JCCrrRzrpz5UeDxc4yht4ZCyz/wywWM/MvVlHYIFiHHQCOKAzgG9/YScKwRY1OjbCW4sXMO+aXNMLpeaQO/z299sRiKiM6PAhDwcq8sgfmvbDhw8eiqGubpaMGDFNmV6VapnGx2jgjEpil9McH5AQdW1JMRRaTvJGdjWRUPkvmA3ji7JY3M+HKwG+K2qftqoZdb5PZxUl4Pjn+PwB9ckKFoPhwSaHJQ4VEaSSdHaSOBjbPTVXoGlWtQaajJmMaAGfSSU/2CbDoiSArpCZmT4CDHV62rAV2yxDRLLZNneyG8UiOvDCxrO5SA/4JRBkeQgNBM0pofCxhBQM9A== 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: segfault on 32bit cygwin snapshot To: cygwin AT cygwin DOT com References: <20210303185621 DOT b048287526901af6a4c8200a AT nifty DOT ne DOT jp> <20210304180534 DOT 7c3825e6ee989a2bf62f0652 AT nifty DOT ne DOT jp> <20210304205000 DOT 4ac34afe1a8b767ea2986291 AT nifty DOT ne DOT jp> <98df59b3-a139-03d2-c8c5-31ff4f8448ab AT gmail DOT com> <625cb9d2-b6cc-3ada-eea9-44a5e73da17c AT gmail DOT com> <72a86908-e150-2070-24f7-79ca82de9916 AT maxrnd DOT com> <20210306104511 DOT c041293d9b1b1caff4fd9254 AT nifty DOT ne DOT jp> Message-ID: <50e7662b-a935-f966-46a7-f865515bbcd9@cornell.edu> Date: Sat, 6 Mar 2021 12:16:13 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 In-Reply-To: <20210306104511.c041293d9b1b1caff4fd9254@nifty.ne.jp> Content-Language: en-US X-Originating-IP: [2603:7081:7e41:6a00:b19e:19c7:d212:a58e] X-ClientProxiedBy: MN2PR20CA0023.namprd20.prod.outlook.com (2603:10b6:208:e8::36) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2603:7081:7e41:6a00:b19e:19c7:d212:a58e] (2603:7081:7e41:6a00:b19e:19c7:d212:a58e) by MN2PR20CA0023.namprd20.prod.outlook.com (2603:10b6:208:e8::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Sat, 6 Mar 2021 17:16:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5172ff44-c0bc-4424-33cd-08d8e0c38ca1 X-MS-TrafficTypeDiagnostic: BN6PR04MB0434: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ndt8yqovTo8p73i7g+NiJTLBT+eBXNwnjdneO/AcfGJQ3bTzRxzebszvWquoPCsS2C8L9LJbQ2lgM74u7T02zx5QDEh0v7DFEyf4JfGRzlriocOxroew0YdTQHqPlCDGxGE5LOKffcK2D+wzjY98SSi4EEkmxE6zaqT+cbG61PBb99vVNbEi68P1J3G4AaMsG4j+F2EMJ2soljSyNooDOMKPnAesFoAq13yqFDdbEi3xRyrPjyz9FB3kOzea/HB/eFNr6kZzc7UezAVT4B+l1ZpBYzf6OybcJyTUoKEVNlAX8JyizH6fZYGePQK2M/LG3bhbs6t/J9tLJeoBZi/19eM75lC6nOn4di+xiP8r5rBc8ZTq0RZFMTiF7fSgvhajNaSYfiYLipEvFox6FvOyy8RacoJ1eU2pOufDthO+POc03UYrQi1OGxPusY9ggnZetDd0FBdJq2jrQZ0brUlUtxDZCnX9DcShXsapEzgtkMVAg91QTUS/xxfjQ17Hl+zr5rxF9zg3JHu5dNOgHkFDcytcuG78HsycsGkEIluC6emr/MbKTpL3V2gVecJiwqBZN47Z11ht3z9f8SRsftSrI0fLie4PnlD2wUda52FEludqczMG7AvJCGJM6OuUsVwAyTqpO6hijCnP+3OBPztJehwfu7Qo9yilbyagofH9CC02OIcgIXoQ8z/SmUcqUTBe X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(346002)(136003)(376002)(39860400002)(66574015)(8936002)(8676002)(31696002)(478600001)(83380400001)(6916009)(2906002)(53546011)(52116002)(966005)(2616005)(5660300002)(316002)(786003)(66946007)(36756003)(86362001)(16526019)(186003)(66556008)(66476007)(31686004)(75432002)(6486002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?Windows-1252?Q?3Ka3IZydYCakZBr/2MTJriUgSgGECGFhYixJU13o87rXU5nyL6aEUfOo?= =?Windows-1252?Q?NPLhaz2Auy8abiYQmnFiYG46iFftYmAqs2D11oa3NmlprKz1tLk4xOni?= =?Windows-1252?Q?Hx1lz1W5GXPdUcRGQFF5L8fROmDwJFEAOKf88zIBdwEMow6sr8dhr9kc?= =?Windows-1252?Q?UBMdozTrT9z+kvGTBfVwRIrZsXRvG1z5lTMHkf3I+FdLhfB+vJg0TH9Q?= =?Windows-1252?Q?EjK/KmyCc99SIz/QRpMD2k6RneaPliZO5GsyRXKPKhp802dUvHKs2Ywm?= =?Windows-1252?Q?vgCvqKboiQTA2ud8wWNQKu2sa2PCp024RJ6+5K/JbkNcGCC1yIRGiXH9?= =?Windows-1252?Q?5eJqX34LxZ6FPcDtkcCDDH1woz+utfPrceTdXylSoSXW9utLju/mbwAh?= =?Windows-1252?Q?0lUbq4f7R+K1b5CIRb6qH1vTB8uCNh+Vx84GsjOyIsS/iCQyQINYQ/d/?= =?Windows-1252?Q?h8K582s+OcpqDS8R6blIL746RNKyD+ebyloGCopoiBDm4llHPmgffAAV?= =?Windows-1252?Q?Gy7p8teEO2dPWDuP5i0RtI1B41T6mOy1i29std6rmAJshSLlbdyCFBV1?= =?Windows-1252?Q?NVZzTPsoW1FHmyDmoVQn3CRSTb2U7ZmirGZYMdNazZcF9jQE6fxRxQcd?= =?Windows-1252?Q?KT6xDNczAQGpIuoTdqj87p/BegLRoPI0kfiTtAw9Wf/SDeegwpAfZjaI?= =?Windows-1252?Q?TADL4fY8wNATl5lw6sHFepo7LsvHHETQoZGsU/TnhMutUi3PUGy2IjYU?= =?Windows-1252?Q?QpnY9r0hVVRTawRzqRq6AaaMfdyqEJhK6heO+Kruicx72UNy+pkf5Vod?= =?Windows-1252?Q?MwvSDHlw5IcOubXqg05orQIaNkAswn6k+tLx0SFk661kWcldQBw9o5lQ?= =?Windows-1252?Q?yHf9X0E+72v4SzwxMayPN9F3AKblsv0pwlunw2N6/drJr/lqLnsHwJ+e?= =?Windows-1252?Q?ut6xzuRTeU7YNMAZJZedRaFSd5kLYMmpuduaijfFChSjU5AppC/u2vwk?= =?Windows-1252?Q?Sb9gqnlnRwBoBO4N0+5mMp5pPdfjDyXSRNTaavXeXArqxQqaOsx2V4YU?= =?Windows-1252?Q?t7nlSmAH64c3NymtxAyA7wG5GjrSXkhayrj9Q6gEFnzOIVSnLgmusTlt?= =?Windows-1252?Q?xpLhkqSOOmbcYnSER4m9Umpi+ALA04pPg1k/IHiDEYiKh88bGJdFh2R/?= =?Windows-1252?Q?BjMfKyHaOB4X1Za2NIMvkDxzkUfWDRvrIc6regjvmWj2cK313R8js9EA?= =?Windows-1252?Q?8qxwtlDBwRobzcM+WHZcQ6qhmC1ybt3ynJq7dqJ5HU9rqlQ2Tkhzp+Be?= =?Windows-1252?Q?MyYpEhOP43FZfn6hoy0W5J94GW/j7ME7eubI5KPxBeV5smTUoCxJSevO?= =?Windows-1252?Q?kybkiYtwFU2D7GQ7MSetJzF0N2AfSeXObSyZCdME6K2zc/GUuXZ3KQNN?= =?Windows-1252?Q?It5/bzdJ5+1ReXKEeyKKAD2R7BECAN5NuQhJHxn3mXmW6y0km88d+4rL?= =?Windows-1252?Q?/oDB8/iJ?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 5172ff44-c0bc-4424-33cd-08d8e0c38ca1 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2021 17:16:15.7363 (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: K1VO4UsotSri3THeD5r1C4tlr7i+7JcviLiyEt+Uo9Xx5RV3NHlMX7BH6Xd6Ddpn6dUGMKf19uyL0trJPs8+xw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0434 X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Ken Brown via Cygwin Reply-To: Ken Brown Content-Type: text/plain; charset="windows-1252"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 126HGRUZ025456 On 3/5/2021 8:45 PM, Takashi Yano via Cygwin wrote: > On Fri, 5 Mar 2021 17:30:30 +0100 > Marco Atzeri wrote: >> On 05.03.2021 15:42, Corinna Vinschen via Cygwin wrote: >>> On Mar 5 01:11, Mark Geisert wrote: >>>> Marco Atzeri via Cygwin wrote: >>>>> On 04.03.2021 21:17, Marco Atzeri wrote: >>>>>> On 04.03.2021 16:17, Ken Brown via Cygwin wrote: >>>>>>> On 3/4/2021 6:50 AM, Takashi Yano via Cygwin wrote: >>>>>>>> On Thu, 4 Mar 2021 12:11:11 +0100 >>>>>>>> marco atzeri wrote: >>>>>>>>> I have no problem to patch Python to solve the issue, >>>>>>>>> but I have not seen evidence of the dlsym mechanism . >>>>>>>>> But of course I an NOT and expert in this field. >>>>>>>>> >>>>>>>>> If someone looking to the code can give me some hints, >>>>>>>>> I will appreciate >>>>>>>> >>>>>>>> I am also not sure where the dlsym() is used in python. >>>>>>>> At least, os.uname() works in python 3.8.7 and 2.7.18 in my >>>>>>>> environment even without that snippet. It seems that os.uname() >>>>>>>> does not use dlsym(). Do I overlook something? >>>>>>> >>>>>>> This all started because Mark reported a problem building python 3.8.3: >>>>>>> >>>>>>>    https://cygwin.com/pipermail/cygwin-apps/2020-December/040765.html >>>>>>> https://cygwin.com/pipermail/cygwin-developers/2020-December/012019.html >>>>>>> >>>>>>> It's strange that Marco never bumped into the problem. >>>>>>> >>>>>>> Ken >>>>>> >>>>>> I never built python using cygwin snapshots as Mark was trying to do, >>>>>> all my builds were using 3.1.7. >>>>>> >>>>>> Let me set a separate enviroment for building on latest snapshot >>>>> >>>>> I can not replicate with latest snapshot >>>>> >>>>> $ uname -svr >>>>> CYGWIN_NT-10.0-WOW 3.2.0s(0.340/5/3) 2021-03-01 15:42 >>>>> >>>>> nor in 64bit when building 3.8.8 >>>>> >>>>> For what I see the DLL is always using a proper import >>>>> from cygwin1.dll >>>>> >>>>> $ objdump -x libpython3.8.dll |grep uname >>>>>         2b9de0   2170  uname >>>>>         2b9de8   2171  uname_x >>>>> >>>>> the only thing not standard on my build system is a case sensitive >>>>> filesystem and mount >>>> >>>> I had concerns that I had somehow corrupted my build environment, and it was >>>> Marco's successes that convinced me to reinstall 3.1.7 to recover a >>>> known-good environment. Then seeing Marco go ahead and release the >>>> different Python releases (yay!) I didn't investigate any further. >>>> >>>> I'm now trying to locate the os.uname usage of dlopen/dlsym again just for >>>> the record but am having some difficulty. I'll reply again when I've got >>>> it. >>> >>> Guys, >>> >>> if it turns out that we fixed a problem that doesn't actually is a >>> real-world problem, I'm wondering if we shouldn't just revert the Cygwin >>> patch we're talking about here (commit 532b91d24e9496) and be done with >>> it. >>> >>> Special casing dynamic loading of uname just to support some experimental >>> bordercase doesn't make much sense. In that case I'm all for "don't do >>> that"! >>> >>> >>> Corinna >> >> >> Python has a lot of problem but not this one for what I can see >> >> $ python3.8 /usr/lib/python3.8/test/pythoninfo.py | grep uname >> os.uname: posix.uname_result(sysname='CYGWIN_NT-10.0-19041-WOW64', >> nodename='LAPTOP-82F08ILC', release='3.1.7-340.i686', >> version='2020-08-22 19:03 UTC', machine='i686') >> >> and similar for the other version > > I also tried to build python 3.8.7, 3.8.3 and 3.7.9 under cygwin 32bit > and 64bit current git head with the commit 532b91d2 reverted. All trials > resulted in success. Moreover, os.uname() works expectedly. > > That is, the problem reported by Mark could not be reproduced. > https://cygwin.com/pipermail/cygwin-apps/2020-December/040765.html > > Updating something other than cygwin1.dll might fix the issue??? I wonder if Mark had a corrupt libcygwin.a installed at the time he encountered this problem. That would explain his observations, except for the claim that python was calling uname via dlopen/dlsym. I guess he's rechecking that claim. Mark, FWIW, I looked at the git history of python's Modules/posixmodule.c, and I can't see where they ever did this. Ken -- 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