Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2001 11:55:30 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        stable@freebsd.org
Cc:        andre.albsmeier@mchp.siemens.de
Subject:   Re: NIS/YP still broken!
Message-ID:  <200106031855.f53ItUB37467@vashon.polstra.com>
In-Reply-To: <20010603194836.A34626@curry.mchp.siemens.de>
References:  <Pine.BSF.4.33.0106021209140.10271-100000@klima.physik.uni-mainz.de> <200106022222.f52MMbR35496@vashon.polstra.com> <20010603194836.A34626@curry.mchp.siemens.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20010603194836.A34626@curry.mchp.siemens.de>,
Andre Albsmeier  <andre.albsmeier@mchp.siemens.de> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106031855.f53ItUB37467>