You are not logged in.

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

onesandzeros
Member
Registered: 2005-09-16
Posts: 41

does gdb/strace change the behavior of a program?

I'm having the same trouble as the user who posted this bug https://bugs.archlinux.org/task/35644 .  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.

Thanks!

Offline

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

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,768

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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB