Different execution with and without gdb

Hi,

I have read on a blog(don't remember which one)the experience of the owner that when executing a program that he made, it ended segfaulting. However, when he tried to debug it wiht gdb, everything went smoothly. He(and I, since I'm posting this) didn't know what was happening.


How is that possible? Is the debugger messing with the code or what?

Thanx.
Did the program use threads?
Yeah. Forgot that thing. With threads the debugging thing is different?

Thanx.
I don't know but my thought was that the debugger slows down the program which might affect the timing between threads so that things happens different than without the debugger.
Topic archived. No new replies allowed.