From owner-freebsd-stable Sun Jun 3 13:27:17 2001 Delivered-To: freebsd-stable@freebsd.org Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id BF0FA37B403 for ; Sun, 3 Jun 2001 13:27:13 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.11.0/8.11.0) with ESMTP id f53KR9504555; Sun, 3 Jun 2001 22:27:09 +0200 (MET DST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail2.siemens.de (8.11.0/8.11.0) with ESMTP id f53KR9h00996; Sun, 3 Jun 2001 22:27:09 +0200 (MET DST) Received: (from localhost) by curry.mchp.siemens.de (8.11.3/8.11.3) id f53KR8u19095; Date: Sun, 3 Jun 2001 22:27:08 +0200 From: Andre Albsmeier To: John Polstra Cc: stable@freebsd.org, andre.albsmeier@mchp.siemens.de Subject: Re: NIS/YP still broken! Message-ID: <20010603222708.A35010@curry.mchp.siemens.de> References: <200106022222.f52MMbR35496@vashon.polstra.com> <20010603194836.A34626@curry.mchp.siemens.de> <200106031855.f53ItUB37467@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106031855.f53ItUB37467@vashon.polstra.com>; from jdp@polstra.com on Sun, Jun 03, 2001 at 11:55:30AM -0700 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Done, I have now: > > > > static char *rtld_base = (char *)0x1804d000; /* Patch me */ > > static char *rtld_limit = (char *)0x18069000; /* Patch me too */ > > Right. > > > I have a corefile but can't debug it: > > > > Core was generated by `yppush'. > > Program terminated with signal 11, Segmentation fault. > > Cannot access memory at address 0x180600a8. > > #0 0x1804f358 in ?? ()Cannot access memory at address 0x180600a8. > > > > Anything I did wrong? > > No, I forgot a step. :-) When you run yppush, set LD_BIND_NOW=1 in the > environment. (And I _hope_ that won't make it stop failing.) Hmm it still fails but it seems to be at a different location. I now get the (correct) messages from yppush before it fails. However, the gdb didn't reveal anything new: Core was generated by `yppush'. Program terminated with signal 11, Segmentation fault. Cannot access memory at address 0x180600a8. #0 0x18050d50 in ?? ()Cannot access memory at address 0x180600a8. I then ran yppush within gdb: (gdb) set args ypservers (gdb) run Starting program: /tmp/yppush ypservers yppush: transfer of map ypservers to server printfix.ofw.tld failed yppush: status returned by ypxfr: Master's version not newer yppush: transfer of map ypservers to server server.ofw.tld failed yppush: status returned by ypxfr: Master's version not newer Program received signal SIGSEGV, Segmentation fault. Cannot remove breakpoints because program is no longer writable. It might be running in another process. Further execution is probably impossible. 0x18050d50 in find_symdef ()Error accessing memory address 0x180600a8: Bad address. And here the output when runnning within gdb but without LD_BIND_NOW=1 (gdb) set args ypservers (gdb) run Starting program: /tmp/yppush ypservers Program received signal SIGSEGV, Segmentation fault. Cannot remove breakpoints because program is no longer writable. It might be running in another process. Further execution is probably impossible. 0x1804f358 in _rtld_bind_start ()Error accessing memory address 0x180600a8: Bad address. I will dig around a bit more... -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message