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: Wed, 27 Apr 2016 17:02:38 +0300 Message-ID: <83y47zxi81.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1461765939 2414 80.91.229.3 (27 Apr 2016 14:05:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2016 14:05:39 +0000 (UTC) Cc: 23386@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 16:05:28 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 1avQ5n-0007uk-MS for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 16:05:27 +0200 Original-Received: from localhost ([::1]:43417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQ5n-0000Vo-2c for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 10:05:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQ4W-0007FU-DC for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:04:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avQ4Q-0005gv-FX for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:04:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQ4Q-0005gr-DH for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avQ4Q-00031l-7h for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:04: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: Wed, 27 Apr 2016 14:04: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: Original-Received: via spool by 23386-submit@debbugs.gnu.org id=B23386.146176578911556 (code B ref 23386); Wed, 27 Apr 2016 14:04:02 +0000 Original-Received: (at 23386) by debbugs.gnu.org; 27 Apr 2016 14:03:09 +0000 Original-Received: from localhost ([127.0.0.1]:50149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avQ3V-00030G-Vx for submit@debbugs.gnu.org; Wed, 27 Apr 2016 10:03:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avQ3U-0002zl-SD for 23386@debbugs.gnu.org; Wed, 27 Apr 2016 10:03:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avQ3K-0005HP-1i for 23386@debbugs.gnu.org; Wed, 27 Apr 2016 10:02:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQ3J-0005HL-VK; Wed, 27 Apr 2016 10:02:53 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2985 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1avQ3J-0005qs-4t; Wed, 27 Apr 2016 10:02:53 -0400 In-reply-to: (message from Stefan Monnier on Wed, 27 Apr 2016 09:13:30 -0400) 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:116910 Archived-At: > From: Stefan Monnier > Date: Wed, 27 Apr 2016 09:13:30 -0400 > > If I do > > % emacs -Q --eval "(push '(font-backend x) default-frame-alist)" > > I get a segfault. This is with the latest emacs-25. Not reproducible here, but then I cannot run an X version. (I did try an equivalent for Windows; it didn't crash.) > See the backtrace below. > > > Stefan > > > Program received signal SIGSEGV, Segmentation fault. > 0xf70b3b36 in XftCharIndex () from /usr/lib/i386-linux-gnu/libXft.so.2 > (gdb) xbacktrace > (gdb) bt > #0 0xf70b3b36 in XftCharIndex () from /usr/lib/i386-linux-gnu/libXft.so.2 > #1 0x082d4d69 in xftfont_encode_char (font=0x8779b00, c=92) at xftfont.c:537 Can you tell which arguments to XftCharIndex were invalid in this case? Also, is 'x' a valid font-backend symbol? It's strange that Emacs uses xftfont when it should have been using xfont instead (AFAIU). But I'm far from being an expert in this area. Thanks.