emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: crash: memcpy, XChangeProperty, XSetTextProperty, XSetWMIconName, x_


From: Eli Zaretskii
Subject: Re: crash: memcpy, XChangeProperty, XSetTextProperty, XSetWMIconName, x_set_name_internal
Date: Mon, 05 Dec 2005 20:58:59 +0200

> From: Reiner Steib <address@hidden>
> Cc: address@hidden
> Date: Mon, 05 Dec 2005 19:42:02 +0100
> 
> (gdb) frame 5
> #5  0x00000000004c874e in x_set_name_internal (f=0x3563680, name=Variable 
> "name" is not available.
> )
>     at [...]/emacs/src/xfns.c:1657
> 1657            XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), 
> &icon);
> (gdb) p f
> $1 = 0x3563680
> (gdb) p icon
> $2 = {
>   value = 0x71ab178 <Address 0x71ab178 out of bounds>, 
>   encoding = 31, 
>   format = 8, 
>   nitems = 9
> }

Well, that's your problem, right there: icon.value is garbled.  Can
you try to see why it got garbled, and in what line?  In particular,
is f->icon_name a NULL pointer or not (that determines, a few lines
before the call to XSetWMIconName, where icon.value comes from).

Also, what is the value of `name' passed to x_set_name_internal?  It
is not visible in the call to x_set_name_internal, due to compiler
optimizations, but perhaps you can find that out in higher frames,
above frame #5?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]