From owner-cvs-all Fri Feb 1 14:41:13 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 7696437B402; Fri, 1 Feb 2002 14:41:01 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 424265344; Fri, 1 Feb 2002 23:41:00 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: John Hay Cc: obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/contrib/binutils References: <200202011843.g11Ihsj66783@zibbi.icomtek.csir.co.za> From: Dag-Erling Smorgrav Date: 01 Feb 2002 23:40:59 +0100 In-Reply-To: <200202011843.g11Ihsj66783@zibbi.icomtek.csir.co.za> Message-ID: Lines: 28 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 John Hay writes: > #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 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. DES (who builds world with DEBUG_FLAGS=-g and STRIP="") -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message