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: Mon, 26 Oct 2015 21:09:53 +0200 Message-ID: <83lhapbg5a.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> <83io5udb1t.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445886747 21527 80.91.229.3 (26 Oct 2015 19:12:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2015 19:12:27 +0000 (UTC) Cc: 21428@debbugs.gnu.org To: Rainer M Krug Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 26 20:12:16 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 1ZqnBi-0000se-Cy for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2015 20:12:10 +0100 Original-Received: from localhost ([::1]:54705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqnBh-0004Zr-JX for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2015 15:12:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqnBd-0004Zm-Uh for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 15:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqnBa-0000Bn-GQ for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 15:12:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqnBa-0000Bj-Cs for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZqnBZ-0006bM-WA for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2015 15:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Oct 2015 19:12: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.144588666825312 (code B ref 21428); Mon, 26 Oct 2015 19:12:01 +0000 Original-Received: (at 21428) by debbugs.gnu.org; 26 Oct 2015 19:11:08 +0000 Original-Received: from localhost ([127.0.0.1]:39413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqnAh-0006aC-NF for submit@debbugs.gnu.org; Mon, 26 Oct 2015 15:11:08 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:39979) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZqnAf-0006a2-8Z for 21428@debbugs.gnu.org; Mon, 26 Oct 2015 15:11:06 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NWU00C00D3ZWK00@a-mtaout20.012.net.il> for 21428@debbugs.gnu.org; Mon, 26 Oct 2015 21:09:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWU00CYWD85VB10@a-mtaout20.012.net.il>; Mon, 26 Oct 2015 21:09:41 +0200 (IST) 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:108051 Archived-At: > From: Rainer M Krug > Cc: 21428@debbugs.gnu.org > Date: Mon, 26 Oct 2015 08:59:39 +0100 > > the bug does not affect to many users (strange config? OS X?). It's not really true that it didn't affect others. We have in the bug tracker a few similar bug reports where an invalid face ID was the culprit, I believe they were caused by the same problem. It's true that these problems are rare. That's because, for this situation to happen, you need to have some to enable feature that can create new faces or change existing faces in code that is invoked by redisplay, for example some Lisp form that gets evaluated while displaying the mode line. When a face is created or changed, Emacs forgets all the cached faces (because a new/changed face could potentially require fresh realization of the faces that depend on the changed face, and Emacs doesn't track face dependencies and this cannot know which ones, if any, need to be recomputed). If this happens, and if Emacs also needs to redraw the portions of the display that used one of the "forgotten" faces, it crashes. So this requires a relatively rare combination of factors, and so went under the radar for a long time. I think it was exposed more lately because we consistently introduced more and more redisplay optimizations, which increased the probability of these rare situations because they allow Emacs to avoid examining faces in larger areas of its display, thus failing to recompute them after discarding the cached faces.