[Top][All Lists]

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

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

From: Reiner Steib
Subject: Re: crash: memcpy, XChangeProperty, XSetTextProperty, XSetWMIconName, x_set_name_internal
Date: Mon, 05 Dec 2005 23:02:21 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Mon, Dec 05 2005, Eli Zaretskii wrote:

>> (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?

I'll try tomorrow when I'm back at this machine.  It would be useful
for me if you or someone else could tell me the exact gdb commands I
need to use.  My gdb knowledge is quite limited.

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

reply via email to

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