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: Tue, 06 Dec 2005 22:49:41 +0200

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




reply via email to

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