From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by sourceware.org (Postfix) with ESMTPS id 088473AA9916 for ; Thu, 4 Mar 2021 15:52:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 088473AA9916 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MUok5-1l8s7y2ID3-00QoCU for ; Thu, 04 Mar 2021 16:52:23 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 194CFA805CE; Thu, 4 Mar 2021 16:52:23 +0100 (CET) Date: Thu, 4 Mar 2021 16:52:23 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: segfault on 32bit cygwin snapshot Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <9d7b9dc2-cb92-498b-7655-e9c618114c87@gmail.com> <20210221072954.db2dcbd523ed366e4dfcb0d0@nifty.ne.jp> <7480c946-8e02-aba2-c06f-6b39f630699f@gmail.com> <20210301095546.dce31a474bd0cec2c3518f87@nifty.ne.jp> <20210301212542.8b1749f92af62c01b008f25a@nifty.ne.jp> <20210302200308.62db4fe01f78fb35a538784f@nifty.ne.jp> <20210303185621.b048287526901af6a4c8200a@nifty.ne.jp> <20210304180534.7c3825e6ee989a2bf62f0652@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210304180534.7c3825e6ee989a2bf62f0652@nifty.ne.jp> X-Provags-ID: V03:K1:tOCEmflO0r6q0Hl8tCzLKoE+nx2FHN4v7iWntZu0PPMXJQfb43p /mcPc7bevHB+jnp7QgSwhvpqSSuV7bmnJkjkSR9+3IxAS2zQ7cVXZC88bNlRZebKhWuPObP onqghdNhYuhq3tqUBm9SGzLtlLKtcy/CeAZH134u0QduP3nR1HvCWpefTiJJ18zPyaCyivD +FDZIzJGO9c0CrM7q2eEg== X-UI-Out-Filterresults: notjunk:1;V03:K0:hw4qLALnXjg=:5SbfPnpDgBZY2YlGo7ki7l dmzzS0O44SYwSRnG9t44b2R+wgaPKmHdD0V1cxn4SV5qF5VNAxnzGxZ4ylE+tv95667aEKNXm LQp5W/edu5xWKRtINGJtJbBxw8J7GIlQJGJy6N1oGtBGPB/rQzdvcu9LjJnBerRWbf82zMDM8 zBVnjyjR++GnAUKH3+A2xF+IGLQvleVFeNW9RntwuOZxq3Th6e7i1J702pB1us9t7t5vF5zZD sejlbxIWgOCBGgvHywucZ+Z4smvCToCRXMOfZ9XPr2ZluxHuOVhOUcQsBy1xOZKl/RoT6G/xN mkp5YYgTGvWlQrj+6Do9PtVNrpDW3S411/Pcls9bgunAgtWIJDqf5dJCdIi/RCKnk9KRkN8A1 AUOV0YJgh2pw984dTkHVTQalpMecm/aaJVO5yYRF9bSTFqASkJ2BjlM5xu7OBY+CGZqiPhZdm r4aLzlGGHv19eaJrjT1FEycYEdxC3mDgSl+HPN1WS9kM2/o2u9XD1Z4Xqgva3Q9ce9iLOfVk3 A== X-Spam-Status: No, score=-101.1 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham 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: Thu, 04 Mar 2021 15:52:29 -0000 On Mar 4 18:05, Takashi Yano via Cygwin wrote: > Hi Corinna, > > On Wed, 3 Mar 2021 12:00:25 +0100 > Corinna Vinschen wrote: > > [Ping Mark Geisert] > > > > Is there a way around that? I'm not quite sure, so let's brain storm > > a bit, ok? > > > > - One thing we could try is to remove the above code, but add a python > > hack to dlsym instead. This would let the "old" DLLs work again as > > before and for python we could add a hack to dlsym, along these lines: > > > > if (CYGWIN_VERSION_CHECK_FOR_UNAME_X > > && modulehandle == cygwin1.dll > > && strcmp (symname, "uname")) > > symname = "uname_x"; > > > > Thoughts? Other ideas? > > It sounds very reasonable to me to deal with it within dlsym(), > as the problem arises from the use of dlsym(). However, what > happens if newly built .exe is linked to old dll which calls > uname() via dlsym()? I am not sure whether there are such dlls. We simply can't fix that, because we don't have a Cygwin-specific per-DLL information block as we have for EXEs. There's no way to workaround that problem. Corinna