Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2002 15:07:20 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        John Polstra <jdp@polstra.com>
Cc:        obrien@freebsd.org, freebsd-alpha@freebsd.org
Subject:   RE: more on recent current alpha rtld/binutils breakage.
Message-ID:  <15460.12280.422482.620276@grasshopper.cs.duke.edu>
In-Reply-To: <XFMail.020208094643.jdp@polstra.com>
References:  <15460.3286.546477.700440@grasshopper.cs.duke.edu> <XFMail.020208094643.jdp@polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help

I put a tsleep in the trapsignal path and was able to print out the
map.

For this crash:

fatal user trap:

    trap entry     = 0x2 (memory management fault)
    faulting va    = 0x7540
    type           = access violation
    cause          = instruction fetch
    pc             = 0x7540
    ra             = 0x1600193a0
    sp             = 0xfffffe000b7e9e58
    usp            = 0x11fff6c8
    curthread      = 0xfffffe000b343200
        pid = 287, comm = du

The map looks like this at the time of the trap:

% cat /proc/287/map
0x11fe0000 0x12000000 1 0 0xfffffe000b790b40 rwx 1 0 0x2180 NCOW NNC default
0x120000000 0x120004000 1 0 0xfffffe000b7912c0 r-x 1 0 0x0 COW NC vnode
0x120012000 0x120014000 1 0 0xfffffe000b7b2640 rwx 1 0 0x2180 NCOW NNC default
0x160012000 0x16002e000 12 0 0xfffffe000b791b80 r-x 2 0 0x0 COW NC vnode
0x16003c000 0x16003e000 0 0 0xfffffe000b791b80 rwx 2 0 0x0 COW NC vnode
0x16003e000 0x160042000 1 0 0xfffffe000b791860 rwx 1 0 0x2180 NCOW NNC default


From the size of the rtld text (0x1b8a8) it certainly looks like the
kernel has loaded it in the range 0x160012000-0x16002e000 above.

Working on that assumption, the ra is at 0x1600193a0 - 0x160012000
or 0x73a0 byts into the file.  From nm, this puts the ra in
rtld_start:
<..>
0000000000007340 T _rtld_start
00000000000073e0 T _rtld_bind_start
<..>

So its like the _rtld function hasn't been relocated.

Drew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




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