GNU bug report logs - #2147
Crash when adding (font . nil) to `default-frame-alist'

Previous Next

Package: emacs;

Reported by: Herbert Euler <herberteuler <at> hotmail.com>

Date: Mon, 2 Feb 2009 03:15:03 UTC

Severity: normal

Found in version 23.0.90.1

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Subject: bug#2147: marked as done (Default font in Emacs)
Date: Mon, 02 Feb 2009 06:05:07 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 1 Feb 2009 21:57:19 -0800 (PST)
with message-id <200902020557.n125vJFY007048 <at> rodan.ics.uci.edu>
and subject line Re: bug#2147: Default font in Emacs
has caused the Emacs bug report #2147,
regarding Default font in Emacs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)


-- 
2147: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2147
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Herbert Euler <herberteuler <at> hotmail.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: Default font in Emacs
Date: Mon, 2 Feb 2009 11:06:35 +0800
Package: Emacs
Version: 23.0.90.1
 
Because I prefer the FreeMono font to the default font provided, I
tweak it in my ~/.emacs like this:
 
  (let ((font (cond ((eq window-system 'w32)
                      "-outline-courier new-normal-r-normal-normal-16-120-96-96-c-*-fontset-auto2"
                     )
                     ((eq window-system 'x)
                      "FreeMono-13"
                     ))))
    (set-default-font font)
    (add-to-list 'default-frame-alist `(font . ,font)))
 
When I start emacs as a daemon:
 
  $ emacs --daemon
 
The cons cell added to `default-frame-alist' seems to be '(font
. nil). This causes a segfault when running `emacsclient -c':
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 0xb700f700 (LWP 28215)]
  0x0806f438 in estimate_mode_line_height (f=0xa832b38, face_id=MODE_LINE_INACTIVE_FACE_ID) at xdisp.c:1646
  1646 int height = FONT_HEIGHT (FRAME_FONT (f));
  (gdb) p FRAME_FONT (f)
  $1 = (struct font *) 0x0
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/photos.aspx


[Message part 3 (message/rfc822, inline)]
From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Herbert Euler <herberteuler <at> hotmail.com>
Cc: 2147-done <at> debbugs.gnu.org
Subject: Re: bug#2147: Default font in Emacs
Date: Sun, 1 Feb 2009 21:57:19 -0800 (PST)
Herbert Euler <herberteuler <at> hotmail.com> writes:

  > Package: Emacs
  > Version: 23.0.90.1
  >  
  > Because I prefer the FreeMono font to the default font provided, I
  > tweak it in my ~/.emacs like this:
  >  
  >   (let ((font (cond ((eq window-system 'w32)
  >                       "-outline-courier new-normal-r-normal-normal-16-120-96-96-c-*-fontset-auto2"
  >                      )
  >                      ((eq window-system 'x)
  >                       "FreeMono-13"
  >                      ))))
  >     (set-default-font font)
  >     (add-to-list 'default-frame-alist `(font . ,font)))
  >  
  > When I start emacs as a daemon:
  >  
  >   $ emacs --daemon
  >  
  > The cons cell added to `default-frame-alist' seems to be '(font
  > . nil). 

The bug is in your .emacs

C-h v window-system RET

Documentation:
Name of window system through which the selected frame is displayed.
The value is a symbol--for instance, `x' for X windows.
The value is nil if the selected frame is on a text-only-terminal.

When "emacs --daemon" starts there's no X frame.


This bug report was last modified 16 years and 192 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.