From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#17975: 24.3.92; assertion failure deleting frames with varying names for the same display (and, using multiple X11 connections in that case too) Date: Sun, 13 Jul 2014 22:01:04 +0400 Message-ID: <53C2C960.5030706@yandex.ru> References: <6ea98jsjtd.fsf@just-testing.permabit.com> <53BCD52D.6090700@yandex.ru> <6eoawv616e.fsf@just-testing.permabit.com> <53C21C84.6030207@yandex.ru> <53C26427.2050103@yandex.ru> <53C265DA.9070103@yandex.ru> <831ttp9u73.fsf@gnu.org> <53C2ABA7.9080907@yandex.ru> <83zjgd8bdt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1405274549 3443 80.91.229.3 (13 Jul 2014 18:02:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jul 2014 18:02:29 +0000 (UTC) Cc: raeburn@permabit.com, 17975@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 13 20:02:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X6O6R-0006ip-JP for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2014 20:02:23 +0200 Original-Received: from localhost ([::1]:53204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6O6R-0006nE-4Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2014 14:02:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6O6C-0006WN-J3 for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 14:02:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6O66-0004K4-I0 for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 14:02:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6O66-0004Jm-FW for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 14:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X6O65-00012e-VJ for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 14:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jul 2014 18:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17975-submit@debbugs.gnu.org id=B17975.14052744843953 (code B ref 17975); Sun, 13 Jul 2014 18:02:01 +0000 Original-Received: (at 17975) by debbugs.gnu.org; 13 Jul 2014 18:01:24 +0000 Original-Received: from localhost ([127.0.0.1]:53883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6O5T-00011g-Cg for submit@debbugs.gnu.org; Sun, 13 Jul 2014 14:01:23 -0400 Original-Received: from forward5h.mail.yandex.net ([84.201.186.23]:35705) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6O5P-00011P-PG for 17975@debbugs.gnu.org; Sun, 13 Jul 2014 14:01:21 -0400 Original-Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward5h.mail.yandex.net (Yandex) with ESMTP id 94353D0122D; Sun, 13 Jul 2014 22:01:12 +0400 (MSK) Original-Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id 0166A1B43048; Sun, 13 Jul 2014 22:01:11 +0400 (MSK) Original-Received: from 154.gprs.mts.ru (154.gprs.mts.ru [213.87.133.154]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id v8EreJqVM2-17amc3Ap; Sun, 13 Jul 2014 22:01:08 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: d2313efb-236d-45fe-8a77-086b1f60ea05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1405274471; bh=6lGoPLnLn4ysPFgF0Q9HghpKFAcBGtppW/9p1/3fKcc=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=CRkVxLnbnsqyp+OFKTByvy7H+x28uIve5WjKs+/QodMcFjKVgk13o3Phgmo8AClGY 50gj46atSO1roD3HE89D4mv3M0bs2g1hU+ppobZZ4HUCsV8TRCVGRe99BM4rmqpQwp 54UkK2UgG8bU+B8JzwyY8M74J4aW9MwqLJ3zLifg= Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <83zjgd8bdt.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:91513 Archived-At: On 07/13/2014 08:35 PM, Eli Zaretskii wrote: > If this doesn't fix the crash, then please show the backtrace, because > the previous one started with the update_menu_bar call. The backtrace at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17975#20 has 32 frames started from main. For the record, this is another one: #0 XFindContext (display=display@entry=0x0, rid=12681952, context=context@entry=-5, data=data@entry=0x7ffffffecc80) at Context.c:245 #1 0x00000037da3a92d8 in _XmRCColorHook (w=w@entry=0x143d0c0, alIn=alIn@entry=0x7ffffffed340, acPtrIn=acPtrIn@entry=0x7ffffffecd7c) at RCHook.c:73 #2 0x00000037dbc1bed7 in CallInitialize (class=, req_widget=req_widget@entry=0x7ffffffecec0, new_widget=new_widget@entry=0x143d0c0, args=args@entry=0x7ffffffed340, num_args=num_args@entry=1) at Create.c:231 #3 0x00000037dbc1c867 in xtCreate (name=name@entry=0xd62ce0 "Line Wrapping in This Buffer", class=class@entry=0x0, widget_class=widget_class@entry=0x37da6b8800 , parent=parent@entry=0x1535ce0, default_screen=0x133b220, args=args@entry=0x7ffffffed340, num_args=num_args@entry=1, typed_args=typed_args@entry=0x0, num_typed_args=num_typed_args@entry=0, parent_constraint_class=0x0, post_proc=post_proc@entry=0x37dbc1bef0 ) at Create.c:416 #4 0x00000037dbc1cc90 in _XtCreateWidget (name=name@entry=0xd62ce0 "Line Wrapping in This Buffer", widget_class=widget_class@entry=0x37da6b8800 , parent=parent@entry=0x1535ce0, args=args@entry=0x7ffffffed340, num_args=num_args@entry=1, typed_args=typed_args@entry=0x0, num_typed_args=num_typed_args@entry=0) at Create.c:570 #5 0x00000037dbc1cf7e in XtCreateWidget (name=name@entry=0xd62ce0 "Line Wrapping in This Buffer", widget_class=0x37da6b8800 , parent=0x1535ce0, args=args@entry=0x7ffffffed340, num_args=num_args@entry=1) at Create.c:589 #6 0x00000037da2f5a02 in create (p=p@entry=0x1550760, name=name@entry=0xd62ce0 "Line Wrapping in This Buffer", old_al=old_al@entry=0x0, old_ac=old_ac@entry=0, type=type@entry=2, is_radio=is_radio@entry=0) at RowColumn.c:3246 #7 0x00000037da2f7cbe in XmCreatePulldownMenu (p=0x1550760, name=0xd62ce0 "Line Wrapping in This Buffer", al=0x0, ac=0) at RowColumn.c:3485 #8 0x00000000006d07b6 in update_one_menu_entry (instance=0xbf12a0, widget=0x1551ba0, val=0xd62c70, deep_p=1 '\001') at ../../trunk/lwlib/lwlib-Xm.c:695 #9 0x00000000006d0b55 in xm_update_menu (instance=0xbf12a0, widget=0x1550760, val=0xd62a50, deep_p=1 '\001') at ../../trunk/lwlib/lwlib-Xm.c:783 #10 0x00000000006d09dd in update_one_menu_entry (instance=0xbf12a0, widget=0x171bbf0, val=0xd62a50, deep_p=1 '\001') at ../../trunk/lwlib/lwlib-Xm.c:726 #11 0x00000000006d0b55 in xm_update_menu (instance=0xbf12a0, widget=0x150db10, val=0xc009a0, deep_p=1 '\001') at ../../trunk/lwlib/lwlib-Xm.c:783 #12 0x00000000006d0ed8 in xm_update_one_widget (instance=0xbf12a0, widget=0x150db10, val=0xc009a0, deep_p=1 '\001') at ../../trunk/lwlib/lwlib-Xm.c:879 #13 0x00000000006ce0c6 in set_one_value (instance=0xbf12a0, val=0xc009a0, deep_p=1 '\001') at ../../trunk/lwlib/lwlib.c:534 #14 0x00000000006ce11b in update_one_widget_instance (instance=0xbf12a0, deep_p=1 '\001') at ../../trunk/lwlib/lwlib.c:554 #15 0x00000000006ce161 in update_all_widget_values (info=0x13532a0, deep_p=1 '\001') at ../../trunk/lwlib/lwlib.c:564 #16 0x00000000006ce385 in lw_modify_all_widgets (id=2, val=0x1384ff0, deep_p=1 '\001') at ../../trunk/lwlib/lwlib.c:618 #17 0x00000000004a5428 in set_frame_menubar (f=0x11b49d0, first_time=false, deep_p=true) at ../../trunk/src/xmenu.c:973 #18 0x000000000045c923 in update_menu_bar (f=0x11b49d0, save_match_data=0, hooks_run=1) at ../../trunk/src/xdisp.c:11822 #19 0x000000000045c567 in prepare_menu_bars () at ../../trunk/src/xdisp.c:11705 #20 0x0000000000460b87 in redisplay_internal () at ../../trunk/src/xdisp.c:13497 #21 0x000000000045f865 in redisplay () at ../../trunk/src/xdisp.c:13116 #22 0x000000000056af8a in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd75f, end_time=0x0) at ../../trunk/src/keyboard.c:2561 #23 0x000000000057a59d in read_key_sequence (keybuf=0x7fffffffd940, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at ../../trunk/src/keyboard.c:9085 #24 0x0000000000567f52 in command_loop_1 () at ../../trunk/src/keyboard.c:1439 #25 0x0000000000608f24 in internal_condition_case (bfun=0x567b90 , handlers=..., hfun=0x567366 ) at ../../trunk/src/eval.c:1349 #26 0x000000000056782e in command_loop_2 (ignore=...) at ../../trunk/src/keyboard.c:1170 #27 0x00000000006083a7 in internal_catch (tag=..., func=0x56780b , arg=...) at ../../trunk/src/eval.c:1113 #28 0x00000000005677e2 in command_loop () at ../../trunk/src/keyboard.c:1149 #29 0x0000000000566e92 in recursive_edit_1 () at ../../trunk/src/keyboard.c:770 #30 0x0000000000567062 in Frecursive_edit () at ../../trunk/src/keyboard.c:841 #31 0x0000000000564f69 in main (argc=4, argv=0x7fffffffddc8) at ../../trunk/src/emacs.c:1656 > If it is > called for a frame other than the one just deleted, then what exactly > is the reason for the crash? Why is the frame's display structure > NULL? I don't know what "the frame's display structure" is. If you mean F->output_data.x->display_info->display, then it looks correct. For the crash listed above (frame pointer noticed at #18): (gdb) p ((struct frame *)0x11b49d0)->output_data.x->display_info $1 = (struct x_display_info *) 0xd834a0 (gdb) p ((struct frame *)0x11b49d0)->output_data.x->display_info->display $2 = (Display *) 0xc182e0 And the frame is definitely live: (gdb) p ((struct frame *)0x11b49d0)->terminal $3 = (struct terminal *) 0x11b3c28 Dmitry