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#21394: 25.0.50; Segfault when displaying unprintable character in echo area while frames are being created Date: Tue, 01 Sep 2015 22:37:16 +0300 Message-ID: <83io7uaq37.fsf@gnu.org> References: <83y4gqaxhs.fsf@gnu.org> <83twreau6e.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441136304 27458 80.91.229.3 (1 Sep 2015 19:38:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2015 19:38:24 +0000 (UTC) Cc: 21394@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 01 21:38:12 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 1ZWrNh-0004ja-TC for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 21:38:10 +0200 Original-Received: from localhost ([::1]:57496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWrNh-0002jA-OQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Sep 2015 15:38:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWrNe-0002if-98 for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2015 15:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWrNa-0000vm-61 for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2015 15:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWrNa-0000vV-2n for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2015 15:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZWrNZ-0005JX-Sj for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2015 15:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Sep 2015 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21394-submit@debbugs.gnu.org id=B21394.144113622920364 (code B ref 21394); Tue, 01 Sep 2015 19:38:01 +0000 Original-Received: (at 21394) by debbugs.gnu.org; 1 Sep 2015 19:37:09 +0000 Original-Received: from localhost ([127.0.0.1]:45378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWrMj-0005IO-Ag for submit@debbugs.gnu.org; Tue, 01 Sep 2015 15:37:09 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:33410) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWrMf-0005ID-Vn for 21394@debbugs.gnu.org; Tue, 01 Sep 2015 15:37:07 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NU000600JNF5200@a-mtaout20.012.net.il> for 21394@debbugs.gnu.org; Tue, 01 Sep 2015 22:37:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NU0005PHJTSZ360@a-mtaout20.012.net.il>; Tue, 01 Sep 2015 22:37:04 +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:106071 Archived-At: > Date: Tue, 1 Sep 2015 18:52:44 +0000 > From: Pip Cet > Cc: 21394@debbugs.gnu.org > > I see the problematic face always has face ID of 18, and the 'used' > field is always 15 when the segfault strikes. So I guess the next > step is to make the breakpoint in cache_face conditional on i being > 18, > > i is used in two different ways in that function, as a face hash and as an > index into faces_by_id. I assume you mean the latter? Yes. > and then see whether c->used is set to 19 during that call to > cache_face. If it does, then a watchpoint (by location) on c->used > should show which code makes the value smaller. > > So I wrote a perl script to set a watchpoint on c->used whenever we allocate a > new face cache c in make_face_cache, and clear the watchpoint when we hit > free_face_cache. Output attached, but do let me know what else you would like > watched. I think that has all the information your approach would have given > us. Sounds like the face ID of 18 is "remembered" somewhere, and not "forgotten" when the face cache is free'd?