Re: [gtk-list] Heisenberg was right?



) <snip description of bug>
)** ERROR **: sigsegv caught
)
)This bug disappeared when I tried to see what happened, and added in 
)the function that made the bad call a simple
)printf("I'm here\n");
)
)The bug vanishes! (is this what is called a Heisenbug? Changes behavior
)when you try to observe it?)

Yessir! This is definately a Heisenbug.
It's very very probable the bug will go away, though, if you turn off
optimizing...  this looks like a well-known bug in the GCC optimizer
It usually goes away if you do -fno-strength-reduce
(You could also try upgrading your compiler, although I've heard
 some bad things about GCC 2.8.1 optimizing....)

The reason that the bug goes away if you add a printf is that then
some variable may get assigned a stack position or something like that..

Shade and Sweet Water,
-- 
Willem (@stack.nl)
Disclaimer: I am in no way responsible for any of the statements
            made in the above text. For all I know I might be
            drugged or something..
            No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]