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#23386: Segfault when messing with font-backend Date: Sun, 10 Jul 2016 17:18:02 +0300 Message-ID: <83lh19fug5.fsf@gnu.org> References: <83y47zxi81.fsf@gnu.org> <87d1mmiq35.fsf@users.sourceforge.net> <8760seinqh.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468160375 18272 80.91.229.3 (10 Jul 2016 14:19:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 14:19:35 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, 23386@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 16:19:24 2016 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 1bMFZr-0002w8-Bl for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 16:19:23 +0200 Original-Received: from localhost ([::1]:55352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMFZq-0004al-JA for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 10:19:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMFZa-0004Tf-MW for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 10:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMFZW-0001yv-DC for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 10:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMFZW-0001yr-9q for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 10:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMFZW-0006b8-36 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2016 10:19: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: Sun, 10 Jul 2016 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23386 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 23386-submit@debbugs.gnu.org id=B23386.146816030025315 (code B ref 23386); Sun, 10 Jul 2016 14:19:02 +0000 Original-Received: (at 23386) by debbugs.gnu.org; 10 Jul 2016 14:18:20 +0000 Original-Received: from localhost ([127.0.0.1]:45192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMFYq-0006aF-C0 for submit@debbugs.gnu.org; Sun, 10 Jul 2016 10:18:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMFYo-0006Zy-8R for 23386@debbugs.gnu.org; Sun, 10 Jul 2016 10:18:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMFYf-0001qA-QU for 23386@debbugs.gnu.org; Sun, 10 Jul 2016 10:18:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMFYf-0001pj-Ni; Sun, 10 Jul 2016 10:18:09 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2827 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bMFYd-0007y3-HO; Sun, 10 Jul 2016 10:18:08 -0400 In-reply-to: <8760seinqh.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:120745 Archived-At: > From: npostavs@users.sourceforge.net > Cc: 23386@debbugs.gnu.org, Eli Zaretskii > Date: Sat, 09 Jul 2016 16:02:30 -0400 > > > Here is a patch that attempts to fix the issue by resetting the font > > after the backend is changed. It does let Emacs successfully open the > > frame with the new font (no funny box characters in the modeline), but > > I'm not sure if it's the best way of marking the font object invalid. > > Definitely not the best way: it causes segfault on delete-frame. Backtrace from that segfault? I think one idea that could be useful is to trace the creation of relevant objects when Emacs starts up, starting with the call to font_update_drivers, and then compare that with what happens in this case. That could delineate the missing parts and the differences which could point the way to solving this cleanly. Thanks.