* bug#37637: 27.0.50; Segmentation fault when setting font face for new frames @ 2019-10-06 15:32 Andreas Hilboll 2019-10-06 18:11 ` Eli Zaretskii 0 siblings, 1 reply; 6+ messages in thread From: Andreas Hilboll @ 2019-10-06 15:32 UTC (permalink / raw) To: 37637 I'm experiencing Segmentation Faults related to setting font faces for newly created frames. The same problem exists with Emacs-26.3. I'm using the following minimal init.el file: ---8<---------------- defun ah/setup-gui-frame (frame) (custom-theme-set-faces 'user `(org-document-title ((t (:font "Garamond" :height 160)))) ) ) (add-hook 'after-make-frame-functions (lambda (frame) (when (display-graphic-p frame) (ah/setup-gui-frame frame)))) (add-hook 'org-mode-hook 'variable-pitch-mode) (add-to-list 'default-frame-alist '(font-backend . "xft")) ---8<---------------- Now, when I start Emacs and open an org-mode file, the document title is not displayed in Garamond, but in the system's default sans-serif font. When I now open a new frame with =C-x 5 2=, the org-mode file in both the new and the old frame are displayed in Garamond. So far this is the behavior I expect. I can now open new frames with =C-x 5 2=, but at some point (after 1--4 additional frames), Emacs quits with a segmentation fault. The same happens when I'm using any other font that's installed on my system. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-10-04 built on alniyat Repository revision: 32558cfe53b187e3bbdfb532c7ce64ab9b0cd4f5 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Setting up indent for shell type bash Indentation variables are now local. Indentation setup for shell type bash Making completion list... Configured using: 'configure --prefix=/home/andreas/.local/emacs' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Org Minor modes in effect: buffer-face-mode: t 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: /home/andreas/.emacs.d/elpa/ivy-bibtex-20190918.1116/bibtex-completion hides /home/andreas/.emacs.d/elpa/helm-bibtex-20190918.1116/bibtex-completion /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-publish hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-publish /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-odt hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-odt /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-man hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-man /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-latex hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-latex /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-html hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-html /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-beamer hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-beamer /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-ascii hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-ascii /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-timer hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-timer /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-table hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-table /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-protocol hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-protocol /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-plot hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-plot /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-pcomplete hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-pcomplete /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-mouse hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-mouse /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-mobile hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-mobile /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-mhe hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-mhe /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-macs hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-macs /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-macro hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-macro /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-list hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-list /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-indent hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-indent /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-id hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-id /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-habit hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-habit /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-gnus hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-gnus /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-footnote hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-footnote /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-faces hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-faces /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-eshell hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-eshell /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-element hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-element /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-duration hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-duration /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-datetree hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-datetree /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-ctags hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-ctags /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-compat hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-compat /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-colview hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-colview /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-clock hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-clock /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-capture hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-capture /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-attach hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-attach /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-agenda hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-agenda /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-shen hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-shen /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-scheme hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-scheme /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-ruby hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-ruby /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-python hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-python /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-processing hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-processing /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-picolisp hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-picolisp /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-lua hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-lua /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-lilypond hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-lilypond /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-js hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-js /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-J hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-J /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-io hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-io /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-haskell hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-haskell /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-groovy hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-groovy /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-fortran hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-fortran /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-forth hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-forth /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-exp hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-exp /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-eval hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-eval /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-ebnf hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-ebnf /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-core hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-core /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-C hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-C /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-awk hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-awk /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-asymptote hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-asymptote /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-abc hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-abc /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-texinfo hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-texinfo /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-org hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-org /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-md hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-md /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ox-icalendar hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ox-icalendar /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-w3m hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-w3m /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-src hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-src /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-rmail hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-rmail /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-lint hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-lint /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-irc hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-irc /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-inlinetask hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-inlinetask /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-info hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-info /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-feed hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-feed /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-eww hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-eww /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-entities hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-entities /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-docview hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-docview /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-crypt hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-crypt /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-bibtex hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-bibtex /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-bbdb hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-bbdb /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-archive hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-archive /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-vala hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-vala /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-tangle hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-tangle /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-table hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-table /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-stan hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-stan /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-sqlite hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-sqlite /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-sql hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-sql /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-shell hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-shell /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-sed hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-sed /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-screen hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-screen /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-sass hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-sass /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-ref hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-ref /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-plantuml hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-plantuml /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-perl hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-perl /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-org hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-org /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-octave hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-octave /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-ocaml hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-ocaml /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-mscgen hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-mscgen /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-maxima hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-maxima /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-matlab hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-matlab /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-makefile hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-makefile /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-lob hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-lob /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-lisp hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-lisp /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-ledger hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-ledger /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-latex hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-latex /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-keys hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-keys /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-java hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-java /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-hledger hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-hledger /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-gnuplot hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-gnuplot /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-emacs-lisp hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-emacs-lisp /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-dot hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-dot /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-ditaa hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-ditaa /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-css hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-css /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-coq hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-coq /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-comint hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-comint /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-clojure hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-clojure /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-calc hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-calc /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/ob-R hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/ob-R /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-loaddefs hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-loaddefs /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-version hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-version /home/andreas/.emacs.d/elpa/org-plus-contrib-20190930/org-install hides /home/andreas/.local/emacs/share/emacs/27.0.50/lisp/org/org-install Features: (shadow sort mail-extr emacsbug sendmail sh-script smie executable vc-git diff-mode org-eldoc org-journal org-crypt cal-iso face-remap org-eww org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum url url-proxy url-privacy url-expand url-methods url-history mailcap shr url-cookie url-domsuf url-util svg xml dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr wid-edit org-docview doc-view jka-compr image-mode exif dired dired-loaddefs org-bibtex bibtex org-bbdb org-w3m org-element avl-tree generator org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint ob-keys org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-compat advice org-macs org-loaddefs format-spec find-func edmacro kmacro cal-menu calendar cal-loaddefs rx info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd 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 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 minibuffer 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 198019 11452) (symbols 48 20948 1) (strings 32 71178 2850) (string-bytes 1 2623345) (vectors 16 28648) (vector-slots 8 354550 17718) (floats 8 194 52) (intervals 56 1751 342) (buffers 1000 17)) ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37637: 27.0.50; Segmentation fault when setting font face for new frames 2019-10-06 15:32 bug#37637: 27.0.50; Segmentation fault when setting font face for new frames Andreas Hilboll @ 2019-10-06 18:11 ` Eli Zaretskii 2019-10-07 21:00 ` Andreas Hilboll 0 siblings, 1 reply; 6+ messages in thread From: Eli Zaretskii @ 2019-10-06 18:11 UTC (permalink / raw) To: Andreas Hilboll; +Cc: 37637 > From: Andreas Hilboll <andreas.hilboll@posteo.de> > Date: Sun, 06 Oct 2019 17:32:43 +0200 > > I'm experiencing Segmentation Faults related to setting font faces > for > newly created frames. The same problem exists with Emacs-26.3. Please run Emacs under a debugger and show the C-level and Lisp-level backtraces from the crash. Thanks. ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37637: 27.0.50; Segmentation fault when setting font face for new frames 2019-10-06 18:11 ` Eli Zaretskii @ 2019-10-07 21:00 ` Andreas Hilboll 2019-10-08 9:02 ` Eli Zaretskii 0 siblings, 1 reply; 6+ messages in thread From: Andreas Hilboll @ 2019-10-07 21:00 UTC (permalink / raw) To: 37637 > Please run Emacs under a debugger and show the C-level and > Lisp-level > backtraces from the crash. Sure thing, here we go: (gdb) bt #0 0x00005555557c133d in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:371 #1 0x00005555558de4c1 in die (msg=0x555555b781f0 "UNSIGNED_CMP (DEFAULT_FACE_ID, <, FRAME_FACE_CACHE (f)->used)", file=0x555555b7679d "font.c", line=3317) at alloc.c:7245 #2 0x000055555596f31d in font_open_for_lface (f=0x555556a28e50, entity=XIL(0x5555592ec375), attrs=0x5555578f9618, spec=XIL(0x555559345925)) at font.c:3317 #3 0x000055555596f6b9 in font_load_for_lface (f=0x555556a28e50, attrs=0x5555578f9618, spec=XIL(0x555559345925)) at font.c:3395 #4 0x000055555572df1a in Finternal_set_lisp_face_attribute (face=XIL(0x57e3f0), attr=XIL(0xc90), value=XIL(0x555559345925), frame=XIL(0x555556a28e55)) at xfaces.c:3150 #5 0x000055555593b24d in funcall_subr (subr=0x555556103220 <Sinternal_set_lisp_face_attribute>, numargs=4, args=0x7fffffff9e58) at eval.c:2875 #6 0x000055555593ac93 in Ffuncall (nargs=5, args=0x7fffffff9e50) at eval.c:2794 #7 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0d380ec), vector=XIL(0x7ffff0d37f8d), maxdepth=make_fixnum(14), args_template=make_fixnum(642), nargs=10, args=0x7fffffffa3c8) at bytecode.c:633 #8 0x000055555593b917 in funcall_lambda (fun=XIL(0x7ffff0d37f5d), nargs=10, arg_vector=0x7fffffffa3b8) at eval.c:2989 #9 0x000055555593acd7 in Ffuncall (nargs=11, args=0x7fffffffa3b0) at eval.c:2796 #10 0x0000555555939ecf in Fapply (nargs=4, args=0x7fffffffa5d0) at eval.c:2424 #11 0x000055555593b0bd in funcall_subr (subr=0x55555610c320 <Sapply>, numargs=4, args=0x7fffffffa5d0) at eval.c:2847 #12 0x000055555593ac93 in Ffuncall (nargs=5, args=0x7fffffffa5c8) at eval.c:2794 #13 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0d3812c), vector=XIL(0x7ffff0d37f05), maxdepth=make_fixnum(9), args_template=make_fixnum(771), nargs=3, args=0x7fffffffaae8) at bytecode.c:633 #14 0x000055555593b917 in funcall_lambda (fun=XIL(0x7ffff0d37ed5), nargs=3, arg_vector=0x7fffffffaad0) at eval.c:2989 #15 0x000055555593acd7 in Ffuncall (nargs=4, args=0x7fffffffaac8) at eval.c:2796 #16 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0d38d04), vector=XIL(0x7ffff0d36565), maxdepth=make_fixnum(12), args_template=make_fixnum(514), nargs=2, args=0x7fffffffb008) at bytecode.c:633 #17 0x000055555593b917 in funcall_lambda (fun=XIL(0x7ffff0d36535), nargs=2, arg_vector=0x7fffffffaff8) at eval.c:2989 #18 0x000055555593acd7 in Ffuncall (nargs=3, args=0x7fffffffaff0) at eval.c:2796 #19 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0e533cc), vector=XIL(0x7ffff0d3649d), maxdepth=make_fixnum(8), args_template=make_fixnum(770), nargs=3, args=0x7fffffffb4e8) at bytecode.c:633 #20 0x000055555593b917 in funcall_lambda (fun=XIL(0x7ffff0d3646d), nargs=3, arg_vector=0x7fffffffb4d0) at eval.c:2989 #21 0x000055555593acd7 in Ffuncall (nargs=4, args=0x7fffffffb4c8) at eval.c:2796 #22 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0e5363c), vector=XIL(0x7ffff0d34425), maxdepth=make_fixnum(7), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633 #23 0x000055555593be78 in funcall_lambda (fun=XIL(0x7ffff0d343f5), nargs=6, arg_vector=0x7ffff0d34425) at eval.c:3067 #24 0x000055555593b54e in apply_lambda (fun=XIL(0x7ffff0d343f5), args=XIL(0x555556f09713), count=22) at eval.c:2926 #25 0x000055555593974a in eval_sub (form=XIL(0x555556f09723)) at eval.c:2318 #26 0x0000555555933c95 in Fprogn (body=XIL(0)) at eval.c:462 #27 0x000055555593578b in FletX (args=XIL(0x555556f07e13)) at eval.c:918 #28 0x000055555593915e in eval_sub (form=XIL(0x555556f07e03)) at eval.c:2226 #29 0x0000555555933c95 in Fprogn (body=XIL(0)) at eval.c:462 #30 0x000055555593bdd6 in funcall_lambda (fun=XIL(0x555556f07df3), nargs=1, arg_vector=0x0) at eval.c:3060 #31 0x000055555593b54e in apply_lambda (fun=XIL(0x555556f07df3), args=XIL(0x555556569d23), count=15) at eval.c:2926 #32 0x0000555555939966 in eval_sub (form=XIL(0x555556569d33)) at eval.c:2348 #33 0x0000555555933c95 in Fprogn (body=XIL(0)) at eval.c:462 #34 0x000055555593915e in eval_sub (form=XIL(0x555556f07c63)) at eval.c:2226 #35 0x0000555555933a08 in Fif (args=XIL(0x555556f07c43)) at eval.c:417 #36 0x000055555593915e in eval_sub (form=XIL(0x555556f07c33)) at eval.c:2226 #37 0x0000555555933c95 in Fprogn (body=XIL(0)) at eval.c:462 #38 0x000055555593bdd6 in funcall_lambda (fun=XIL(0x555556f07b83), nargs=1, arg_vector=0x0) at eval.c:3060 #39 0x000055555593adea in Ffuncall (nargs=2, args=0x7fffffffc598) at eval.c:2808 #40 0x0000555555939f0c in funcall_nil (nargs=2, args=0x7fffffffc598) at eval.c:2435 #41 0x000055555593a436 in run_hook_with_args (nargs=2, args=0x7fffffffc598, funcall=0x555555939ee9 <funcall_nil>) at eval.c:2612 #42 0x0000555555939f92 in Frun_hook_with_args (nargs=2, args=0x7fffffffc598) at eval.c:2477 #43 0x000055555593b0bd in funcall_subr (subr=0x55555610c3a0 <Srun_hook_with_args>, numargs=2, args=0x7fffffffc598) at eval.c:2847 #44 0x000055555593ac93 in Ffuncall (nargs=3, args=0x7fffffffc590) at eval.c:2794 #45 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0eed114), vector=XIL(0x7ffff0cd42cd), maxdepth=make_fixnum(14), args_template=make_fixnum(256), nargs=0, args=0x7fffffffcb70) at bytecode.c:633 #46 0x000055555593b917 in funcall_lambda (fun=XIL(0x7ffff0cd4295), nargs=0, arg_vector=0x7fffffffcb70) at eval.c:2989 #47 0x000055555593acd7 in Ffuncall (nargs=1, args=0x7fffffffcb68) at eval.c:2796 #48 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0eb318c), vector=XIL(0x7ffff0eb316d), maxdepth=make_fixnum(2), args_template=make_fixnum(0), nargs=0, args=0x7fffffffd270) at bytecode.c:633 #49 0x000055555593b917 in funcall_lambda (fun=XIL(0x7ffff0eb3135), nargs=0, arg_vector=0x7fffffffd270) at eval.c:2989 #50 0x000055555593acd7 in Ffuncall (nargs=1, args=0x7fffffffd268) at eval.c:2796 #51 0x0000555555929561 in Ffuncall_interactively (nargs=1, args=0x7fffffffd268) at callint.c:254 #52 0x000055555593b0bd in funcall_subr (subr=0x55555610bb20 <Sfuncall_interactively>, numargs=1, args=0x7fffffffd268) at eval.c:2847 #53 0x000055555593ac93 in Ffuncall (nargs=2, args=0x7fffffffd260) at eval.c:2794 #54 0x0000555555939a94 in Fapply (nargs=3, args=0x7fffffffd260) at eval.c:2377 #55 0x00005555559299ca in Fcall_interactively (function=XIL(0x2aaa9ad2e940), record_flag=XIL(0), keys=XIL(0x555558725905)) at callint.c:342 #56 0x000055555593b216 in funcall_subr (subr=0x55555610bb60 <Scall_interactively>, numargs=3, args=0x7fffffffd520) at eval.c:2872 #57 0x000055555593ac93 in Ffuncall (nargs=4, args=0x7fffffffd518) at eval.c:2794 #58 0x00005555559b5d21 in exec_byte_code (bytestr=XIL(0x7ffff0daabac), vector=XIL(0x7ffff0daa73d), maxdepth=make_fixnum(13), args_template=make_fixnum(1025), nargs=1, args=0x7fffffffda60) at bytecode.c:633 #59 0x000055555593b917 in funcall_lambda (fun=XIL(0x7ffff0daa70d), nargs=1, arg_vector=0x7fffffffda58) at eval.c:2989 #60 0x000055555593acd7 in Ffuncall (nargs=2, args=0x7fffffffda50) at eval.c:2796 #61 0x000055555593a5c3 in call1 (fn=XIL(0x4170), arg1=XIL(0x2aaa9ad2e940)) at eval.c:2654 #62 0x00005555557cef56 in command_loop_1 () at keyboard.c:1458 #63 0x0000555555936c77 in internal_condition_case (bfun=0x5555557ce71f <command_loop_1>, handlers=XIL(0x90), hfun=0x5555557cdd2e <cmd_error>) at eval.c:1355 #64 0x00005555557ce304 in command_loop_2 (ignore=XIL(0)) at keyboard.c:1091 #65 0x000055555593612b in internal_catch (tag=XIL(0xcea0), func=0x5555557ce2d7 <command_loop_2>, arg=XIL(0)) at eval.c:1116 #66 0x00005555557ce2a2 in command_loop () at keyboard.c:1070 #67 0x00005555557cd815 in recursive_edit_1 () at keyboard.c:714 #68 0x00005555557cda0d in Frecursive_edit () at keyboard.c:786 #69 0x00005555557c3aec in main (argc=1, argv=0x7fffffffdf58) at emacs.c:2055 Lisp Backtrace: "internal-set-lisp-face-attribute" (0xffff9e58) "set-face-attribute" (0xffffa3b8) "apply" (0xffffa5d0) "face-spec-set-2" (0xffffaad0) "face-spec-recalc" (0xffffaff8) "face-spec-set" (0xffffb4d0) "custom-theme-set-faces" (0xffffb9d0) "let*" (0xffffbce0) "ah/setup-gui-frame" (0xffffbe30) "progn" (0xffffc0a0) "if" (0xffffc200) 0x56f07b80 Lisp type 3 "run-hook-with-args" (0xffffc598) "make-frame" (0xffffcb70) "make-frame-command" (0xffffd270) "funcall-interactively" (0xffffd268) "call-interactively" (0xffffd520) "command-execute" (0xffffda58) Please let me know if you need anything else. ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37637: 27.0.50; Segmentation fault when setting font face for new frames 2019-10-07 21:00 ` Andreas Hilboll @ 2019-10-08 9:02 ` Eli Zaretskii 2019-10-08 12:56 ` Andreas Hilboll 0 siblings, 1 reply; 6+ messages in thread From: Eli Zaretskii @ 2019-10-08 9:02 UTC (permalink / raw) To: Andreas Hilboll; +Cc: 37637 > From: Andreas Hilboll <andreas.hilboll@posteo.de> > Date: Mon, 07 Oct 2019 23:00:38 +0200 > > > Please run Emacs under a debugger and show the C-level and > > Lisp-level > > backtraces from the crash. > > Sure thing, here we go: > > (gdb) bt > #0 0x00005555557c133d in terminate_due_to_signal (sig=6, > backtrace_limit=2147483647) at emacs.c:371 > #1 0x00005555558de4c1 in die (msg=0x555555b781f0 "UNSIGNED_CMP > (DEFAULT_FACE_ID, <, FRAME_FACE_CACHE (f)->used)", > file=0x555555b7679d "font.c", line=3317) at alloc.c:7245 > #2 0x000055555596f31d in font_open_for_lface (f=0x555556a28e50, > entity=XIL(0x5555592ec375), attrs=0x5555578f9618, > spec=XIL(0x555559345925)) at font.c:3317 Thanks, please see if the patch below gives good results. diff --git a/src/font.c b/src/font.c index 935dd64..044c437 100644 --- a/src/font.c +++ b/src/font.c @@ -3314,6 +3314,9 @@ font_open_for_lface (struct frame *f, Lisp_Object entity, Lisp_Object *attrs, Li pt = XFIXNUM (attrs[LFACE_HEIGHT_INDEX]); else { + /* We need the default face to be valid below. */ + if (FRAME_FACE_CACHE (f)->used == 0) + recompute_basic_faces (f); struct face *def = FACE_FROM_ID (f, DEFAULT_FACE_ID); Lisp_Object height = def->lface[LFACE_HEIGHT_INDEX]; eassert (FIXNUMP (height)); ^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#37637: 27.0.50; Segmentation fault when setting font face for new frames 2019-10-08 9:02 ` Eli Zaretskii @ 2019-10-08 12:56 ` Andreas Hilboll 2019-10-08 13:15 ` Eli Zaretskii 0 siblings, 1 reply; 6+ messages in thread From: Andreas Hilboll @ 2019-10-08 12:56 UTC (permalink / raw) To: 37637 > Thanks, please see if the patch below gives good results. > > diff --git a/src/font.c b/src/font.c > index 935dd64..044c437 100644 > --- a/src/font.c > +++ b/src/font.c > @@ -3314,6 +3314,9 @@ font_open_for_lface (struct frame *f, > Lisp_Object entity, Lisp_Object *attrs, Li > pt = XFIXNUM (attrs[LFACE_HEIGHT_INDEX]); > else > { > + /* We need the default face to be valid below. */ > + if (FRAME_FACE_CACHE (f)->used == 0) > + recompute_basic_faces (f); > struct face *def = FACE_FROM_ID (f, DEFAULT_FACE_ID); > Lisp_Object height = def->lface[LFACE_HEIGHT_INDEX]; > eassert (FIXNUMP (height)); Great, this seems to fix it. Works without problems now (after opening ~10 new frames without any crash I stopped ...). Thanks for the quick help! ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37637: 27.0.50; Segmentation fault when setting font face for new frames 2019-10-08 12:56 ` Andreas Hilboll @ 2019-10-08 13:15 ` Eli Zaretskii 0 siblings, 0 replies; 6+ messages in thread From: Eli Zaretskii @ 2019-10-08 13:15 UTC (permalink / raw) To: Andreas Hilboll; +Cc: 37637-done > Date: Tue, 08 Oct 2019 14:56:58 +0200 > From: Andreas Hilboll <andreas.hilboll@posteo.de> > > > diff --git a/src/font.c b/src/font.c > > index 935dd64..044c437 100644 > > --- a/src/font.c > > +++ b/src/font.c > > @@ -3314,6 +3314,9 @@ font_open_for_lface (struct frame *f, > > Lisp_Object entity, Lisp_Object *attrs, Li > > pt = XFIXNUM (attrs[LFACE_HEIGHT_INDEX]); > > else > > { > > + /* We need the default face to be valid below. */ > > + if (FRAME_FACE_CACHE (f)->used == 0) > > + recompute_basic_faces (f); > > struct face *def = FACE_FROM_ID (f, DEFAULT_FACE_ID); > > Lisp_Object height = def->lface[LFACE_HEIGHT_INDEX]; > > eassert (FIXNUMP (height)); > > Great, this seems to fix it. Works without problems now (after opening > ~10 new frames without any crash I stopped ...). Thanks, pushed to the master branch, and closing the bug report. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-10-08 13:15 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-10-06 15:32 bug#37637: 27.0.50; Segmentation fault when setting font face for new frames Andreas Hilboll 2019-10-06 18:11 ` Eli Zaretskii 2019-10-07 21:00 ` Andreas Hilboll 2019-10-08 9:02 ` Eli Zaretskii 2019-10-08 12:56 ` Andreas Hilboll 2019-10-08 13:15 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).