From: "Chris Hall" <chris@web.workinglinux.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Emacs bugs <bug-gnu-emacs@gnu.org>, Dan Nicolaescu <dann@ics.uci.edu>
Subject: Re: 23.0.60; Seg fault in xfaces.c at line 6703 (Emacs.app on GNUstep)
Date: Tue, 05 Feb 2008 01:07:49 -1000 [thread overview]
Message-ID: <c55ba23b43d529c56816e17b8423b4b5@lagorda> (raw)
In-Reply-To: <wlabmhi337.wl%mituharu@math.s.chiba-u.ac.jp>
On 2008-02-03 21:38:04 -1000 YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp> wrote:
>
> I don't think so. As I said in *1 above, I could reproduce the
> null-face_cache problem in Emacs 23.0.50, which is the version before
> the unicode merge.
>
I may have found what is causing the problem, but I have no idea what
the fix might be.
I use Emacs.app rc1, which is based on Emacs 23.0.0, so I have to
code, and I rebuilt using the same CFLAGS I used for Emacs.app rc3,
then spent some time running them side-by-side under GDB (using
Terminal.app, of course! ;)
It seems that between Emacs 23.0.0 (on which Emacs.app rc1 is based)
and Emacs 23.0.60 (Emacs.app rc3), initialization function
'make_terminal_frame' got split into two functions:
'make_initial_frame' and 'make_terminal_frame'.
Both versions of 'make_terminal_frame' end with a possible call to
'init_frame_faces', which fills in the face_struct for the initial
terminal's frame. But in Emacs 23.0.60, 'make_terminal_frame' isn't
called -- only 'make_initial_frame' is -- by 'init_window_once' prior
to entering 'recursive_edit'.
Then after Emacs enters 'recursive_edit', 'loadup.el' loads
'cus-faces.el', which contains 'custom-declare-faces', which calls
'face-spec-set', which calls 'face-spec-choose', which calls
'face-spec-set-match-display' which calls
'display-supports-face-attributes-p' which in turn tries to access a
member of the 'face_cache' struct.
I could very easily be mistaken, but on CANNOT_DUMP platforms it looks
like these forms might actually be evaluated while loading, and thus
the seg fault, since 'make_terminal_frame' and thus 'init_frame_faces'
haven't yet been called so 'face_cache' isn't initialized when
'display-supports-face-attributes-p' is evaluated.
HTH,
Chris Hall
next prev parent reply other threads:[~2008-02-05 11:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-02 3:51 23.0.60; Seg fault in xfaces.c at line 6703 (Emacs.app on GNUstep) Chris
2008-02-02 20:13 ` Dan Nicolaescu
2008-02-03 7:20 ` Chris Hall
2008-02-03 17:19 ` Dan Nicolaescu
2008-02-04 1:39 ` YAMAMOTO Mitsuharu
2008-02-04 7:28 ` Chris Hall
2008-02-04 7:38 ` YAMAMOTO Mitsuharu
2008-02-04 9:55 ` Chris Hall
2008-02-04 10:15 ` William Xu
2008-02-04 10:57 ` YAMAMOTO Mitsuharu
2008-02-04 11:35 ` William Xu
2008-02-05 11:07 ` Chris Hall [this message]
2008-02-06 1:34 ` YAMAMOTO Mitsuharu
2008-02-06 9:53 ` Chris Hall
2008-02-05 13:30 ` Chris Hall
2008-02-03 20:52 ` Jason Rumney
2008-02-04 3:20 ` Chris Hall
2008-02-04 4:40 ` William Xu
2008-02-04 8:47 ` Jason Rumney
2008-02-04 10:32 ` Chris Hall
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c55ba23b43d529c56816e17b8423b4b5@lagorda \
--to=chris@web.workinglinux.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=dann@ics.uci.edu \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.