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#21428: 24.5; Crash of emacs on OS X, installed via homebrew cask Date: Thu, 22 Oct 2015 23:08:50 +0300 Message-ID: <83twpism25.fsf@gnu.org> References: <83k2r8b4rr.fsf@gnu.org> <834mibbstw.fsf@gnu.org> <83k2r79bi5.fsf@gnu.org> <834mi4x7tp.fsf@gnu.org> <83fv1mellz.fsf@gnu.org> <1130CA27-B8B0-4009-BC14-A3FC76B92216@gmail.com> <838u7265sv.fsf@gnu.org> <83pp0d4rot.fsf@gnu.org> <83611yucx0.fsf@gnu.org> <831tcmu944.fsf@gnu.org> <56291DB4.3040509@gmx.at> <83y4eusswr.fsf@gnu.org> <56292795.3050100@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445544637 29889 80.91.229.3 (22 Oct 2015 20:10:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 20:10:37 +0000 (UTC) Cc: Rainer@krugs.de, 21428@debbugs.gnu.org To: Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 22 22:10:25 2015 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 1ZpMBm-0005Rf-4Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 22:10:18 +0200 Original-Received: from localhost ([::1]:34221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpMBg-00017U-9P for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 16:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpMBb-00014j-Tf for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 16:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpMBX-0001Ht-N3 for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 16:10:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpMBX-0001Hh-Js for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 16:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZpMBW-0000cb-UV for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 16:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2015 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21428 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 21428-submit@debbugs.gnu.org id=B21428.14455445502266 (code B ref 21428); Thu, 22 Oct 2015 20:10:02 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 22 Oct 2015 20:09:10 +0000 Original-Received: from localhost ([127.0.0.1]:33242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpMAg-0000aS-Ap for submit@debbugs.gnu.org; Thu, 22 Oct 2015 16:09:10 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:46653) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpMAL-0000ZJ-23 for 21428@debbugs.gnu.org; Thu, 22 Oct 2015 16:09:08 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NWN00F0012G8T00@mtaout27.012.net.il> for 21428@debbugs.gnu.org; Thu, 22 Oct 2015 23:04:33 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWN00DZS13LKL10@mtaout27.012.net.il>; Thu, 22 Oct 2015 23:04:33 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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: 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107868 Archived-At: > Date: Thu, 22 Oct 2015 22:04:08 +0200 > From: Anders Lindgren > Cc: Eli Zaretskii , Rainer@krugs.de, 21428@debbugs.gnu.org > > However, I noticed that a number of NextStep callback functions start with the > following code sequence: > > if (!emacsframe->output_data.ns) > return; > > If `ns' is NULL it would account for the crash. I don't see why we can't add it > to the windowDidResize: method as well. > > Finally a reservation, I'm still learning the NS code base and I don't know > under which circumstances the `ns' field is NULL. Based on what happens in other GUI display backends, I'm guessing that 'ns' being NULL means the frame is not a GUI frame, but either a text-mode frame or the "initial" frame (the latter happens in batch mode and in the daemon mode, assuming the NS port supports it).