From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: NT Emacs crashes when selecting a menubar item Date: Sat, 27 Jul 2002 12:52:48 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200207271852.g6RIqmA10723@aztec.santafe.edu> References: <3D3EF831.3040008@dponce.com> <200207251807.g6PI7I907645@aztec.santafe.edu> <3D4140EF.4000607@dponce.com> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027796035 19182 127.0.0.1 (27 Jul 2002 18:53:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 27 Jul 2002 18:53:55 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17YWhN-0004zH-00 for ; Sat, 27 Jul 2002 20:53:53 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17YWxl-0005DF-00 for ; Sat, 27 Jul 2002 21:10:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YWhi-00052m-00; Sat, 27 Jul 2002 14:54:14 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YWgb-0004gi-00; Sat, 27 Jul 2002 14:53:05 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g6RIqwB17775; Sat, 27 Jul 2002 12:52:58 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g6RIqmA10723; Sat, 27 Jul 2002 12:52:48 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: david@dponce.com In-Reply-To: <3D4140EF.4000607@dponce.com> (message from David Ponce on Fri, 26 Jul 2002 14:30:39 +0200) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6087 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6087 I worked a little more on this problem and, simply calling fprintf in various locations in w32menu.c (I don't have a debugger), I found that the function `single_submenu' seems to receive corrupted data in static variable `menu_items'. You have made significant progress, but we don't know the answer yet. Can you determine where that data becomes corrupted? Is it written wrong at the start, or does it get clobbered later on? `item_name' is a local Lisp_Object variable initialized to (w32menu.c::1240): Can you determine what value item_name has at that point? Is it a Lisp string? If so, what is its text? item_name = AREF (menu_items, i + MENU_ITEMS_ITEM_NAME); What is the value of i when the invalid data comes out? What array index? It seems that f->menu_bar_vector is setup in keyboard.c in function `menu_bar_items'. Maybe is there a problem here? It could be. Could you examine the contents of this vector right after that function is finished? In particular, what is the value found at the array index that the bad data later comes from?