[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: segv in 21.1 on Irix
From: |
Rohan Hart |
Subject: |
Re: segv in 21.1 on Irix |
Date: |
10 Jan 2002 15:00:09 -0800 |
rms@gnu.org (Richard Stallman) wrote...
> warning: Warning: GDB can't find the start of the function at
> 0xfb65c1c.
>
> This kind of thing can happen if the stack is screwed up.
> If the return address is clobbered then a function can
> return to a junk address.
>
> Is 0xfb65c1c the program counter? What sort of data is there?
> Does it look like real code, or other data? Does the memory
> even exist?
I discovered that it was a valid function but, while emacs was
compiled with gcc, only dbx, the sgi debugger, could comprehend the
stack at that point.
What's causing the crash is a failure of runtime linker (rld) to find
the function "setutent" which is very strange considering it's in
libc.so. After playing around with rld for a while I found that
forcing early binding of symbols by setting the environment variable
LD_BIND_NOW to 1 has (so far) stopped it from occuring.
That's using the MIPS cc compiler - gcc2.95.2 hits rld errors on all
kinds of functions, particularly X related ones though LD_BIND_NOW
seems to work here as well.
Rohan
- Re: segv in 21.1 on Irix,
Rohan Hart <=