X-Recipient: archive-cygwin@delorie.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:reply-to:to:subject:date:message-id
	:content-type:content-transfer-encoding:mime-version; q=dns; s=
	default; b=Ox6vnthZnLJzDTd6xLsgU+hQNw+gWnlZ/2kA+qppA0Rp50h/Gh9BT
	clen363rEHzKV3pbP8EIt0TcSwqt6SY+L3Yzb/k3lpckYdKtfKl+PjexZED4dXnh
	7HANhGBlzD2AYsPjH3xG15mrz6G/wAVJr7eHJ3P2pDQK2HGCca8orI=
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:reply-to:to:subject:date:message-id
	:content-type:content-transfer-encoding:mime-version; s=default;
	 bh=oi8OfbW58n0cFrAYILb6ZEnFKnM=; b=oR4byZuXfAseQke1RrEAhPTuvSre
	yi/+qc/11FF4T3IfuAw9B+zATQb+yqIP+HFzoyGRsq+02RypHvdbodvsaGmFwBIk
	2VcVy1WTJt31CAhC2YKQyQUdweHHvurEtHH9a2uVZoBBJ2RSUqOnVbb95f5idmdl
	ewP7+nhGS/1icOU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=
X-HELO: nihcesxwayst03.hub.nih.gov
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;  d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1562620019;  x=1594156019;  h=from:to:subject:date:message-id:   content-transfer-encoding:mime-version;  bh=kbJN/5tsig899y9djNPeKkC4axs8lfaIEirmX5v/1vI=;  b=EFKC5WbvBY4VwtBVxCbejtJrdZOszByfLuBzWkrkrsCbr4ukz0ejrLc+   bYS7lE2TYorPKmKFHX1r9DMjC0enRmhgLWJ5e3ToR9wI1hCLftGlPULKb   dkv/YwEgyxbMpgY/yok90zX5xc3I+d5YaGX5yUgimhxTtq7/PmGOU71YV   5I2Y2eaaPDNN4RzPpr33GmP4YpZ2disIda4BOE1vqi0soM+gmSQkb0Tus   BQHlDp6a5nMnXN281dFmVxn7yCRpwiwzuOP8GgxzoUuK+cDyVQLhB4YV8   6HCPyh2OYHPkSRq1nbxOg4TK3VQDSavvlFpHs0cO4+mJsNq2QoBhJAcEg   w==;
IronPort-SDR: v2pZB032VcsqBdaEf2+RiwBVPJnLnjRM/2N9K+lj1TDTpVrm75Qey2cSJctm2z44dGdEDAe6gQ fjL3wSieIwUQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.onmicrosoft.com; s=selector1-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kbJN/5tsig899y9djNPeKkC4axs8lfaIEirmX5v/1vI=; b=c7TmhNS05rJUo2x7gPvRl8SOGa4C9S9Ku8B45F6qAHWTO+jaFiK+PydFo8+WK87I4rMbSiZyNqjkJQnIrnL50dN1Nebfu3NFmhKjERnShamD8QTu1zdMBkDpWqPhDHjQr6d4rSCBJ3fFxyUMlwbwr8ZQ8w6VDKZ1b4eEghSbUvg=
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin@cygwin.com>
Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Re: Question about the ldd output
Date: Mon, 8 Jul 2019 21:05:46 +0000
Message-ID: <BN6PR09MB2227649A09170D6AF827F56BA5F60@BN6PR09MB2227.namprd09.prod.outlook.com>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr@ncbi.nlm.nih.gov;
x-ms-oob-tlc-oobclassifiers: OLM:3968;
x-ms-exchange-senderadcheck: 1
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: lavr@nih.gov
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x68L7bCl004877

> But it gets even weirder.  Below are two _consecutive!_ runs of ldd on the very same executable.  Why the output differs so drastically (including the unknown dlls all of a sudden)?

Another round of consecutive calls of ldd on the very same executable file, and a similar "indeterministic" result (the executable itself is much simpler than the one from my previous post, so the list of DLLs is quite short):

1.
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffc339d0000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffc31a00000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffc30090000)
        cyggcc_s-seh-1.dll => /usr/bin/cyggcc_s-seh-1.dll (0x3ee3a0000)
        ??? => ??? (0xc90000)
        cygwin1.dll => /cygdrive/u/2.4.0/release/Cygwin-64/bin/cygwin1.dll (0x180040000)

2.
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffc339d0000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffc31a00000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffc30090000)
        cygwin1.dll => /cygdrive/u/2.4.0/release/Cygwin-64/bin/cygwin1.dll (0x180040000)
        cyggcc_s-seh-1.dll => /usr/bin/cyggcc_s-seh-1.dll (0x3ee3a0000)

How can that be?


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


