From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2570 invoked by alias); 31 Aug 2010 11:26:55 -0000 Received: (qmail 2523 invoked by uid 48); 31 Aug 2010 11:26:55 -0000 Date: Tue, 31 Aug 2010 11:26:00 -0000 Message-ID: <20100831112655.2522.qmail@sourceware.org> From: "rguenth at gcc dot gnu dot org" To: gdb-prs@sourceware.org In-Reply-To: <20100710211433.11804.jan.kratochvil@redhat.com> References: <20100710211433.11804.jan.kratochvil@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug corefiles/11804] Fix -Wl,-z,relro gcore writer (+maybe reader) X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00335.txt.bz2 ------- Additional Comments From rguenth at gcc dot gnu dot org 2010-08-31 11:26 ------- Hm, it doesn't seem to work reliably for me (it works for dumping core of /bin/sleep). If I dump core of a running /usr/lib/postfix/qmgr on load I get # gdb /usr/lib/postfix/qmgr Reading symbols from /usr/lib/postfix/qmgr...Missing separate debuginfo for /usr/lib/postfix/qmgr Try: zypper install -C "debuginfo(build-id)=a67933b04330530f5e80941c968ba3623b1fd5ac" (no debugging symbols found)...done. (gdb) set debug solib (gdb) set verbose (gdb) core core.4529 svr4_current_sos: exec_bfd /usr/lib/postfix/qmgr elf_locate_base: found program entry address 0x7fac68ab63a0 for /usr/lib/postfix/qmgr elf_locate_base: expected relocation offset 0x7fac68ab2000 for /usr/lib/postfix/qmgr elf_locate_base: .dynamic section found in /usr/lib/postfix/qmgr elf_locate_base: .dynamic addr 0x20fbc0 elf_locate_base: read in .dynamic section elf_locate_base: tag at offset 0x0 is not readable, dropping relocation offset 0x7fac68ab2000 elf_locate_base: found program entry address 0x7fac68ab63a0 for /usr/lib/postfix/qmgr elf_locate_base: expected relocation offset 0x7fac68ab2000 for /usr/lib/postfix/qmgr elf_locate_base: .dynamic section found in /usr/lib/postfix/qmgr elf_locate_base: .dynamic addr 0x20fbc0 elf_locate_base: read in .dynamic section elf_locate_base: tag at offset 0x0 is not readable, dropping relocation offset 0x7fac68ab2000 elf_locate_base: unrelocated ptr addr 0x20fd18 elf_locate_base: relocated ptr addr 0x20fd18 (relocation offset 0x0) for /usr/lib/postfix/qmgr elf_locate_base: Tag entry has value 0x0 -- return now svr4_current_sos: no DT_DEBUG found in /usr/lib/postfix/qmgr -- return now the program address looks good, the .dynamic section in the running process is mapped like 7fac68cc1000-7fac68cc2000 r--p 0000f000 08:06 360346 /usr/li b/postfix/qmgr Size: 4 kB Rss: 4 kB Pss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 4 kB Private_Dirty: 0 kB Referenced: 4 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB 7fac68cc2000-7fac68cc3000 rw-p 00010000 08:06 360346 /usr/li b/postfix/qmgr Size: 4 kB Rss: 4 kB Pss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Referenced: 4 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB 7fac68cc3000-7fac68cfe000 rw-p 00000000 00:00 0 [heap] thus the relocated address should be not in the core file but taken from /usr/lib/postfix/qmgr - but that fails. Is this not available at this point or where do I need to dig? I'm not too familiar with the gdb codebase... -- What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu dot | |org http://sourceware.org/bugzilla/show_bug.cgi?id=11804 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.