delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/05/24/22:30:05

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44P2U58T3567276
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=cwRYzBs8
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9182385E45C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1716604204;
bh=LGTRyIQc1vJ578sfkOwkBz7s/utlml9JrNbwK5xZuVM=;
h=Date:To:cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=cwRYzBs8Ge3Z1+UXd2bQOnreuL63qQnM8LgCRDXR7EAoj5dZw99aG5l3QkE12TFBr
fHPNp12WJHXr5MNziP66avBROaeG1KAmENH5EarvqPzc40C0jXROWYa3ZRdOV+lr1q
8Y9Zj1MaGTW27cv0KH8zbn/xL67x5mP3znc+rLgM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D31093858403
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D31093858403
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716604185; cv=none;
b=QASWbXC1rrXizsdS+69PdvnYqJYQlWklwLmRCWs5Eg0jmR8HGT7e2jBm1uEKHlNbMP1yGn9xaA+fiuDXje87uAS+KGj0dALO3Mm9G4f7fGRBdHZegnZ5xbNZEDgbeor+8722cKKBdf3Z66U3ExSvuH3uN590Oz2zz+GDtWfSYZQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1716604185; c=relaxed/simple;
bh=kIzEznTXjiSk2V+X2McaoA/6kWjGhkoyX+/XeHqirOI=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=u/Qms+MFzWLHfap2H9JrewwC9BSa1IK0nWCiQoarZyCZpezMilnCN14jwi57w4xF41AMM7LIQLYmuQNU5V51lQsMREAEepevCZPiN3RKNpycIF75IxgCGBN1rArR6ZRfl2Wl5XKcvIb+m3uM0Sy+iLcIstHOJvpCHqZmy2u8B/o=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Fri, 24 May 2024 19:29:43 -0700 (PDT)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
cc: cygwin AT cygwin DOT com
Subject: Re: frequent hangs running ldd
In-Reply-To: <8292a53a-15f6-da7c-c1d8-201418d1c589@jdrake.com>
Message-ID: <cebac6b9-51e9-63fa-9d67-ef4f913160ca@jdrake.com>
References: <fd3b2d14-0d16-9e66-f7ea-daadc0c5bfcc AT jdrake DOT com>
<20240525045424 DOT ac58c0ff5e325706b2a5f014 AT nifty DOT ne DOT jp>
<0bd2f49b-93f6-7db4-32b6-7f3021db211e AT jdrake DOT com>
<20240525071739 DOT 167d0f2b66b3dd8d2313be19 AT nifty DOT ne DOT jp>
<199f58b5-be55-a490-b94c-8b1ec7ff10fe AT jdrake DOT com>
<74e13efb-885a-3a90-f530-a6aa14bc5953 AT jdrake DOT com>
<1048b7a2-34fc-616e-1f9e-ce46dbc6d704 AT jdrake DOT com>
<8292a53a-15f6-da7c-c1d8-201418d1c589 AT jdrake DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Fri, 24 May 2024, Jeremy Drake wrote:

> On Fri, 24 May 2024, Jeremy Drake wrote:
>
> > Looking at !address, it seems Windows put the PEB, TEBs, and stacks in the
> > area where the cygheap should be.  Way to go, ASLR :P
>
> I think the fix for this would be to add -Wl,--disable-high-entropy-va to
> ldh_LDFLAGS, as was done for strace and cygcheck at least.  I used peflags
> -d0 /usr/bin/ldh.exe and I'm not seeing a hang after that.

Sorry, that was peflags -e0 not -d0 (dynamicbase is still on):
$ peflags -v /usr/bin/ldh.exe
/usr/bin/ldh.exe:
coff(0x0226[+executable_image,+line_nums_stripped,+bigaddr,+sepdbg])
pe(0x0140[+dynamicbase,+nxcompat])

-- 
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

- Raw text -


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