Re: question - inconsistent results from ptrace

2009-04-27 Thread Roni Simonian
Thank you so much, Roland! But this is really not the place to discuss arcane implementation choices in glibc. Sorry for posting the question in a wrong place... I thought that the problem could have something to do with ptrace or with me using it incorrectly. And I could not find any other

Re: question - inconsistent results from ptrace

2009-04-26 Thread Roni Simonian
Hi Roland, I followed your advice and looked at the registers. Here is what I found: The function that behaves inconsistently is _dl_start in ld-2.8.so. Most of the time the first variation in the flow occurs as early as 296 instructions down the road, namely at the jump 30b3b0:0f 86 d7

Re: question - inconsistent results from ptrace

2009-04-26 Thread Roni Simonian
Thank you for the response, Roland! Off hand, it seems more likely there is some authentic variation between runs for whatever reason than that this has something to do with ptrace. I agree, it most likely has to do with the process itself. I am puzzled because something as simple as "hello w

question - inconsistent results from ptrace

2009-04-25 Thread Roni Simonian
Hello everybody, I noticed a very strange phenomenon - not sure if it's caused by ptrace, but I cannot understand why is it happening... Here is a simple example (the code is attached below): trace a very simple process (even "Hello World!" will do) with PTRACE_SINGLESTEP and count # of step