From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11984: 24.1; segfault while deleting a window Date: Wed, 25 Jul 2012 18:27:27 +0300 Message-ID: <83d33jlv34.fsf@gnu.org> References: <83r4s88n7n.fsf@gnu.org> <87txx47724.fsf@gnu.org> <5007E473.7080303@gmx.at> <87fw8l7i3i.fsf@gnu.org> <500A8C7C.8000902@gmx.at> <500E9936.5050104@gmx.at> <83pq7lktek.fsf@gnu.org> <500F9CF7.7000900@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1343230110 5479 80.91.229.3 (25 Jul 2012 15:28:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 15:28:30 +0000 (UTC) Cc: cyd@gnu.org, 11984@debbugs.gnu.org, russell.sim@gmail.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 25 17:28:30 2012 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 1Su3Vi-0001mx-0j for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jul 2012 17:28:26 +0200 Original-Received: from localhost ([::1]:54651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su3Vg-0001Yc-Mo for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jul 2012 11:28:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su3Vd-0001Xy-Np for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2012 11:28:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Su3VY-0005so-Rp for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2012 11:28:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su3VY-0005sh-O4 for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2012 11:28:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Su3c6-00078G-1z for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2012 11:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jul 2012 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11984-submit@debbugs.gnu.org id=B11984.134323048827397 (code B ref 11984); Wed, 25 Jul 2012 15:35:02 +0000 Original-Received: (at 11984) by debbugs.gnu.org; 25 Jul 2012 15:34:48 +0000 Original-Received: from localhost ([127.0.0.1]:39207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Su3bs-00077q-Aq for submit@debbugs.gnu.org; Wed, 25 Jul 2012 11:34:48 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:55051) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Su3bq-00077i-N9 for 11984@debbugs.gnu.org; Wed, 25 Jul 2012 11:34:47 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M7Q0000026RC800@a-mtaout20.012.net.il> for 11984@debbugs.gnu.org; Wed, 25 Jul 2012 18:27:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7Q0007P2XPBE40@a-mtaout20.012.net.il>; Wed, 25 Jul 2012 18:27:25 +0300 (IDT) In-reply-to: <500F9CF7.7000900@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:62374 Archived-At: > Date: Wed, 25 Jul 2012 09:15:03 +0200 > From: martin rudalics > CC: cyd@gnu.org, russell.sim@gmail.com, 11984@debbugs.gnu.org > > > If you built Emacs with the change, and tooltips work for you, > > How do I test it? Is evaluating > > (x-show-tip "???") > > enough? Probably, but I find it easier to move the mouse pointer over some of the mouse-sensitive areas of the display (tool bar, menu items, mode line), each time waiting for the tooltip to pop up and then pop down after a few seconds. > Because tooltip frames appear fragile. x_create_tip_frame uses > > Fset_window_buffer (FRAME_ROOT_WINDOW (f), buffer, Qnil); > > while make_frame has > > /* Use set_window_buffer, not Fset_window_buffer, and don't let > hooks be run by it. The reason is that the whole frame/window > arrangement is not yet fully initialized at this point. Windows > don't have the right size, glyph matrices aren't initialized > etc. Running Lisp functions at this point surely ends in a > SEGV. */ > set_window_buffer (root_window, buf, 0, 0); > > Wouldn't the fact that the frame has not been set up completely when > assigning a buffer to its root window suggest that Fset_window_buffer > should not be used here either? I know almost nothing about these intimate details. Exactly what is it that makes running the hooks safe, and when does it happen during frame creation, is not documented anywhere, AFAICS. So feel free to replace the call to Fset_window_buffer with set_window_buffer, if you think that's more appropriate.