[Linux-ia64] Re: strace improvement patch

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-01-09 10:43:22
>>>>> On Wed, 8 Jan 2003 14:17:06 -0800, Roland McGrath <roland@redhat.com> said:

  Roland> Thanks, David.  That original patch was indeed by me.  I am
  Roland> now doing most of the strace maintenance on the sourceforge
  Roland> version directly.

I'm very happy to hear that.  Seems like you have made lots of nice
improvements already.

  Roland> I was already planning to merge those changes in, along with
  Roland> some more clone-related changes I have to handle the 2.5
  Roland> threads stuff that I will finish up and merge.  I will
  Roland> incorporate your fixes and test it on IA64 before I commit
  Roland> those changes.


>>>>> On Wed, 8 Jan 2003 14:20:02 -0800, Roland McGrath <roland@redhat.com> said:

  >> Also, I'd recommend to use gcc-3.2 for compiling strace.  I
  >> encountered some strange bugs with gcc-2.96, though I did not try to
  >> track them down.  With gcc-3.2, those bugs went away and strace now
  >> seems to work quite nicely (once again, that is).

  Roland> Can you give me at least a clue what to look for?

Sure thing: what happened is that after an execve(), all syscall
result values would come out wrong (usually as 0x8000000000000000 or
-9223372036854775808).  It didn't always happen, and the problem
usually went away whenever I tried to track it down by adding printfs.
I think the problem was that strace got out of sync and thought that
the program was returning from a syscall when it was actually entering

Received on Wed Jan 08 15:46:36 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:11 EST