From: Yuan MEI <yuan.mei.list@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Font related crash?
Date: Wed, 4 Nov 2015 14:32:19 -0800 [thread overview]
Message-ID: <CANGGyWZfbs02CJAfxA+m5_XC3kH1izeYM-HPUGJ_bu8_JWCqcQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 7563 bytes --]
Hello,
I compiled an emacs version 25.0.50.1 from git repo recently (see the
end of this email for detailed revision info. Compilation was done through
the Gentoo portage) and discovered a font related crash under certain
circumstances.
The symptom is: after starting an emacs frame (and a server) under
DISPLAY=:0, in a different DISPLAY environment, either in :0.1 (local) or
:10.0 (via ssh), when I run emacsclient -c to start a new frame, emacs
crashes due to a floating point exception.
The crash does not occur when running emacs -Q. A minimal init.el is
attached to regenerate the crash.
This kind of crash did not occur in version 24 or an earlier version of 25
(I cannot remember when and I don't have the time to trace back).
Help needed!
Thanks,
Yuan
--------------------------------------------------------------------------------------------
(create-fontset-from-fontset-spec
"-*-Bitstream Vera Sans Mono-*-*-*-*-14-*-*-*-*-*-fontset-xwin")
(dolist (charset '(han cjk-misc bopomofo gb18030))
(set-fontset-font "fontset-xwin"
charset
(font-spec :family "Microsoft YaHei" :size 14)))
(dolist (charset '(symbol arabic bengali devanagari gujarati hebrew kannada
lao
malayalam oriya tamil telugu thai tibetan))
(set-fontset-font "fontset-xwin"
charset
(font-spec :family "Arial Unicode MS") nil 'append))
;; This makes scaling right: c-x c-[+-0]
(defadvice frame-notice-user-settings (before my:rescale-alist)
(message "set face-font-rescale-alist")
(setq face-font-rescale-alist '((".*[Hh]ei.*" . 1.2)
(".*雅黑*" . 1.2)
(".*Myungjo.*" . 1.2)
(".*Osaka.*" . 1.2))))
(ad-activate 'frame-notice-user-settings)
(setq initial-frame-alist '((top . 2) (left . 2)
(width . 100) (height . 63)
(menu-bar-lines . 1)
(tool-bar-lines . 0)))
(setq default-frame-alist '((foreground-color . "white")
(background-color . "black")
(cursor-color . "red")
(menu-bar-lines . 1)
(tool-bar-lines . 0)
(width . 100)
(height . 63)
(font . "fontset-xwin")))
(server-start)
--------------------------------------------------------------------------------------------
$ emacs
Fatal error 8: Floating point exception
Backtrace:
emacs[0x4f88b9]
emacs[0x4dfd2c]
emacs[0x4f75be]
emacs[0x4f7773]
emacs[0x4f7819]
/lib64/libpthread.so.0(+0x10680)[0x7ffa66960680]
emacs[0x413b18]
emacs[0x414b3f]
emacs[0x41ae45]
emacs[0x41f4c6]
emacs[0x4cdb8c]
emacs[0x5523a3]
emacs[0x587106]
emacs[0x551df2]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x5531e3]
emacs[0x5522a9]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x587106]
emacs[0x5521b3]
emacs[0x553078]
emacs[0x55325c]
emacs[0x550adb]
emacs[0x58afde]
emacs[0x58f82f]
emacs[0x41cc72]
emacs[0x4eb941]
emacs[0x4ec52a]
emacs[0x4ee0be]
emacs[0x5509c7]
emacs[0x4e031c]
emacs[0x5508bb]
...
Floating point exception
$
In GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, cairo version 1.14.2)
of 2015-10-31
Repository revision: b692d6aa4309360e5009e42a0cb1ba477775e333
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description: NAME=Gentoo
Configured using:
'configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --disable-dependency-tracking
--disable-silent-rules --libdir=/usr/lib64
--program-suffix=-emacs-25-vcs --infodir=/usr/share/info/emacs-25-vcs
--localstatedir=/var
--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
--with-gameuser=:gamestat --without-compress-install
--with-file-notification=inotify --enable-acl --with-dbus --with-gnutls
--with-gpm --with-hesiod --with-kerberos --with-kerberos5 --with-xml2
--without-selinux --without-wide-int --with-zlib --with-sound=alsa
--with-x --without-ns --without-gconf --without-gsettings
--without-toolkit-scroll-bars --with-gif --with-jpeg --with-png
--with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft
--with-cairo --without-libotf --without-m17n-flt --with-x-toolkit=no
GENTOO_PACKAGE=app-editors/emacs-vcs-25.0.9999-r1 EGIT_BRANCH=master
EGIT_VERSION=b692d6aa4309360e5009e42a0cb1ba477775e333 'CFLAGS=-O2
-march=native -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''
Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL
GNUTLS LIBXML2 FREETYPE XFT ZLIB X11
Important settings:
value of $LC_CTYPE: zh_CN.UTF-8
value of $LANG: en_US.iso88591
value of $XMODIFIERS: @im=fcitx
locale-coding-system: utf-8-unix
Major mode: Emacs-Lisp
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-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
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
Loading dictionary-init...done
For information about GNU Emacs and the GNU system, type C-h C-a.
set face-font-rescale-alist
Mark set
Mark deactivated
Making completion list...
Quit
Load-path shadows:
/usr/share/emacs/site-lisp/cjk-latex/thai-word hides
/usr/share/emacs/25.0.50/lisp/language/thai-word
Features:
(shadow sort gnus-util mail-extr emacsbug message idna dired format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr
mail-utils server advice site-gentoo preview-latex bbdb-autoloads bbdb
timezone tex-site auto-loads time-date mule-util china-util tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help
simple abbrev 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
dbusbind inotify dynamic-setting font-render-setting cairo x multi-tty
make-network-process emacs)
Memory information:
((conses 16 87549 3351)
(symbols 48 19982 0)
(miscs 40 160 122)
(strings 32 15293 4423)
(string-bytes 1 464894)
(vectors 16 13206)
(vector-slots 8 552121 35334)
(floats 8 140 123)
(intervals 56 442 0)
(buffers 976 15)
(heap 1024 28358 931))
[-- Attachment #2: Type: text/html, Size: 8879 bytes --]
next reply other threads:[~2015-11-04 22:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 22:32 Yuan MEI [this message]
2015-11-05 3:37 ` Font related crash? Eli Zaretskii
2015-11-05 6:55 ` Yuan MEI
2015-11-05 7:55 ` martin rudalics
2015-11-05 8:45 ` Yuan MEI
2015-11-05 16:26 ` Eli Zaretskii
2015-11-05 18:16 ` martin rudalics
2015-11-05 18:42 ` Eli Zaretskii
2015-11-06 10:31 ` Yuan MEI
2015-11-06 10:50 ` Eli Zaretskii
2015-11-06 11:26 ` martin rudalics
2015-11-06 11:25 ` martin rudalics
2015-11-07 5:52 ` Yuan MEI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANGGyWZfbs02CJAfxA+m5_XC3kH1izeYM-HPUGJ_bu8_JWCqcQ@mail.gmail.com \
--to=yuan.mei.list@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).