From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.bugs Subject: bug#66978: 30.0.50; crashed when closing one of two frames Date: Tue, 07 Nov 2023 13:20:31 +0100 Message-ID: <87edh14uwg.fsf@no.lan> References: <87zfzqsemc.fsf@no.lan> <875y2dvqmz.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="606"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66978@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 07 13:21:33 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r0L5H-000AWz-Qe for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Nov 2023 13:21:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0L5B-000246-TI; Tue, 07 Nov 2023 07:21:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0L5A-000216-Iv for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2023 07:21:24 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0L5A-0004Dz-9x for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2023 07:21:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0L5l-0008Il-TZ for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2023 07:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregor Zattler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Nov 2023 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66978 X-GNU-PR-Package: emacs Original-Received: via spool by 66978-submit@debbugs.gnu.org id=B66978.169935971931899 (code B ref 66978); Tue, 07 Nov 2023 12:22:01 +0000 Original-Received: (at 66978) by debbugs.gnu.org; 7 Nov 2023 12:21:59 +0000 Original-Received: from localhost ([127.0.0.1]:41408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0L5j-0008IR-2g for submit@debbugs.gnu.org; Tue, 07 Nov 2023 07:21:59 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:46017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0L5c-0008I9-Ae for 66978@debbugs.gnu.org; Tue, 07 Nov 2023 07:21:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1699359666; x=1699964466; i=grfz@gmx.de; bh=ecEYTHCT3cr0xe1MDJVB36PdlTmMtydINf5GINx+fLc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=BJoDN9y0dpC2+S3g7v7Oo+QJy+RWh8lxPbZNhMOFBESOkMR2ZkF7crXq+Za28G/r 8KqQ/Jo3MB8vFMK6t4KL+2afVQ0NGkO8aODrVU8025gHxZ4trqlWIeqe9RKPnw/JX gxg8m3ZG/6th3hn/jllO/sQBguwVM8BfSQjOsBtfI1zKcVSrcMPRmrzwzw56pt8dy n3U2zEDiZQwuZ1I0+P2rSSIRFhZO1sa77XNRzQgFXTyZfHC6glkrjbIeIel3ibuRH nzCD+f7AdLkc/zESOjJprwPN50ohTFup3hiJnt1BSHo4+ZhN3lfvXaLwIqCNGznru RTc4/mWFKKYBhD/l1Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from localhost ([95.90.236.143]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1My36N-1rLB772sjn-00zXBJ; Tue, 07 Nov 2023 13:21:06 +0100 In-Reply-To: <875y2dvqmz.fsf@yahoo.com> X-Provags-ID: V03:K1:xglIjjuW0vmDO84SpB0AUZ0HV/EuGhSmIXUoaIRBWDzZvKpLqz1 gCg+2rrJB/ppPhIdfintNLPcoMLiTX6q4gU+Zfb+s5Zp/QH2qtMKaM461xxKtktwh1VvDkJ sW9/Dp4TKgppal5JZzMAiZso9/Uqhm+6M7/yQkjBPJW5Fz4QO4+8A7fYULkvKJ4m+wuSCsO osq0Omy1gYiP0hweuwpuA== UI-OutboundReport: notjunk:1;M01:P0:uNcxUJxv6ok=;iKV7JUJh4yq84pLOK+MrIurTYXn l+wMrLFCj6zCCgq8R60kpntGHSxErg2KoGBzJen/GIecHiXu9wQ+UpZDTtMD1QSf6v25ozO8i IklQTxhUsJZJ6jTSaxNt+2CrKtbJGidOWx2F1Py500H+RG3XqwMw5cKXqRlfCeFnmNtjKGImo jdzpOz+JHCwIcOF9IgN+GHIdoLOTAFa7x8Y+2U1Dv5wOHeS/XzmGHe0rkLZf2vK/gvP6BjULl Qm+X2fOkvUb4KBpkN3U7TF58tOSzsTLsVmQyEsI9ij4iOqGvLfAPmnyv6roGcUDrc91O+vq/o MZwbPUkMIvCKDvphqaLdGfa5k/RQWHOd+NPsq9F8PCctunO8srsEYlJRjsYbOac0gSzXrvIX0 JYDpUY4hTk5L/31VmcXF8TQal3CtI3FiPOM5DQG3SBYSsiC3AC2IxgFqABXA4LcbQe/V/kNPD l2mT31fn21d0OuqI2/uu2tbpvJFi7SMf/YxVLz9RjwvuJwFB5Cmz+gW9v4+CQ81ZjTzpfAWbW OCfVfOoRgxIK/yjhz6pbWuII2NzRM4nlmkMEEzK5sJ21y636+5e6P95NKUE/hwK9BTK/zX1v1 Dt61kooQit9Pu7KJQEeIL+kBHTxe4lg5w0Rv4nD8NpmY+QTEwdSIf8PD/mYfEcoTh0u1esExQ 8nU2f54wVzgOQO4BAsGP7bNwiiROYeI/K72OqDeRMmOvxq8Rfi3DuPd9jidk53ARhgB22oYCq EwR/nv3S2R2pTO93vkF/Mbo6FTh7G2HujAfmuEsT+IG7R9o9LLJJEpsCV0ZxxixB04NXcasH X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273926 Archived-At: * Po Lu [2023-11-07; 17:50 +08]: > Gregor Zattler writes: > >> This (see below) is a backtrace from a crash after I >> closed one of two graphical frames associated with the >> same Emacs daemon. >> >> Tried to reproduce it, but couldn't, so don't know if >> this is helpful, if so I'm happy to answer questions, >> but the process is already killed. > > If the core dump still remains, type: > > (gdb) p *(XErrorEvent *) 0x7fffffffbb70 > > and reply with the text thus printed. see below for a new gdb output including this info. I worked in a graphical Emacs frame, then I called "edit-and-execute-command (C-x C-e)" in bash, which in turn opened another Emacs frame, although when invoking $VISUAL in the end of a rather convoluted configuration the real thing called is /home/grfz/bin/emacsclient -s server --alternate-editor'' --reuse-frame --frame-parameters='()' so I'm surprised it opened a new frame instead of a window in the existing one. When I was done with the bash command line I closed the new Emacs frame with C-x 5 2 and Emacs crashed. I let stay the gdb process around for a while, in case further questions arise. This is a laptop, though and so it's probably only a matter of hours. Thanks for looking into this, Gregor Starting program: /home/grfz/src/emacs-master--078cfe807295038fa321c9297e24de5145065622--2023-11-02T00-38+01-00/src/emacs --init-directory=/home/grfz/.config/emacs --fg-daemon=server [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Detaching after vfork from child process 4314] [Detaching after vfork from child process 4392] [Detaching after vfork from child process 4393] [Detaching after vfork from child process 4417] [Detaching after vfork from child process 5643] [Detaching after vfork from child process 5644] [Detaching after vfork from child process 5645] [Detaching after vfork from child process 5646] [Detaching after vfork from child process 5647] [Detaching after vfork from child process 46956] [Detaching after vfork from child process 46957] [Detaching after vfork from child process 46958] [Detaching after vfork from child process 46959] [Detaching after vfork from child process 48824] [Detaching after vfork from child process 48825] [Detaching after vfork from child process 48826] [Detaching after vfork from child process 48827] [Detaching after vfork from child process 48883] [Detaching after vfork from child process 48884] [Detaching after vfork from child process 48901] [Detaching after vfork from child process 48918] [Detaching after vfork from child process 72624] [Detaching after vfork from child process 72654] [Detaching after vfork from child process 72655] [Detaching after vfork from child process 72656] [Detaching after vfork from child process 72657] [Detaching after vfork from child process 72660] [Detaching after vfork from child process 89454] [Detaching after vfork from child process 89789] Breakpoint 2, x_error_quitter (display=0x555557774660, event=0x0) at ./src/xterm.c:26956 26956 { #0 x_error_quitter (display=0x555557774660, event=0x0) at ./src/xterm.c:26956 #1 0x0000555555701446 in x_error_handler (display=0x555557774660, event=0x7fffffffbb70) at ./src/xterm.c:26944 #2 0x00007ffff7c999eb in _XError () at /lib/x86_64-linux-gnu/libX11.so.6 #3 0x00007ffff7c96657 in () at /lib/x86_64-linux-gnu/libX11.so.6 #4 0x00007ffff7c966f5 in () at /lib/x86_64-linux-gnu/libX11.so.6 #5 0x00007ffff7c971a2 in _XEventsQueued () at /lib/x86_64-linux-gnu/libX11.so.6 #6 0x00007ffff7c88897 in XPending () at /lib/x86_64-linux-gnu/libX11.so.6 #7 0x0000555555719ccb in XTread_socket (terminal=, hold_quit=0x7fffffffbe10) at ./src/xterm.c:25577 #8 0x0000555555754871 in gobble_input () at ./src/keyboard.c:7862 #9 0x0000555555757875 in handle_async_input () at ./src/keyboard.c:8101 #10 process_pending_signals () at ./src/keyboard.c:8115 #11 unblock_input_to (level=0) at ./src/keyboard.c:8130 #12 unblock_input_to (level=) at ./src/keyboard.c:8124 #13 unblock_input () at ./src/keyboard.c:8149 #14 0x0000555555905fb9 in xg_select (fds_lim=, rfds=0x7fffffffc530, wfds=, efds=0x0, timeout=, sigmask=0x0) at ./src/xgselect.c:282 #15 0x0000555555891198 in wait_reading_process_output (time_limit=time_limit@entry=5, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=Python Exception : value has been optimized out , wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at ./src/process.c:5716 #16 0x00005555555db6d4 in sit_for (timeout=Python Exception : value has been optimized out , reading=, display_option=) at ./src/dispnew.c:6318 #17 0x000055555575f56a in read_char (commandflag=commandflag@entry=1, map=Python Exception : value has been optimized out , map@entry=XIL(0x7fffee69ae33), prev_event=Python Exception : value has been optimized out , used_mouse_menu=used_mouse_menu@entry=0x7fffffffcd7b, end_time=end_time@entry=0x0) at ./src/lisp.h:773 #18 0x0000555555761109 in read_key_sequence (keybuf=keybuf@entry=0x7fffffffcea0, prompt=XIL(0x555556232d95), prompt@entry=XIL(0), dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, disable_text_conversion_p=disable_text_conversion_p@entry=false, prevent_redisplay=) at ./src/keyboard.c:10681 #19 0x0000555555763b1e in command_loop_1 () at ./src/keyboard.c:1408 #20 0x000055555580c687 in internal_condition_case (bfun=bfun@entry=0x5555557638e0 , handlers=Python Exception : value has been optimized out , handlers@entry=XIL(0x90), hfun=hfun@entry=0x5555557523c0 ) at ./src/eval.c:1486 #21 0x0000555555743d56 in command_loop_2 (handlers=handlers@entry=XIL(0x90)) at ./src/keyboard.c:1157 #22 0x000055555580c5cc in internal_catch (tag=Python Exception : value has been optimized out , func=func@entry=0x555555743d30 , arg=Python Exception : value has been optimized out ) at ./src/eval.c:1209 #23 0x000055555574704c in command_loop () at ./src/keyboard.c:1135 #24 0x0000555555751aea in recursive_edit_1 () at ./src/keyboard.c:744 #25 0x0000555555752114 in Frecursive_edit () at ./src/keyboard.c:827 #26 0x00005555555cb9c7 in main (argc=3, argv=0x7fffffffd358) at ./src/emacs.c:2625 $1 = { type = 0, display = 0x555557774660, resourceid = 1103, serial = 363431, error_code = 146 '\222', request_code = 139 '\213', minor_code = 22 '\026' }