unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: multi-tty@lists.fnord.hu, emacs-devel@gnu.org
Subject: Re: Face alias bugs (Re: abort() in keyboard.c)
Date: Tue, 19 Apr 2005 10:36:52 +0200	[thread overview]
Message-ID: <m3sm1nupqz.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <lorentey.l.multi-tty.87y8bnw7l9.elte@walrus.fnord.hu> (Károly Lőrentey's message of "Wed, 13 Apr 2005 07:48:02 +0200")

lorentey@elte.hu (Károly Lőrentey) writes:

> I have received a backtrace for an aborted multi-tty session from Ami
> Fischman that is relevant to the trunk as well.

Thanks for the report and analysis.

I have installed a different change for this problem which uses a
new safe-get function for the face lookup.  I also added a check
for alias loops.

>
> The abort was caused by Emacs entering the debugger during redisplay
> because of a property list on a face symbol that was not a well-formed
> Lisp list (see frames #23-26 in the backtrace at the bottom).
>
> Beside the (rare) crash condition, there are other symptoms that are
> easier to reproduce.  For example (in a recent CVS):
>
> 	emacs -q
> 	(setplist 'default (append (symbol-plist 'default) (cons 'foo 'bar)))
> 	C-h i
>         <Redisplay loops>
>
> Recursive aliases are fun as well:
>
>         emacs -q
> 	(put 'foo 'face-alias 'default) 
>         (put 'default 'face-alias 'foo)
>         C-h i
>         <unquitable loop>
>
> The patch below fixes all these problems by protecting the call to
> Fget inside resolve_face_name and limiting the number of indirections
> during a single face lookup.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

      reply	other threads:[~2005-04-19  8:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87u0myhffz.fsf@fischman.org>
     [not found] ` <87vf7deeme.fsf@fischman.org>
     [not found]   ` <lorentey.l.multi-tty.87wtrsxvey.elte@walrus.fnord.hu>
     [not found]     ` <87hdivjic5.fsf@fischman.org>
     [not found]       ` <87fyy1d9jx.fsf_-_@fischman.org>
     [not found]         ` <lorentey.l.multi-tty.87ekdli7ml.elte@walrus.fnord.hu>
2005-04-13  5:48           ` Face alias bugs (Re: abort() in keyboard.c) Károly Lőrentey
2005-04-19  8:36             ` Kim F. Storm [this message]

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=m3sm1nupqz.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=multi-tty@lists.fnord.hu \
    /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).