From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Cibrario Bertolotti Newsgroups: gmane.emacs.bugs Subject: bug#23462: 25.0.93; Crash on OS X when suspending main frame Date: Mon, 9 May 2016 10:49:43 +0200 Message-ID: <8496A872-84C9-4B5C-9F3E-F39B6723DBB5@polito.it> References: <34370B08-B94B-41A9-A9B7-EA3F39EBE900@polito.it> <20160508224146.GA61247@breton.holly.idiocy.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462784383 29010 80.91.229.3 (9 May 2016 08:59:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 08:59:43 +0000 (UTC) Cc: 23462@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 09 10:59:31 2016 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 1azgtI-0003pN-IX for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 10:50:12 +0200 Original-Received: from localhost ([::1]:39990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azgtH-0008E0-SH for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 May 2016 04:50:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azgtD-00089V-Sa for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 04:50:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azgt8-0007Qk-ME for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 04:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azgt8-0007Qf-Ir for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 04:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1azgt8-0001vE-8g for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 04:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Cibrario Bertolotti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2016 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23462-submit@debbugs.gnu.org id=B23462.14627837927368 (code B ref 23462); Mon, 09 May 2016 08:50:02 +0000 Original-Received: (at 23462) by debbugs.gnu.org; 9 May 2016 08:49:52 +0000 Original-Received: from localhost ([127.0.0.1]:43770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azgsy-0001um-Hy for submit@debbugs.gnu.org; Mon, 09 May 2016 04:49:52 -0400 Original-Received: from fm1nodo1.polito.it ([130.192.180.11]:35620 helo=antispam.polito.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azgsw-0001uW-RS for 23462@debbugs.gnu.org; Mon, 09 May 2016 04:49:51 -0400 Original-Received: from polito.it (frontmail1.polito.it [130.192.180.41]) by antispam.polito.it with ESMTP id u498niZ1032082-u498niZ3032082 (version=TLSv1.0 cipher=DHE-RSA-AES256-SHA bits=256 verify=CAFAIL); Mon, 9 May 2016 10:49:44 +0200 Original-Received: from [130.192.36.180] (account d011741@polito.it HELO [192.168.100.101]) by polito.it (CommuniGate Pro SMTP 6.1.9) with ESMTPSA id 105620920; Mon, 09 May 2016 10:49:44 +0200 In-Reply-To: <20160508224146.GA61247@breton.holly.idiocy.org> X-Mailer: Apple Mail (2.3124) X-FEAS-SYSTEM-WL: 130.192.180.41 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:118017 Archived-At: > On 9 May 2016, at 00:41, Alan Third wrote: >=20 > On Thu, May 05, 2016 at 11:25:06PM +0200, Ivan Cibrario Bertolotti = wrote: >> Emacs crashes when using the suspend-frame command (bound >> to C-z by default) on the main frame. It works correctly when the = frame >> is minimized by clicking on the GUI button. >>=20 >> Recipe: Start emacs -Q; type C-z; Emacs crashes with: >> Fatal error 11: Segmentation faultAbort trap: 6 >=20 > The last thing it does before crashing (but after minimizing) is: >=20 > [EmacsView drawRect:(X:578 Y:4)/(W:15 H:472)] Just to give it a try (I know this is far away from being a proper patch = and I=E2=80=99m not an expert on Cocoa), I added || !FRAME_VISIBLE_P (emacsframe) to the predicate at nsterm.m:7593. This should short-circuit drawRect = when the frame is not visible and Emacs no longer crashes. Best regards, ICB