GNU bug report logs - #4879
Crash in xmenu_show

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Fri, 6 Nov 2009 11:00:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Stefan Monnier  <monnier <at> iro.umontreal.ca>
Cc: 4879 <at> debbugs.gnu.org
Subject: bug#4879: Crash in xmenu_show
Date: Fri, 06 Nov 2009 19:17:41 -0500
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fb3746be7a0 (LWP 19530)]
> 0x00000000004701c7 in xmenu_show (f=0x11c46e0, x=227, y=29, for_click=1, keymaps=1, title=12708355, error=0x7fff7c6ed8c0) at xmenu.c:2735
> 2735                  bcopy (SDATA (item_name), item_data,

The problem is that

   XVECTOR (menu_items)->contents[i + MENU_ITEMS_ITEM_EQUIV_KEY];

is now a symbol, but the code (here and in a couple of other places in
xmenu.c, and maybe elsewhere) assumes that it's a string or nil.

It's simple to "fix" by adding an additional check for symbols as menu
descriptors, but we need to understand why the situation has changed.

Stefan, I'm 99% sure this was caused by your keymap changes around
2009-09-11.  Could you please debug them?



This bug report was last modified 15 years and 249 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.