From unknown Mon Aug 18 19:26:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22438 <22438@debbugs.gnu.org> To: bug#22438 <22438@debbugs.gnu.org> Subject: Status: 24.5; Orphaned tooltip kills daemon (Lucid) Reply-To: bug#22438 <22438@debbugs.gnu.org> Date: Tue, 19 Aug 2025 02:26:13 +0000 retitle 22438 24.5; Orphaned tooltip kills daemon (Lucid) reassign 22438 emacs submitter 22438 Nicole Edwards severity 22438 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 17:21:15 2016 Received: (at submit) by debbugs.gnu.org; 22 Jan 2016 22:21:15 +0000 Received: from localhost ([127.0.0.1]:58162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMk4w-0003PG-Sp for submit@debbugs.gnu.org; Fri, 22 Jan 2016 17:21:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56205) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMjp6-00031r-HH for submit@debbugs.gnu.org; Fri, 22 Jan 2016 17:04:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMjp0-0002lB-Fz for submit@debbugs.gnu.org; Fri, 22 Jan 2016 17:04:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HK_RANDOM_ENVFROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMjp0-0002l7-DQ for submit@debbugs.gnu.org; Fri, 22 Jan 2016 17:04:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMjoz-00061h-Cl for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2016 17:04:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMjov-0002jQ-Bc for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2016 17:04:45 -0500 Received: from mout01.posteo.de ([185.67.36.65]:35423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMjov-0002iJ-1K for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2016 17:04:41 -0500 Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id 1F85820933 for ; Fri, 22 Jan 2016 23:04:36 +0100 (CET) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3pnF4N62Hlz5vNX for ; Fri, 22 Jan 2016 23:04:36 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 22 Jan 2016 17:04:36 -0500 From: Nicole Edwards To: bug-gnu-emacs@gnu.org Subject: 24.5; Orphaned tooltip kills daemon (Lucid) Message-ID: X-Sender: nnnnnn@posteo.net User-Agent: Posteo Webmail X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 22 Jan 2016 17:21:13 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) If I call up (or dismiss all but) one frame, ask it to display a tooltip, then destroy it while the tooltip is open, the tooltip remains open, and unless I create a new frame within a few seconds, Emacs dies. (Mercifully, so does the tooltip.) This only happens as a daemon (as otherwise there's no way to delete the last frame) and only with the Lucid toolkit (with GTK+, the tooltip disappears with the frame). In recipe form: emacs --daemon -Q emacsclient -c In the resulting *scratch* buffer, type (if (sit-for 7) (delete-frame)) Now type C-j to evaluate and, while Emacs is sitting, hover your mouse pointer over the mode line until a tooltip appears. Leave the pointer where it is, so that the tooltip remains open, and wait for the frame to be deleted. The tooltip should persist. Wait a little longer -- five or six seconds? -- and the tooltip should disappear. Back at the terminal, confirm that Emacs is no longer running. $ pgrep emacs $ In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2016-01-22 on tikva Windowing system distributor `The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.2 (jessie) Configured using: `configure --prefix=/home/n/.local/stow/emacs-24.5 --with-x-toolkit=lucid' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Starting Emacs daemon. When done with this frame, type C-x 5 0 Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils server time-date edmacro kmacro cl-loaddefs cl-lib ido tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 76439 3869) (symbols 48 18479 0) (miscs 40 53 99) (strings 32 11586 4813) (string-bytes 1 354764) (vectors 16 10065) (vector-slots 8 387163 6532) (floats 8 80 51) (intervals 56 169 1) (buffers 960 12) (heap 1024 24129 988)) From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 18:56:21 2016 Received: (at 22438) by debbugs.gnu.org; 22 Jan 2016 23:56:21 +0000 Received: from localhost ([127.0.0.1]:58179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMlYz-0005af-Jy for submit@debbugs.gnu.org; Fri, 22 Jan 2016 18:56:21 -0500 Received: from smtp10.acens.net ([86.109.99.134]:34459 helo=smtp.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMlYw-0005aO-RB for 22438@debbugs.gnu.org; Fri, 22 Jan 2016 18:56:20 -0500 X-CTCH-RefID: str=0001.0A0B0204.56A2C195.0035, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Received: from qcore (83.38.42.1) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 56623BC803E2F768; Fri, 22 Jan 2016 23:56:05 +0000 From: =?utf-8?Q?=C3=93scar_Fuentes?= To: Nicole Edwards Subject: Re: bug#22438: 24.5; Orphaned tooltip kills daemon (Lucid) References: Date: Sat, 23 Jan 2016 00:56:03 +0100 In-Reply-To: (Nicole Edwards's message of "Fri, 22 Jan 2016 17:04:36 -0500") Message-ID: <87d1stkw30.fsf@wanadoo.es> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22438 Cc: Eli Zaretskii , 22438@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Nicole Edwards writes: > If I call up (or dismiss all but) one frame, ask it to display > a tooltip, then destroy it while the tooltip is open, the tooltip > remains open, and unless I create a new frame within a few seconds, > Emacs dies. (Mercifully, so does the tooltip.) [snip] The problem is in src/xfns.c:6087. Emacs explicitly redisplays the current frame's menu bar without testing that it is alive. The patch below solves the problem. Eli, ok to commit? diff --git a/src/xfns.c b/src/xfns.c index aad9680..9624ac5 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -6084,16 +6084,19 @@ Value is t if tooltip was open, nil otherwise. */) items is unmapped. Redisplay the menu manually... */ { Widget w; - struct frame *f = SELECTED_FRAME (); - w = f->output_data.x->menubar_widget; + struct frame *f = SELECTED_FRAME (); + if (FRAME_X_P (f) && FRAME_LIVE_P (f)) + { + w = f->output_data.x->menubar_widget; - if (!DoesSaveUnders (FRAME_DISPLAY_INFO (f)->screen) - && w != NULL) - { - block_input (); - xlwmenu_redisplay (w); - unblock_input (); - } + if (!DoesSaveUnders (FRAME_DISPLAY_INFO (f)->screen) + && w != NULL) + { + block_input (); + xlwmenu_redisplay (w); + unblock_input (); + } + } } #endif /* USE_LUCID */ } From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 01:14:12 2016 Received: (at 22438) by debbugs.gnu.org; 23 Jan 2016 06:14:12 +0000 Received: from localhost ([127.0.0.1]:58250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMrSe-0007ae-Eb for submit@debbugs.gnu.org; Sat, 23 Jan 2016 01:14:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33892) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMrSd-0007aS-Dn for 22438@debbugs.gnu.org; Sat, 23 Jan 2016 01:14:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMrSU-0005Jg-UD for 22438@debbugs.gnu.org; Sat, 23 Jan 2016 01:14:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMrSU-0005JS-QV; Sat, 23 Jan 2016 01:14:02 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1699 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aMrSU-0000mL-4W; Sat, 23 Jan 2016 01:14:02 -0500 Date: Sat, 23 Jan 2016 08:14:21 +0200 Message-Id: <83si1o6cw2.fsf@gnu.org> From: Eli Zaretskii To: =?iso-8859-1?Q?=D3scar?= Fuentes In-reply-to: <87d1stkw30.fsf@wanadoo.es> (message from =?iso-8859-1?Q?=D3s?= =?iso-8859-1?Q?car?= Fuentes on Sat, 23 Jan 2016 00:56:03 +0100) Subject: Re: bug#22438: 24.5; Orphaned tooltip kills daemon (Lucid) References: <87d1stkw30.fsf@wanadoo.es> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22438 Cc: nnnnnn@posteo.net, 22438@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Óscar Fuentes > Cc: 22438@debbugs.gnu.org, Eli Zaretskii > Date: Sat, 23 Jan 2016 00:56:03 +0100 > > Nicole Edwards writes: > > > If I call up (or dismiss all but) one frame, ask it to display > > a tooltip, then destroy it while the tooltip is open, the tooltip > > remains open, and unless I create a new frame within a few seconds, > > Emacs dies. (Mercifully, so does the tooltip.) > > [snip] > > The problem is in src/xfns.c:6087. Emacs explicitly redisplays the > current frame's menu bar without testing that it is alive. The patch > below solves the problem. Eli, ok to commit? Yes, thanks. To the emacs-25 branch, please. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 08:22:38 2016 Received: (at 22438-done) by debbugs.gnu.org; 23 Jan 2016 13:22:38 +0000 Received: from localhost ([127.0.0.1]:58395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMy9F-0002UJ-W2 for submit@debbugs.gnu.org; Sat, 23 Jan 2016 08:22:38 -0500 Received: from smtp09.acens.net ([86.109.99.133]:42661 helo=smtp.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMy9D-0002U6-RY for 22438-done@debbugs.gnu.org; Sat, 23 Jan 2016 08:22:36 -0500 X-CTCH-RefID: str=0001.0A0B0202.56A37E95.00F3, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Received: from qcore (83.38.42.1) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 5698E070009BD714 for 22438-done@debbugs.gnu.org; Sat, 23 Jan 2016 13:22:29 +0000 From: =?utf-8?Q?=C3=93scar_Fuentes?= To: 22438-done@debbugs.gnu.org Subject: Re: bug#22438: 24.5; Orphaned tooltip kills daemon (Lucid) References: <87d1stkw30.fsf@wanadoo.es> <83si1o6cw2.fsf@gnu.org> Date: Sat, 23 Jan 2016 14:22:28 +0100 In-Reply-To: <83si1o6cw2.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Jan 2016 08:14:21 +0200") Message-ID: <871t98mnvv.fsf@wanadoo.es> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22438-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Fixed on 76045f7d6f654ea20e09412e5054f9159d1bb142 (emacs-25). From unknown Mon Aug 18 19:26:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 21 Feb 2016 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator