You are not logged in.

#1 2013-06-22 14:50:16

Registered: 2005-09-16
Posts: 40

does gdb/strace change the behavior of a program?

I'm having the same trouble as the user who posted this bug .  I'm trying what he tried, although I'm using strace rather than gdb.  Like him, gkrellm is not crashing for me when running through strace.  Do programs like strace and gdb alter the behavior of a program in any way?  I've totalled maybe 18 hours now.  On its own, gkrellm would definitely have crashed by now.



#2 2013-06-22 15:02:26

From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,615

Re: does gdb/strace change the behavior of a program?

Yes.  strace will impact the timing of a program (significantly).  This could impact timeouts and the interaction of multiple threads.  gdb has less impact on the timing than does strace, but gdb can stop an individual thread while (I believe) allowing other threads to continue.

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
How to Ask Questions the Smart Way


Board footer

Powered by FluxBB