Re: I think I found a freak bug on GTK+-1.3.15
- From: Paul Davis <pbd Op Net>
- To: Rams s Morales <ramses computer org>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: I think I found a freak bug on GTK+-1.3.15
- Date: Tue, 26 Feb 2002 17:22:03 -0500
>If I compile an app with this two lines:
>
>GtkTreeViewColumn *ca;
>GtkTreeViewColumn *cb;
>
>When I run the app, I get a Segmentation Fault. *cb isn't used on the
>code.
>
>If I compile the app after comenting:
>
>GtkTreeViewColumn *ca;
>/*GtkTreeViewColumn *cb;*/
>
>...it runs nicely.
>
>This is wierd.
it may or may not be wierd, but its the classic fingerprint of a
memory overrun bug in your code. the extra declaration of "cb" changes
the memory layout of other variables in a way that causes the memory
overrun to have a visible effect.
there are not too many fast ways to debug this. electric fence is not
bad, dmalloc can help sometimes, purify is good but costs money for
the real thing and is pretty big. i generally find that deep
meditation while reading the code and a few printfs most helpful.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]