Date: Sun, 3 Jun 2001 22:27:08 +0200 From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: John Polstra <jdp@polstra.com> Cc: stable@freebsd.org, andre.albsmeier@mchp.siemens.de Subject: Re: NIS/YP still broken! Message-ID: <20010603222708.A35010@curry.mchp.siemens.de> In-Reply-To: <200106031855.f53ItUB37467@vashon.polstra.com>; from jdp@polstra.com on Sun, Jun 03, 2001 at 11:55:30AM -0700 References: <Pine.BSF.4.33.0106021209140.10271-100000@klima.physik.uni-mainz.de> <200106022222.f52MMbR35496@vashon.polstra.com> <20010603194836.A34626@curry.mchp.siemens.de> <200106031855.f53ItUB37467@vashon.polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010603222708.A35010>