all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Hall <cjh@insidernewswire.com>
To: Jason Rumney <jasonr@gnu.org>
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: Sun, 03 Feb 2008 17:20:25 -1000	[thread overview]
Message-ID: <5c3f50e8df2b05f7f2e7b1843d425e14@lagorda> (raw)
In-Reply-To: <47A6299E.70208@gnu.org>

On 2008-02-03 10:52:46 -1000 Jason Rumney <jasonr@gnu.org> wrote:

> Chris Hall wrote:
>> I think there are 2 issues here: the presence of the value '0x0' in 
>> a field 
>> meant to contain a pointer to a face_cache struct, and what the 
>> presence of 
>> that value causes to happen.
>> 
>> To me it seems that while almost certainly the former is an 
>> Emacs.app 
>> issue, the latter is more likely an Emacs 23.0.60 issue.  I don't 
>> know for 
>> sure, since I'm not an Emacs or Emacs.app hacker.
>> 
>> I am aware that sometimes some classes of errors are perhaps best 
>> allowed 
>> to happen and to result in catastrophic failures like segmentation 
>> faults, 
>> but in this case, were this one of my programs I'd probably consider 
>> it a 
>> bug.
> 
> If it is a bug to have 0 in that field, why would you hide the bug by 
> avoiding a crash when it is 0?
> 

So it could terminate gracefully while reporting that it had a 0 in 
that field, along with any other available information that might 
prove useful in helping to solve the problem?  Maybe offer to run in 
text mode with that information made available in a buffer with a bug 
report?

I didn't mention anything about 'hiding' it, did I?

With the patch I supplied, at least the user knows there is an issue 
with realizing the default face, rather than SIGSEGV (11).

But of course, and as always, YMMV.

Obviously, the possibility of the default face not being realized was 
anticipated by somebody, and considered serious enough to terminate 
execution -- there was already in place a check for exactly that, and 
the possibility of issuing a message and then deliberately 'erroring 
out' of the program if it hadn't been realized.

>> but in this case,

For whatever reason, there is instead no properly initialized 
'face_cache' struct available, if I am interpreting the '0x0' 
correctly.

AFAIK, the '0x0' is the result of an *un*anticipated case leading to 
the same check.  I don't know, and probably never will, because as I 
mentioned, I am unaware of the larger program execution context, and I 
am time-constrained with respect to learning sufficiently the Emacs 
internals required to make that determination.


Cheers!

Chris Hall







  reply	other threads:[~2008-02-04  3:20 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
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 [this message]
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=5c3f50e8df2b05f7f2e7b1843d425e14@lagorda \
    --to=cjh@insidernewswire.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=dann@ics.uci.edu \
    --cc=jasonr@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 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.