From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.bugs Subject: bug#21428: 24.5; Crash of emacs on OS X, installed via homebrew cask Date: Fri, 23 Oct 2015 11:52:51 +0200 Message-ID: References: <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> <83twpism25.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1445594218 6933 80.91.229.3 (23 Oct 2015 09:56:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 09:56:58 +0000 (UTC) Cc: 21428@debbugs.gnu.org, Anders Lindgren To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 11:56:50 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 1ZpZ57-0000fd-EG for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 11:56:17 +0200 Original-Received: from localhost ([::1]:37347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpZ57-0001xr-2E for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 05:56:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpZ2z-0007Cr-Ts for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 05:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpZ2v-0003eU-R9 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 05:54:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpZ2v-0003eJ-OU for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 05:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZpZ2v-00036y-J7 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 05:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rainer M Krug Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Oct 2015 09:54:01 +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.144559399511903 (code B ref 21428); Fri, 23 Oct 2015 09:54:01 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 23 Oct 2015 09:53:15 +0000 Original-Received: from localhost ([127.0.0.1]:33831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpZ2B-00035v-1g for submit@debbugs.gnu.org; Fri, 23 Oct 2015 05:53:15 -0400 Original-Received: from mail-wi0-f179.google.com ([209.85.212.179]:37430) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpZ1q-00035E-NS for 21428@debbugs.gnu.org; Fri, 23 Oct 2015 05:53:13 -0400 Original-Received: by wicfv8 with SMTP id fv8so24233981wic.0 for <21428@debbugs.gnu.org>; Fri, 23 Oct 2015 02:52:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=o0QLCHqxWX1a8AB34E6RMJK0ZY4v88KYcnAqvN2VVjA=; b=lF2/KkFomhHWvwoU4tDLTjJqR2Sdo5HdqTPED3guwi/rpSFxUuUjjYOhg9FX17jbzo o3t9yThqtUAW2CbaPMdiOHY5zOCt4tAJBlbTLWVCj+Gm7zLa17H628y1RZxYgNA6tAqo TVQSYmQTTjMS3lykVHrs7mPRHqwOslnYIMqGo7Hdqe8Hd9qs1SYkS3esE4mgNjPfI5Z7 jduFCK/sm5y+0v9wM5yOWQghpGw5RsmJFtQQFThY5qw7BOUzCuQdZmEsXrLX2Y6T9EWd 6m/c6Ud8OSNsKS5MnhOJZX21EXnJsPbLOoNK3VLy/aoD5EXa79+yuqdc4O89jrOJF68R M9oQ== X-Received: by 10.181.13.1 with SMTP id eu1mr3394028wid.6.1445593974064; Fri, 23 Oct 2015 02:52:54 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro.local ([2a01:e35:8baa:b070:f808:c9d0:d5e8:af60]) by smtp.gmail.com with ESMTPSA id lr6sm2370943wic.3.2015.10.23.02.52.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 02:52:53 -0700 (PDT) In-Reply-To: <83twpism25.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Oct 2015 23:08:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) 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:107905 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> Date: Thu, 22 Oct 2015 22:04:08 +0200 >> From: Anders Lindgren >> Cc: Eli Zaretskii , Rainer@krugs.de, 21428@debbugs.gnu.org >>=20 >> However, I noticed that a number of NextStep callback functions start wi= th the >> following code sequence: >>=20 >> if (!emacsframe->output_data.ns) >> return; >>=20 >> 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. >>=20 >> Finally a reservation, I'm still learning the NS code base and I don't k= now >> 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). Also, I did not start emacs as daemon. I started it from gdb using: ,---- | gdb-7 ./nextstep/Emacs.app/Contents/MacOS/Emacs `---- Rainer =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWKgNzAAoJENvXNx4PUvmCsKUH/3sY+a+d2Xqo3NAfYgHrh/r9 wVWYnUb9U5GDv8+Td2hJYrQt+ROuA4xgYGLX2B8e8wLy6qHzwxq7NcsTn0FvgluL jl4iK1G4YM3jmiUY/tPFTtEJKmkIGAqozzuuPjJhg4opQ+InKcE88VAZihF29aob T0j2AsOkMkvQEIth9S6KFL+dLIpUakYI8/p/G4snmhe8EVYpLy/PEbyIFOz3gXRG Jzm4DbsV6cFyurx2jT4Fg0PhpvBGAeyUthOewjsqWeIpUPTgIqDlYHT83nq9B/CL HiCGmCmiKlewPeIe91Kt747ObmbNrVRWgoe8KJlvYUfLvRw7/7+CLPWsBPPNAvg= =v3xP -----END PGP SIGNATURE----- --=-=-=--