[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb and strace mal-functioning in a telnet console
On Sun, 9 Aug 1998, Shlomi Fish wrote:
> Similiarly, if I type "strace ls" then strace prints
> "execve("/bin/ls"...)" and then gets stuck. This time, I can terminate it
> with Ctrl+C.
>
> Does anybody have any idea what is causing this problem and how to resolve
> it?
no, but we can try to come up with some strange ideas:
1. run the command in the background, and then attach the debugger (or
strace) to it - debugger by supplying pid after binary file name.
strace - using the '-p' flag. does that work any better?
2. 'su' to root and try runing 'strace' under root?
3. does the 'ls' program run properly without using strace on it? that was
not mentioned in your original letter, i think.
4. try running 'ldd /bin/ls' - does it work - or also gets stuck?
if it gets stuck, start suspecting that your '/bin/ld.so' has lost it.
maybe just running 'ldconfig' would solve a stale ld.so cache problem?
maybe removal of /etc/ld.so.cache and then ldconfig would solve it?
5. did that machine ever had gdb and strace working properly and then it
got screwed up sometime, or gdb and strace never worked properly on it?
etc. etc. etc. maybe by checking these things, new ideas will come up.
guy