Quoting Keith Packard <[EMAIL PROTECTED]>:
> Around 10 o'clock on Jan 18, Havoc Pennington wrote:
>
> > The first thing to do is get a backtrace with full symbols, it might
> > just be some obvious thing. But in any case you could tell what line
> > the crash was on.
>
> Yes, it was pretty obvious.
>
> Index: xmag.c
> ===================================================================
> RCS file: /home/x-cvs/xc/programs/xmag/xmag.c,v
> retrieving revision 1.10
> diff -u -r1.10 xmag.c
> --- xmag.c 14 Dec 2001 20:02:11 -0000 1.10
> +++ xmag.c 18 Jan 2003 16:10:13 -0000
> @@ -403,7 +403,7 @@
> {
> int n;
> Arg wargs[3];
> - hlPtr data;
> + hlPtr data = 0;
>
> n = 0;
> XtSetArg(wargs[0], XtNuserData, &data); n++;
This is an interesting problem. The use of uninitialized variable
"data" isn't warned by the compiler because it's address is taken
and actually used. The value is not changed as the widget does not
have an userData resource. The callback was being called twice
due to wrong translation table for the pixLabel widget.
Paulo
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel