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: Reiner Steib
Subject: Re: crash: memcpy, XChangeProperty, XSetTextProperty, XSetWMIconName, x_set_name_internal
Date: Thu, 08 Dec 2005 15:25:40 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Tue, Dec 06 2005, Eli Zaretskii wrote:

>> From: Reiner Steib <address@hidden>
>> Date: Tue, 06 Dec 2005 14:13:21 +0100
>> 
>> (gdb) frame 6
>> #6  0x000000000047433c in prepare_menu_bars ()
>>     at .../emacs/src/xdisp.c:8808
>> 8808            x_implicitly_set_name (f, make_string (title, len), Qnil);
>> (gdb) p name
>> No symbol "name" in current context.
>
> `name' is a Lisp string produced from the C string `title'.
>
>> (gdb) p f
>> $4 = (struct frame *) 0x3563680
>> (gdb) p title
>> No symbol "title" in current context.
>
> `title' is computed a few lines above like so:
>
>    title = mode_line_noprop_buf + title_start;
>
> So the command "p mode_line_noprop_buf + title_start" might show the
> title string.

(gdb) frame 6
#6  0x000000000047433c in prepare_menu_bars ()
    at [...]/emacs/src/xdisp.c:8808
8808            x_implicitly_set_name (f, make_string (title, len), Qnil);
(gdb) p mode_line_noprop_buf + title_start
No symbol "title_start" in current context.
(gdb) p mode_line_noprop_buf
$8 = 0xdab070 "*vc-diff*els-cache.elache.el (rev 6.26.2.8)* on gnu.emacs.gnus*"
(gdb) p title_start
No symbol "title_start" in current context.
(gdb) p f->name
$9 = 85811859
(gdb) xtype
Lisp_String
(gdb) xstring
$10 = (struct Lisp_String *) 0x51d6290
"*vc-diff*"
(gdb) p mode_line_noprop_buf
$11 = 0xdab070 "*vc-diff*els-cache.elache.el (rev 6.26.2.8)* on gnu.emacs.gnus*"
(gdb) xtype
Argument to arithmetic operation not a number or boolean.

"s-cache.el" could be from "gnus-cache.el".  "on gnu.emacs.gnus*"
looks like it came from a Gnus buffer like "*followup to ... on
gnu.emacs.gnus*".

>> (gdb) p f->name
>> $5 = 85811859
>> (gdb) p STRINGP (f->name)
>
> No, no, no.  To display Lisp objects, you proceed like this:
>
>  (gdb) p f->name
>  $5 = 85811859
>  (gdb) xtype
>
> If the result of "xtype" is Lisp_String, then the very next command
> should be "xstring", it will display the Lisp string as readable text.
>
> Anyway, I asked about the value of f->icon_name in frame #5; can you
> see what that is?

Sorry, I forgot.

(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    UTER_WINDOW (f), &icon);
(gdb) p f->icon_name
$6 = 9800689
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol 
$7 = (struct Lisp_Symbol *) 0x958bf0
"nil"

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]