From owner-freebsd-stable Sun Jun 3 11:55:46 2001 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id ACC0C37B405 for ; Sun, 3 Jun 2001 11:55:40 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.1) with ESMTP id f53ItY033281; Sun, 3 Jun 2001 11:55:34 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.3/8.11.0) id f53ItUB37467; Sun, 3 Jun 2001 11:55:30 -0700 (PDT) (envelope-from jdp) Date: Sun, 3 Jun 2001 11:55:30 -0700 (PDT) Message-Id: <200106031855.f53ItUB37467@vashon.polstra.com> To: stable@freebsd.org From: John Polstra Cc: andre.albsmeier@mchp.siemens.de Subject: Re: NIS/YP still broken! In-Reply-To: <20010603194836.A34626@curry.mchp.siemens.de> References: <200106022222.f52MMbR35496@vashon.polstra.com> <20010603194836.A34626@curry.mchp.siemens.de> Organization: Polstra & Co., Seattle, WA 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 In article <20010603194836.A34626@curry.mchp.siemens.de>, Andre Albsmeier wrote: > > The map here looks slightly different: > > 0x8048000 0x804d000 5 0 0xd6927ea0 r-x 1 0 0x0 COW NC vnode > 0x804d000 0x804f000 2 0 0xd6894d20 rw- 2 0 0x2180 NCOW NNC default > 0x804f000 0x8066000 16 0 0xd6894d20 rwx 2 0 0x2180 NCOW NNC default <--- additional > > 0x1804d000 0x1805e000 17 0 0xd73f4d80 r-x 10 5 0x0 COW NC vnode > 0x1805e000 0x1805f000 1 0 0xd7246ba0 rw- 1 0 0x2180 COW NNC vnode > 0x1805f000 0x18061000 2 0 0xd72ec540 rw- 2 0 0x2180 NCOW NNC default > 0x18061000 0x18069000 5 0 0xd72ec540 rwx 2 0 0x2180 NCOW NNC default > > 0x18069000 0x180e6000 103 0 0xc0280300 r-x 104 45 0x0 COW NC vnode > 0x180e6000 0x180eb000 5 0 0xd71fba20 rwx 1 0 0x2180 COW NNC vnode > 0x180eb000 0x180ff000 7 0 0xd7b96c60 rwx 1 0 0x2180 NCOW NNC default > > 0xbfbe0000 0xbfc00000 4 0 0xd79b18a0 rwx 1 0 0x2180 NCOW NNC default That's OK. > So im my case it is: > > |||||||||| > VVVVVVVVVV > 0x1804d000 0x1805e000 17 0 0xd73f4d80 r-x 10 5 0x0 COW NC vnode > 0x1805e000 0x1805f000 1 0 0xd7246ba0 rw- 1 0 0x2180 COW NNC vnode > 0x1805f000 0x18061000 2 0 0xd72ec540 rw- 2 0 0x2180 NCOW NNC default > 0x18061000 0x18069000 5 0 0xd72ec540 rwx 2 0 0x2180 NCOW NNC default > ^^^^^^^^^^ > |||||||||| Right. > 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.) John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message