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: Mon, 28 Sep 2015 13:12:53 +0200 Message-ID: References: <83y4g0m0js.fsf@gnu.org> <83wpvjnc5m.fsf@gnu.org> <83twqnnbdz.fsf@gnu.org> <837fnhlb3v.fsf@gnu.org> <83y4fvixvx.fsf@gnu.org> <83pp17ismu.fsf@gnu.org> <83lhbvir5b.fsf@gnu.org> <838u7uizqs.fsf@gnu.org> <8337y2imvk.fsf@gnu.org> <83bncmeu95.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 1443461891 31271 80.91.229.3 (28 Sep 2015 17:38:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2015 17:38:11 +0000 (UTC) Cc: 21428@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 28 19:37:58 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 1ZgcNB-0002pU-Do for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 19:37:57 +0200 Original-Received: from localhost ([::1]:39669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgcNA-0000Hb-Ka for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 13:37:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgWNi-000787-CU for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 07:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgWNe-0006Mx-8i for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 07:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgWNe-0006Mp-5x for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 07:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZgWNd-0008LA-Lo for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 07:14: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: Mon, 28 Sep 2015 11:14: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.144343878631891 (code B ref 21428); Mon, 28 Sep 2015 11:14:01 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 28 Sep 2015 11:13:06 +0000 Original-Received: from localhost ([127.0.0.1]:46261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgWMj-0008II-8i for submit@debbugs.gnu.org; Mon, 28 Sep 2015 07:13:05 -0400 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:38676) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgWMg-0008I7-Hq for 21428@debbugs.gnu.org; Mon, 28 Sep 2015 07:13:03 -0400 Original-Received: by wiclk2 with SMTP id lk2so96082238wic.1 for <21428@debbugs.gnu.org>; Mon, 28 Sep 2015 04:13:02 -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=+DaFdUAp0apZknfy1OCQ4Bp9j3FcXvub0ZKampLcjmc=; b=XOQpWpepJkvVgfHImOBcu86HUUMlwuq+YzGFjN8NJT57XowQj71Tz7MHGmfiOm97U8 jpJj6uU1gB1YSu9Z3EKuniEtG1ImpGl6IOtvf11hIDi+xQcdyJbUg5ZqgMr6QkkwFQKa rkk/Sxds1+dyFyVq4BfdEj9cG1BX8Cz/5YB8q1GVA3GBz2I0Of+vTC/KZDvn6Ntd3I63 KDmrr+Uq4HSHMv2gEAE7GXN9ieEv5SHLxg7jJ9eEvbVrMDdkn6JOqTUOZvCwXYLJMT0R BOIrUGoRbWOaiTlvD4sTfOhKiZ/+/jblR6sLQF7iBVtcesZKihMT3z1dKKTtPgXPA/6p ggwA== X-Received: by 10.194.189.235 with SMTP id gl11mr20979112wjc.68.1443438781864; Mon, 28 Sep 2015 04:13:01 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id s9sm17810197wjy.16.2015.09.28.04.12.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 04:13:00 -0700 (PDT) In-Reply-To: <83bncmeu95.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 28 Sep 2015 13:03:02 +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:106998 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Rainer M Krug >> Cc: 21428@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac= .jp >> Date: Mon, 28 Sep 2015 11:33:49 +0200 >>=20 >> > First, I'd like to know whether the line of code marked below is ever >> > executed: >> > >> > static void >> > uncache_face (struct face_cache *c, struct face *face) >> > { >> > int i =3D face->hash % FACE_CACHE_BUCKETS_SIZE; >> > >> > if (face->prev) >> > face->prev->next =3D face->next; >> > else >> > c->buckets[i] =3D face->next; >> > >> > if (face->next) >> > face->next->prev =3D face->prev; >> > >> > c->faces_by_id[face->id] =3D NULL; >> > if (face->id =3D=3D c->used) >> > --c->used; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >> > } >> > >> > This is from xfaces.c, line 4322 with the current Git master. Please >> > put a breakpoint there, and run Emacs under GDB until it crashes as >> > before, or until this breakpoint breaks. If it breaks, please show >> > the backtrace. >>=20 >> OK - Emacs crashed again (same pattern) and the breakpoint was >> triggered: >>=20 >> ,---- >> | xdisp.c:24333: Emacs fatal error: assertion failed: face !=3D NULL > > You mean, the breakpoint did NOT trigger, right? Because I cannot see > any backtraces from the breakpoint in uncache_face. Did I miss > something? No - I missed something. I am new to gdb and sometimes (often?) get confused. This is the latest one - and if I understand correctly, again not triggered. ,---- | xdisp.c:19795: Emacs fatal error: assertion failed: it->method =3D=3D GET= _FROM_BUFFER || it->method =3D=3D GET_FROM_DISPLAY_VECTOR || it->method =3D= =3D GET_FROM_STRING |=20 | Breakpoint 1, terminate_due_to_signal (sig=3D6, backtrace_limit=3D2147483= 647) at emacs.c:370 | 370 signal (sig, SIG_DFL); | (gdb) `---- > >> I am sure the crash occurs again, so please let me know what further >> info you need from the next crash. > > If indeed the breakpoint in uncache_face never breaks, please proceed > to configuring Emacs with --enable-checking=3D'yes,glyphs' and disabling > the redisplay optimizations, as I've described here: OK - I will reconfigure then. > >> > If this breakpoint never breaks before another crash, please >> > reconfigure Emacs like this: >> > >> > CFLAGS=3D"-ggdb3 -O0" CXXFLAGS=3D"-ggdb3 -O0" LDFLAGS=3D"-ggdb3" ./c= onfigure --enable-checking=3D'yes,glyphs' reconfiguring. >> > >> > then rebuild, and run it after setting these three variables to t: >> > >> > inhibit-try-cursor-movement >> > inhibit-try-window-id >> > inhibit-try-window-reusing OK - I evaluated (setq inhibit-try-cursor-movement t) (setq inhibit-try-window-id t) (setq inhibit-try-window-reusing t) immediately in scratch after starting emacs - is this correct? >> > >> > This disables some redisplay optimizations, so you might see slow >> > redisplay; this is normal. What is important is to see whether the >> > crashes disappear when these variables are set to non-nil values. If >> > you run for a long time without crashes, then set these variables to >> > nil, one by one, in the order they are shown above, and each time let >> > Emacs run enough time for you to be sure the problem doesn't happen, >> > before you proceed to the next variable. OK - running emacs now with all set to t =3D will keep you posted. Thanks, Rainer > > Thanks. =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----- iQEcBAEBCAAGBQJWCSC6AAoJENvXNx4PUvmCFKsIAJVyKct9xweMTU8LiGY4IyNi Aabi4OBNKsY1MAbkmFsNbzx1urxykUu7uISMHNapOu3Dzit3q04bt258AM31rhUx MIp64nd1/qYLtljpBwL1krqsxH4PEoOXwcyyyJWRYKazCcmJn5WCtorXUq+n3+nE JwIueKgHoNLcpGNhr4ZSYKed5YMrCwyWNiGtW3GGuXic9lZs/druC4aNKQGKWWlp EZkYhOnOthFsRVR7WYL+exKhRQWmmvHj8osMZ5HNhhviXslP6Q/XETMBIg7StDL6 QQwWccO5y9zVMo+bjZNle8Cx6T9yCrSCxoQGUHT+urmeHcNBRB5bm1K6b/hfErw= =Bcsh -----END PGP SIGNATURE----- --=-=-=--