From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 328 invoked by alias); 22 Nov 2009 16:04:14 -0000 Received: (qmail 32660 invoked by uid 22791); 22 Nov 2009 16:04:13 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Nov 2009 16:03:26 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAMG3Ffm004900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 22 Nov 2009 11:03:15 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAMG3BJR007493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Nov 2009 11:03:15 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id nAMG3AA4023100; Sun, 22 Nov 2009 17:03:10 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id nAMG3AKw023098; Sun, 22 Nov 2009 17:03:10 +0100 Date: Sun, 22 Nov 2009 16:04:00 -0000 From: Jan Kratochvil To: "Joseph S. Myers" , gdb-patches@sourceware.org Subject: Re: Fix Solaris gcore / shared libraries interaction Message-ID: <20091122160309.GA22717@host0.dyn.jankratochvil.net> References: <20091122143421.GA18630@host0.dyn.jankratochvil.net> <20091122151815.GA32439@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091122151815.GA32439@caradoc.them.org> User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00478.txt.bz2 On Sun, 22 Nov 2009 16:18:15 +0100, Daniel Jacobowitz wrote: > On Sun, Nov 22, 2009 at 03:34:21PM +0100, Jan Kratochvil wrote: > > Isn't suitable the GDB change for the core file loading never replied here? > > [patch] Fix GNU/Linux core open: Can't read pathname for load map: Input/output error. > > http://sourceware.org/ml/gdb-patches/2009-10/msg00142.html > > No. In that patch, the name of one DSO (the vDSO) is in another DSO > (ld.so). In the Solaris case, the name of ld.so is in its own > read-only segment. So if you don't dump that page into the core file, > no matter how you iterate you will never find the path to ld.so. OK, I cannot say more as it is not reproducible for me on OpenSolaris 2009.06 snv_111b X86 so it may affect only older Solaris versions: On Sat, 21 Nov 2009 01:10:27 +0100, Joseph S. Myers wrote: # With some versions of the Solaris 10 dynamic linker, Seeing on OpenSolaris 2009.06 snv_111b X86 no GDB warnings and: (gdb) info sharedlibrary LM_NAME=0xfefa009f LM_NAME=0xfefa0000 >From To Syms Read Shared Object Library 0xfee6e0d0 0xfef25c00 Yes (*) /lib/libc.so.1 0xfefc52a0 0xfefe61fb Yes (*) /lib/ld.so.1 core: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x155f10 0xfefa0000 0x00000000 0x01000 0x01000 RW 0 gcore: LOAD 0x15471c 0xfefa0000 0x00000000 0x01000 0x01000 RW 0x1 (gdb) info sharedlibrary LM_NAME=0xfffffd7fff380094 LM_NAME=0xfffffd7fff380000 >From To Syms Read Shared Object Library 0xfffffd7fff220940 0xfffffd7fff2eaf88 Yes (*) /lib/64/libc.so.1 0xfffffd7fff3bb3d0 0xfffffd7fff3e5a2e Yes (*) /lib/amd64/ld.so.1 core64: Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x1afa0c 0xfffffd7fff380000 0x0000000000000000 0x001000 0x001000 RW 0 gcore64: LOAD 0x017bf0 0xfffffd7fff380000 0x0000000000000000 0x001000 0x001000 RW 0x1 Regards, Jan