From owner-cvs-all Fri Feb 1 21: 0:41 2002 Delivered-To: cvs-all@freebsd.org Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by hub.freebsd.org (Postfix) with ESMTP id D625F37B41D; Fri, 1 Feb 2002 21:00:02 -0800 (PST) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.11.6/8.11.6) id g124xdL87420; Sat, 2 Feb 2002 06:59:39 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <200202020459.g124xdL87420@zibbi.icomtek.csir.co.za> Subject: Re: cvs commit: src/contrib/binutils In-Reply-To: from Dag-Erling Smorgrav at "Feb 1, 2002 11:40:59 pm" To: des@ofug.org (Dag-Erling Smorgrav) Date: Sat, 2 Feb 2002 06:59:39 +0200 (SAT) Cc: jhay@icomtek.csir.co.za (John Hay), obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > #0 0x2805353a in reloc_non_plt (obj=0x0, obj_rtld=0x0) > > at /home/src/libexec/rtld-elf/i386/reloc.c:196 > > 196 *where += (Elf_Addr) obj->relocbase; > > [...] > > It seems as if the stack or something gets clobbered in reloc_non_plt() > > because obj has been used earlier in the function and didn't cause a bus > > error then. > > No. The problem isn't obj, the problem is where, which is computed a > few lines earlier, right before the switch: > > Elf_Addr *where = (Elf_Addr *) (obj->relocbase + rel->r_offset); > > Try > > (gdb) p where > (gdb) p *obj > (gdb) p *rel (gdb) p where $9 = (Elf_Addr *) 0x2808815d (gdb) p *obj Cannot access memory at address 0x0. (gdb) p *rel $10 = {r_offset = 115037, r_info = 8} (gdb) > > where is probably way off in never-never land, which is possibly the > result of a bug in binutils, and possibly the result of a bug in > rtld-elf. JDP should be able to help, given a proper backtrace. I'll > try to reproduce the problem and produce one. What is a proper backtrace? John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message