From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8oHnE1EDSWA7JwAAWB0awg (envelope-from ) for ; Wed, 10 Mar 2021 12:35:13 -0500 Received: by simark.ca (Postfix, from userid 112) id 434EF1EF78; Wed, 10 Mar 2021 12:35:13 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 874F41E793 for ; Wed, 10 Mar 2021 12:35:11 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 06ECB386F00E; Wed, 10 Mar 2021 17:35:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06ECB386F00E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615397711; bh=hG/+fuE5YFWScQV8GpOFqbhijPl3H3TkMFE50T6s7tY=; h=Date:To:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Gni4lLCa0/yYW9LQh0x2s/d1JFxkft+PbvLXegRJzt3trz8/zF+8VijWOYMy+GeSQ EdqJHz9J1Dz0s3bMK3ZIcgegCgc1VO2sOQylAjfpnAvuWe9+NQaSyWXdXVTsm+Bi4J RW44dHbQHB3lzLMcg4R89A+aWzPao4cmaTh+/oVw= Received: from sonic304-22.consmr.mail.ir2.yahoo.com (sonic304-22.consmr.mail.ir2.yahoo.com [77.238.179.147]) by sourceware.org (Postfix) with ESMTPS id 3A9103860C3E for ; Wed, 10 Mar 2021 17:35:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3A9103860C3E X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1615397706; bh=cPA1CyW5/bNvD/8LQVnuZUOk5TEqTIJlZadDdD2f/Wa=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=rT97vw4o/9vB5/5XHzGHB6fDqY4qbdBSybQ7fyao9Btdp+7uRJP6Z9ueM3x8+AgRZ8JLWhBnuYvUSU/YTC36o+hG5kAK8C5kPCUQgdeTsvNe3zB+ALY+WCqZMghbbAJ4ytMcQCajsCtajf88eZJt40haT8Dfu7oPUITMZF1wweNZ9uk5cti7SAv7EQ9PsTFcCN1LKccasd0NiQgSQrZr9WlKLblY2ELC7QAQOs9LR4l7wsm2v11BoblcTYHwJRiDV/9hjzO9kBR6ZH9YkkAK2I2gYGasBO9Ujdzv59/EbitPlHCrfrF39joCGKyyg8UDDvFL2u/Fj/3Bzeex9ByTFQ== X-YMail-OSG: jUUfKMsVM1nl72hJNnMYoqfN6mZRKvixecyQwrMULNXd2h7pExqBgJoYTqfi5La pqoaRfjmI9fQUGpQgRXMmlzxTQZjxqy1qEius08HQWjYC54wF89HyZ0rRm2Fqig1J8wkJSJmP5ti 4Ls1Mg8gaTebXPKdqAhAnZyaJNGTa5S.0ngD5xhiq0LpEVQE1jEpgAq4cFq3DM6pMuNEEjySoNIN GVgABPDEMIgpCFrGoEJFREMNjXl65rZ3eUtXwT8q13bKow7Ttk15810GmJ1m3WI5lStCmKCVYT8_ Te.7N4Czzj9CPPiMMEp_fDAAdZYPHqsXglz22sd2o41s5mlGmZRtLjUgxbKe5R8xDRFL4CFXRkEd U3dns8uNQdIdRdIg3uVSG_JGmBqhI7wcXthzldzxgYi2EEaVd1oy01vksGNGe1QBivOmfoMnPiRO teUHAlgq06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FQrue8bJYnD7aHY- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Wed, 10 Mar 2021 17:35:06 +0000 Date: Wed, 10 Mar 2021 17:35:02 +0000 (UTC) To: Eli Zaretskii Message-ID: <259022839.1083386.1615397702855@mail.yahoo.com> In-Reply-To: <83mtvbne96.fsf@gnu.org> References: <83czw7p4nd.fsf@gnu.org> <777379173.1335754.1615393830518@mail.yahoo.com> <83mtvbne96.fsf@gnu.org> Subject: Re: Subtle problems with "info sharedlibrary" on MS-Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.17872 YMailNorrin Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Hannes Domani via Gdb-patches Reply-To: Hannes Domani Cc: "gdb-patches@sourceware.org" Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Am Mittwoch, 10. M=C3=A4rz 2021, 17:51:43 MEZ hat Eli Zaretskii Folgendes geschrieben: > > Date: Wed, 10 Mar 2021 16:30:30 +0000 (UTC) > > From: Hannes Domani > > > > > . Some DLLs loaded explicitly via LoadLibrary don't show.=C2=A0 I ste= pped > > >=C2=A0=C2=A0 through the code which loads them and verified they load > > >=C2=A0=C2=A0 successfully; moreover, Process Explorer does show them l= oaded. > > >=C2=A0=C2=A0 But they are nowhere to be seem in "info sharedlibrary"s = display. > > > > > > . The "From" address shown by "info sharedlibrary" is different from > > >=C2=A0=C2=A0 the base address at which the DLL is loaded: it is 4KB hi= gher than > > >=C2=A0=C2=A0 the base address. > > > > > > Are these problems known?=C2=A0 I searched Bugzilla, but didn't find > > > anything pertinent. > > > > I'm not aware of these kind of problems. > > Is there any way I can try to reproduce this? > > The second one is easy: just debug any program that loads DLLs, either > because it requires them or loads them dynamically with LoadLibrary. > For example, debug gdb.exe itself, type "start", and then "info > shared".=C2=A0 You will see that the From address of each DLL ends in > "1000".=C2=A0 Now start Process Explorer and look at the Image Base or Ba= se > address of those same DLLs: you will see it is 1000 hex (4096 decimal) > lower than what GDB shows, i.e. the image start address ends in 0000, > being 64KB aligned. > > (I found this because AFAIU the handle returned by LoadLibrary is the > starting address where the DLL is loaded, and I saw the 4K mismatch > between that handle and what GDB was reporting as the starting > address.) Oh, that's what you mean. I think it always was like this, so I assumed this was intentional. It shows the address of the .text section, not of the DLL base. > For the first problem, I don't have an easy reproducer.=C2=A0 The only > situation where I saw it was in the native-comp branch of GNU Emacs, > which uses libgccjit to compile Lisp files into DLLs, then loads them > at run time.=C2=A0 If you can build that branch of Emacs, I can tell you > how to reproduce the first problem using that build.=C2=A0 However, maybe > you could see it also in other executables, if you carefully compare > what GDB reports against Process Explorer. Building Emacs is a bit too much for me right now, but I will see if I noti= ce it when I debug some other programs. Hannes