Re: [gtk-list] Heisenberg was right?



On Mon, 8 Jun 1998, Rouat manu wrote:

> Hello, 
> 
> I'm having problems with a bug that I just can't really understand.
> It's perfectly deterministic (always occurs under the same conditions)
> but I have a way that seems really odd to make it disappear!!
> 
> Let me try to explain:
> I'm using entry boxes both as inputs as outputs.
> In one particular case, one of those outputs doesn't get 'refreshed'
> properly and the app crashes with :
> 
> ** WARNING **: invalid unclassed pointer in cast to `GtkEntry'

you usually get those warnings if you use a cluttered pointer,
i.e. one that point to some value, which is not a widget.

> 
> ** 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");

we'd need to see mote of your code to give more detailed information.

> 
> The bug vanishes! (is this what is called a Heisenbug? Changes behavior
> when you try to observe it?)
> 
> 
> I tried using gdb ,but I'm a bit unfamiliar with the tool. Is there
> anything that I should be looking for?
> 
> manu
>  

---
ciaoTJ



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