From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pieter van Oostrum Newsgroups: gmane.emacs.bugs Subject: bug#44850: 27.1; Emacs crash in font handling with font-backend ns Date: Tue, 24 Nov 2020 19:09:55 +0100 Message-ID: <24509.19571.558312.286528@cochabamba.vanoostrum.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19269"; mail-complaints-to="usenet@ciao.gmane.io" To: 44850@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 24 19:11:24 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khcmi-0004ua-8I for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 19:11:24 +0100 Original-Received: from localhost ([::1]:56690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khcmh-0006KW-9B for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 13:11:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khcmM-0006K2-P4 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 13:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khcmM-0001Im-H2 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 13:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khcmM-00052d-D1 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 13:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2020 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44850 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160624140819312 (code B ref -1); Tue, 24 Nov 2020 18:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Nov 2020 18:10:08 +0000 Original-Received: from localhost ([127.0.0.1]:32955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khclU-00051Q-6f for submit@debbugs.gnu.org; Tue, 24 Nov 2020 13:10:08 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khclS-00051H-HS for submit@debbugs.gnu.org; Tue, 24 Nov 2020 13:10:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khclS-0005jm-76 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 13:10:06 -0500 Original-Received: from smarthost-a.hosting2go.nl ([185.135.240.50]:43900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khclP-000145-4R for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 13:10:05 -0500 X-ASG-Debug-ID: 1606241397-027370356b6af310001-HqB3X1 Original-Received: from server24.hosting2go.nl (server24.hosting2go.nl [185.135.241.24]) by smarthost-a.hosting2go.nl with ESMTP id 6ZQcBGIofBDX6ZWP (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Tue, 24 Nov 2020 19:09:57 +0100 (CET) X-Barracuda-Envelope-From: pieter@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Apparent-Source-IP: 185.135.241.24 Original-Received: (qmail 5892 invoked from network); 24 Nov 2020 18:09:57 -0000 Original-Received: from 145-132-212-31.fixed.kpn.net (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 24 Nov 2020 18:09:56 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 185.135.240.40 does not designate permitted sender hosts) Original-Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 5DB8CC42E692 for ; Tue, 24 Nov 2020 19:09:56 +0100 (CET) X-Mailer: VM undefined under 28.0.50 (x86_64-apple-darwin14.5.0) X-ASG-Orig-Subj: 27.1; Emacs crash in font handling with font-backend ns X-Barracuda-Connect: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Start-Time: 1606241397 X-Barracuda-Encrypted: TLS_AES_256_GCM_SHA384 X-Barracuda-URL: https://185.135.240.50:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 5813 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests= A-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.86095 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Received-SPF: none client-ip=185.135.240.50; envelope-from=pieter@vanoostrum.org; helo=smarthost-a.hosting2go.nl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194097 Archived-At: Emacs 27 crashes with the following init.el file: (setq default-frame-alist '((ns-appearance . darkgray) (tool-bar-lines . 0) (width . 100) (top . 1) (fullscreen . fullheight) (modeline . t) (mouse-color . "black") (background-mode . light) (menu-bar-lines . 1) (cursor-color . "darkblue") (background-color . "White") (foreground-color . "Black") (font . "-apple-Monaco-medium-normal-normal-*-12-*-*-*-m-0-iso10646-1") (fontsize . 12) (font-backend ns) (left-fringe) (right-fringe))) I have been using this construction for years, but recently it caused emacs to crash. I recently switched over to Emacs 27.1.1 after having used an older Emacs 27 version for months. The offending line is '(font-backend ns)', without this line there is no crash. Also if I start Emacs with -Q and eval this expression directly or load .init.el there is no problem, only when it is used in the init file. I read somewhere that font-backend 'ns' is deprecated, but Emacs shouldn't crash. If this font-backend is wrong it should give en error message. As this is the distributed Emacs from https://emacsformacosx.com/emacs-builds/Emacs-27.1-1-universal.dmg there is no symbol table information Thread 3 received signal SIGSEGV, Segmentation fault. 0x000000010020aa0c in macfont_get_glyph_for_character () (gdb) bt full #0 0x000000010020aa0c in macfont_get_glyph_for_character () No symbol table info available. #1 0x0000000100208084 in macfont_encode_char () No symbol table info available. #2 0x000000010003bfd4 in gui_produce_glyphs () No symbol table info available. #3 0x0000000100025f29 in produce_special_glyphs () No symbol table info available. #4 0x00000001000254b7 in init_iterator () No symbol table info available. #5 0x000000010002ca8b in resize_mini_window () No symbol table info available. #6 0x000000010002a90b in with_echo_area_buffer () No symbol table info available. #7 0x000000010002a585 in resize_echo_area_exactly () No symbol table info available. #8 0x00000001000ca4fa in command_loop_1 () No symbol table info available. #9 0x0000000100155d97 in internal_condition_case () No symbol table info available. #10 0x00000001000dcc80 in command_loop_2 () No symbol table info available. #11 0x00000001001556ee in internal_catch () No symbol table info available. #12 0x00000001000c9ace in command_loop () No symbol table info available. #13 0x00000001000c99e3 in recursive_edit_1 () No symbol table info available. #14 0x00000001000c9c12 in Frecursive_edit () No symbol table info available. #15 0x00000001000c8808 in main () No symbol table info available. (gdb) xbacktrace Undefined command: "xbacktrace". Try "help". (gdb) In GNU Emacs 27.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2020-08-12 built on builder10-10.porkrind.org Windowing system distributor 'Apple', version 10.3.1561 System Description: Mac OS X 10.13.6 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_NL.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-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 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 47309 7327) (symbols 48 6705 1) (strings 32 16213 1922) (string-bytes 1 516049) (vectors 16 10337) (vector-slots 8 135883 7144) (floats 8 19 42) (intervals 56 206 0) (buffers 1000 13)) -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]