From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 30 19:26:58 2014 Received: (at submit) by debbugs.gnu.org; 30 Jun 2014 23:26:58 +0000 Received: from localhost ([127.0.0.1]:38338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1kyP-0006vO-9X for submit@debbugs.gnu.org; Mon, 30 Jun 2014 19:26:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33482) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1kyN-0006v9-Ga for submit@debbugs.gnu.org; Mon, 30 Jun 2014 19:26:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1kyC-00042t-86 for submit@debbugs.gnu.org; Mon, 30 Jun 2014 19:26:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1kyC-00042l-4f for submit@debbugs.gnu.org; Mon, 30 Jun 2014 19:26:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ky6-0005YV-Pd for bug-gnu-emacs@gnu.org; Mon, 30 Jun 2014 19:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1ky1-0003vr-LG for bug-gnu-emacs@gnu.org; Mon, 30 Jun 2014 19:26:38 -0400 Received: from mx.sdf.org ([192.94.73.24]:63165 helo=sdf.lonestar.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ky1-0003tJ-BM for bug-gnu-emacs@gnu.org; Mon, 30 Jun 2014 19:26:33 -0400 Received: from wm.sdf.org (mx.sdf.org [192.94.73.24]) by sdf.lonestar.org (8.14.8/8.14.5) with ESMTP id s5UNQN90021116 for ; Mon, 30 Jun 2014 23:26:23 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 01 Jul 2014 00:26:23 +0100 From: Mat Smiglarski To: bug-gnu-emacs@gnu.org Subject: 24.3; Crash setting the font on a separate frame with no minibuffer Message-ID: X-Sender: penthief@SDF.ORG User-Agent: Roundcube Webmail/1.0.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Emacs crashes when setting the font on a frame with no minibuffer after initialising color-mode. This does not occur when running in a terminal. The crash only occurs with certain fonts (eg. Monaco, or DejaVu Sans Mono, but not Courier) and can be reproduced with a small amount of code from color-mode and no dependent packages, as demonstrated below. To Reproduce: 1: Create the following 50 line file for initialisation. (This is mostly from color-mode, and you may like to comment out the last two lines which are not, in order to avoid the immediate crash.) (defun color-theme-install-faces (faces) ;; clear all previous faces ;; install new faces (let ((frame nil)) (dolist (entry faces) (let ((face (nth 0 entry)) (spec (nth 1 entry))) (or (facep face) (make-empty-face face)) ;; remove weird properties from the default face only (if (and (functionp 'face-spec-reset-face) (equal spec '((t (nil))))) (face-spec-reset-face face frame) (condition-case var (progn (face-spec-set face spec frame) (put face 'face-defface-spec spec)) (error (message "Error using spec %S: %S" spec var)))))))) (defun color-theme-canonic (theme) "Return the canonic form of THEME. This deals with all the backwards compatibility stuff." (let (function frame-params variables faces) (when (functionp (car theme)) (setq function (car theme) theme (cdr theme))) (setq frame-params (car theme) theme (cdr theme)) ;; optional variable defintions (for backwards compatibility) (when (listp (caar theme)) (setq variables (car theme) theme (cdr theme))) ;; face definitions (setq faces theme) (list function frame-params variables faces))) (defun color-theme-faces (theme) "Return faces defined by THEME." (nth 3 theme)) (color-theme-install-faces (color-theme-faces (color-theme-canonic '(color-theme-crash-crash-crash (italic ((t (:italic t)))) (underline ((t (:underline t)))) )))) (with-selected-frame (make-frame '((minibuffer . nil))) (set-frame-font (font-spec :family "Monaco"))) ;; "DejaVu San Mono" also causes the crash 2. Start emacs $ emacs -Q -l ~/crash.el Emacs now crashes. Only the last two lines of the script are not taken from color-mode and they can be run at any time. The issue only occurs when running in a GUI. Regards, Mat A short stack trace follows: Starting program: /usr/bin/emacs24-x -Q -l ~/bug-consistent-crash.el [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe9cff700 (LWP 12593)] [New Thread 0x7fffe94fe700 (LWP 12594)] Program received signal SIGSEGV, Segmentation fault. font_open_for_lface (f=f@entry=0x115fe00, entity=18342333, attrs=attrs@entry=0x1155f20, spec=spec@entry=18243669) at font.c:3244 3244 font.c: No such file or directory. #0 font_open_for_lface (f=f@entry=0x115fe00, entity=18342333, attrs=attrs@entry=0x1155f20, spec=spec@entry=18243669) at font.c:3244 def = 0x0 height = pt = size = #1 0x0000000000565b41 in font_load_for_lface (f=0x115fe00, f@entry=, attrs=0x1155f20, spec=spec@entry=18243669) at font.c:3285 entity = name = #2 0x00000000004a88b2 in Finternal_set_lisp_face_attribute (face=12154754, face@entry=, attr=12152626, value=18243669, frame=18218501) at xfaces.c:3148 attrs = font_object = f = lface = 18177813 old_value = 12154610 prop_index = FONT_TYPE_INDEX In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 01 03:33:35 2014 Received: (at 17889) by debbugs.gnu.org; 1 Jul 2014 07:33:35 +0000 Received: from localhost ([127.0.0.1]:38596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1sZL-0002aF-Da for submit@debbugs.gnu.org; Tue, 01 Jul 2014 03:33:35 -0400 Received: from forward1l.mail.yandex.net ([84.201.143.144]:40232) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X1sZI-0002Zy-0q for 17889@debbugs.gnu.org; Tue, 01 Jul 2014 03:33:33 -0400 Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward1l.mail.yandex.net (Yandex) with ESMTP id 681B315218D9; Tue, 1 Jul 2014 11:33:22 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 16C3C1340EB9; Tue, 1 Jul 2014 11:33:21 +0400 (MSK) Received: from 59.gprs.mts.ru (59.gprs.mts.ru [213.87.135.59]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qgu8RhTAn3-XLhGPpmh; Tue, 1 Jul 2014 11:33:21 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 20bdd44e-dff6-4d36-b756-eebc25158613 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1404200001; bh=5B7GopSZerK2HhfMOm8sxxxOw0vBYUgcmNcdNBCevt8=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ohqu7xoq0iH/6wEewxK3/UtWsDT5CJCifNd0DfZeXHGqIZciMGF2mO77jwoZjE3Mp /JSK7673Eb+h95cmGCsGbhcCbc1QeP636oxc9LfE1XqbtPtS+VRlZKwUw4Kajy4jsJ RM8jp/9GR7yV7tN3RraGLQ/8LvJhwfo52Uko3AH8= Authentication-Results: smtp1h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <53B2643D.8070105@yandex.ru> Date: Tue, 01 Jul 2014 11:33:17 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: 17889@debbugs.gnu.org Subject: Re: bug#17889: 24.3; Crash setting the font on a separate frame with no minibuffer References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: 17889 Cc: Mat Smiglarski X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.6 (/) On 07/01/2014 03:26 AM, Mat Smiglarski wrote: > Emacs crashes when setting the font on a frame with no minibuffer > after initialising color-mode. This does not occur when running in a terminal. Should be fixed in emacs-24 revision 117331. Dmitry From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 02 11:54:48 2014 Received: (at control) by debbugs.gnu.org; 2 Jul 2014 15:54:48 +0000 Received: from localhost ([127.0.0.1]:40602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2Mrq-0006tX-Qg for submit@debbugs.gnu.org; Wed, 02 Jul 2014 11:54:47 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:44870 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2Mrk-0006tF-AF for control@debbugs.gnu.org; Wed, 02 Jul 2014 11:54:41 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1X2Mrj-00054c-Rs for control@debbugs.gnu.org; Wed, 02 Jul 2014 11:54:35 -0400 Date: Wed, 02 Jul 2014 11:54:35 -0400 Message-Id: Subject: control message for bug 17889 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 17889 24.4 From unknown Sun Jun 22 11:38:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 31 Jul 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator