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#18162: 24.3.92; segfault on null face pointer in face_for_char Date: Sat, 02 Aug 2014 09:49:34 +0300 Message-ID: <83vbqbqtc1.fsf@gnu.org> References: <6ewqatjen6.fsf@just-testing.permabit.com> <838un8sqeo.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1406962351 26729 80.91.229.3 (2 Aug 2014 06:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2014 06:52:31 +0000 (UTC) Cc: 18162@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 02 08:52:24 2014 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 1XDTB2-0000u4-A9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Aug 2014 08:52:24 +0200 Original-Received: from localhost ([::1]:43189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDTB1-0006A8-U6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Aug 2014 02:52:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDTAq-00069B-VQ for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 02:52:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDT8l-0008Jq-A9 for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 02:50:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDT8l-0008JT-7X for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 02:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XDT8k-0002Cd-9q for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 02:50: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: Sat, 02 Aug 2014 06:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18162 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18162-submit@debbugs.gnu.org id=B18162.14069621828439 (code B ref 18162); Sat, 02 Aug 2014 06:50:02 +0000 Original-Received: (at 18162) by debbugs.gnu.org; 2 Aug 2014 06:49:42 +0000 Original-Received: from localhost ([127.0.0.1]:54365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDT8Q-0002C3-CH for submit@debbugs.gnu.org; Sat, 02 Aug 2014 02:49:42 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58915) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDT8N-0002Bl-Fv for 18162@debbugs.gnu.org; Sat, 02 Aug 2014 02:49:40 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N9O00I002N1YS00@a-mtaout20.012.net.il> for 18162@debbugs.gnu.org; Sat, 02 Aug 2014 09:49:32 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N9O00I9Z2YKQG70@a-mtaout20.012.net.il>; Sat, 02 Aug 2014 09:49:32 +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: 140.186.70.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:92040 Archived-At: > Date: Fri, 1 Aug 2014 21:52:44 -0400 > From: Ken Raeburn > Cc: 18162 <18162@debbugs.gnu.org> > > On Fri, Aug 1, 2014 at 1:57 AM, Eli Zaretskii wrote: > > > Sounds like some code called clear_face_cache, for some reason. Is f > > at all the same frame where you were typing? If not, the crash could > > have nothing to do with what you typed, but with some background > > activity on another frame. > > > > I just ran Emacs a while under gdb, and it called clear_face_cache while I > wasn't doing anything interesting, just typing into a buffer. It happened > from in redisplay_internal when clear_face_cache_count reached 501. Its > documentation says it's used to "clear the face cache every once in a > while". There's nothing wrong with a call to clear_face_cache. We do this all the time, as you have discovered. The problem is if we try using faces after that without first realizing the basic faces.