From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: 64-bit emacs crashes a lot
Date: Fri, 16 Aug 2013 07:37:53 -0400 [thread overview]
Message-ID: <520E0F11.6050306@cs.utoronto.ca> (raw)
In-Reply-To: <8361v6nhdb.fsf@gnu.org>
On 16/08/2013 4:56 AM, Eli Zaretskii wrote:
> I'm not subscribed to this list, so if you want me to reply, please CC
> me explicitly. Besides, this discussion should be moved to
> emacs-devel@gnu.org, since I don't see anything Cygwin specific here
> at this point.
>
>> Date: Thu, 15 Aug 2013 16:55:18 -0400
>> From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
>>
>> On 15/08/2013 1:10 PM, Eli Zaretskii wrote:
>>>> Date: Thu, 15 Aug 2013 12:58:02 -0400
>>>> From: Ken Brown <kbrown@cornell.edu>
>>>> CC: Eli Zaretskii <eliz@gnu.org>
>>>>
>>>> Eli is the expert on bidi.c (he wrote it). He can probably tell you
>>>> whether you've really bumped into an emacs bug here.
>>> There's nothing wrong with bidi.c here, it just aborts because it is
>>> handed an invalid character codepoint. It would have been useful to
>>> see the value of that character.
>> I guess I would just consider crashing to be overkill for a bad byte on
>> the input stream...
> It's not a crash, it's a deliberate abort. Any invalid codepoint at
> such low level of the Emacs display engine means only one thing: a
> bug, and a grave one at that. Such bugs must be flagged prominently
> and unequivocally, prompting users to report them. We could in
> principle "recover" by substituting some other character, but such
> recovery would only sweep a grave problem under the carpet. Since
> Emacs isn't a safety-critical program, and auto-saves your edits
> before it commits suicide, such recovery feature is deemed
> inappropriate, and detrimental to the general quality of Emacs code in
> the long run.
OK, makes sense.
>> and in any case, if 5-byte UTF-8 is illegal, and
>> worth dying for, wouldn't it make sense to die right away rather than
>> processing it so something else can croak down the road?
> See above: yes, it's worth dying for, because I'm quite sure this is a
> sign of a very serious trouble in the session anyway. Why does it
> matter for you, as a user, whether we abort here or "down the road"?
> The principle is to die as soon as possible, because in many cases
> this allows to identify the culprit faster and easier. IOW, dying
> sooner and faster helps the Emacs maintainers to find and fix problems
> without any real effect on the users.
Re die as soon as possible: We're in violent agreement: I argued
that---if 5-byte UTF-8 is illegal---emacs should abort at the decoding
stage (= earlier) rather than at some later point when it discovers the
too-large value. In any case, though, I can't repro on a debug build so
this whole thing may be moot.
Ryan
next parent reply other threads:[~2013-08-16 11:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <51F3151D.7040000@cs.utoronto.ca>
[not found] ` <51F33565.1090406@cornell.edu>
[not found] ` <51F33F52.4060405@cs.utoronto.ca>
[not found] ` <51FB1D9E.5090102@cs.utoronto.ca>
[not found] ` <20130802080211.GA18054@calimero.vinschen.de>
[not found] ` <51FB9228.2020309@cornell.edu>
[not found] ` <51FBA100.90005@cs.utoronto.ca>
[not found] ` <51FD5462.5020400@cs.utoronto.ca>
[not found] ` <51FFBDFF.7040501@cornell.edu>
[not found] ` <51FFC4F2.8080909@cs.utoronto.ca>
[not found] ` <5203D89E.6030801@cornell.edu>
[not found] ` <5203DCCA.1010105@cs.utoronto.ca>
[not found] ` <5205B364.8090007@cs.utoronto.ca>
[not found] ` <52064730.50404@cornell.edu>
[not found] ` <"52065B3C.6060104@cs.utoronto <520CCA41.3000107"@cs.utoronto.ca>
[not found] ` <520D089A.1020806@cornell.edu>
[not found] ` <83ioz6op5v.fsf@gnu.org>
[not found] ` <520D4036.8010303@cs.utoronto.ca>
[not found] ` <8361v6nhdb.fsf@gnu.org>
2013-08-16 11:37 ` Ryan Johnson [this message]
2013-08-16 13:10 ` 64-bit emacs crashes a lot Eli Zaretskii
[not found] ` <520D900A.8000907@cornell.edu>
[not found] ` <520DABDC.8020304@cs.utoronto.ca>
[not found] ` <520DBFCD.4080808@cs.utoronto.ca>
[not found] ` <8338qangma.fsf@gnu.org>
2013-08-16 11:39 ` Ryan Johnson
[not found] ` <834naqnh9t.fsf@gnu.org>
2013-08-16 11:41 ` Ryan Johnson
2013-08-16 13:31 ` Eli Zaretskii
2013-08-16 14:16 ` Ryan Johnson
2013-08-16 14:49 ` Eli Zaretskii
2013-08-16 14:20 ` Ken Brown
2013-08-16 14:24 ` Ryan Johnson
2013-08-16 15:03 ` Eli Zaretskii
2013-08-16 15:45 ` Eli Zaretskii
2013-08-16 16:51 ` Ryan Johnson
[not found] ` <520E5D71.3020307@cornell.edu>
2013-08-16 17:24 ` Ryan Johnson
2013-08-16 18:55 ` Ken Brown
2013-08-16 19:37 ` Eli Zaretskii
2013-08-16 20:17 ` Eli Zaretskii
2013-08-16 20:33 ` Ken Brown
2013-08-16 21:20 ` Ryan Johnson
2013-08-17 7:01 ` Eli Zaretskii
2013-08-17 12:17 ` Ken Brown
2013-08-16 17:46 ` Ken Brown
2013-08-17 19:43 Angelo Graziosi
2013-08-17 20:16 ` Ken Brown
2013-08-17 22:23 ` Angelo Graziosi
2013-08-18 17:43 ` Ken Brown
2013-08-18 19:10 ` Angelo Graziosi
2013-08-18 19:14 ` Eli Zaretskii
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=520E0F11.6050306@cs.utoronto.ca \
--to=ryan.johnson@cs.utoronto.ca \
--cc=eliz@gnu.org \
--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 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.