From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#9999: 23.3; menu related segfault when making new frame Date: Thu, 10 Nov 2011 20:43:06 +0100 Message-ID: References: <87fwhykv20.fsf@web.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320954240 21535 80.91.229.12 (10 Nov 2011 19:44:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2011 19:44:00 +0000 (UTC) Cc: 9999@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 10 20:43:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ROaXT-0006xZ-A3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2011 20:43:55 +0100 Original-Received: from localhost ([::1]:37778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROaXS-0003fW-Q2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2011 14:43:54 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROaXQ-0003fR-AC for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2011 14:43:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROaXP-0004SQ-01 for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2011 14:43:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROaXO-0004SM-TV for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2011 14:43:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ROaXa-0001bl-DF for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2011 14:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2011 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9999 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9999-submit@debbugs.gnu.org id=B9999.13209542216142 (code B ref 9999); Thu, 10 Nov 2011 19:44:02 +0000 Original-Received: (at 9999) by debbugs.gnu.org; 10 Nov 2011 19:43:41 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROaXF-0001b0-7W for submit@debbugs.gnu.org; Thu, 10 Nov 2011 14:43:41 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROaXB-0001aj-4t for 9999@debbugs.gnu.org; Thu, 10 Nov 2011 14:43:38 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 0FD25D599 for <9999@debbugs.gnu.org>; Thu, 10 Nov 2011 20:43:16 +0100 (CET) Original-Received: (qmail 22507 invoked by uid 89); 10 Nov 2011 19:43:15 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 10 Nov 2011 19:43:15 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 43DA77FA058; Thu, 10 Nov 2011 20:43:05 +0100 (CET) In-Reply-To: <87fwhykv20.fsf@web.de> X-Mailer: Apple Mail (2.1251.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 10 Nov 2011 14:44:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53791 Archived-At: 9 nov 2011 kl. 01:18 skrev Michael Heerdegen: > Hi, >=20 Hello. This is what happens for me in the trunk. x-create-frame is called. The frame is made official by putting it in = Vframe_list. A signal is raised, so the debugger is called in a new frame. This is = also put in Vframe_list. When we quit from the debugger, unwind_create_frame is called, and this = test is done: /* If frame is ``official'', nothing to do. */ if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame)) But the faulty frame isn't XCAR, the debugger frame is. So the test fails and x_free_frame_resources is called and eventually = sets f->output_data.x to NULL. But the f->output_method is not reset, so when an event comes, we loop = over Vframe_list and kaboom happens here: if (!FRAME_X_P (f) || FRAME_X_DISPLAY_INFO (f) !=3D dpyinfo) ... FRAME_X_P only checks if f->output_method is output_x_window, which it = is,=20 but FRAME_X_DISPLAY_INFO (f) is the same as = f->output_data.x->display_info and as x is NULL, this crashes. So ethier FRAME_X_P needs to be improved (ditto for all terms I guess), = or unwind_create_frame needs a better check (also ditto for all terms?). Jan D. > starting with emacs -Q, when I eval the following expression: >=20 >=20 > (let* ((pop-up-frames t)) > (define-key (lookup-key global-map [menu-bar]) [foo] > '(menu-item "Foo" ignore :enable (file-exists-p = "http://www.foo.com"))) > (setq default-directory "/") > (make-frame)) >=20 >=20 > Emacs crashs. >=20 > I was able to produce the crash on different hosts. >=20 > I can provide a backtrace if needed. >=20 >=20 > In GNU Emacs 23.3.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2011-10-26 on murphy, modified by Debian > Windowing system distributor `The X.Org Foundation', version = 11.0.11101901 > configured using `configure '--build' 'i486-linux-gnu' '--build' = 'i486-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' = '--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib' = '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/man' = '--with-pop=3Dyes' = '--enable-locallisppath=3D/etc/emacs23:/etc/emacs:/usr/local/share/emacs/2= 3.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.3/site-= lisp:/usr/share/emacs/site-lisp' = '--with-crt-dir=3D/usr/lib/i386-linux-gnu' '--with-x=3Dyes' = '--with-x-toolkit=3Dlucid' '--with-toolkit-scroll-bars' = '--without-gconf' 'build_alias=3Di486-linux-gnu' 'CFLAGS=3D-DDEBIAN -g = -O2'' >=20 > Important settings: > value of $LC_ALL: de_DE.utf8 > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: C > value of $LANG: de_DE.utf8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > v >=20