all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Schierl <schierlm-usenet@gmx.de>
Subject: Emacs crashes when killing region with overlays in it
Date: Mon, 16 May 2005 12:58:41 +0200	[thread overview]
Message-ID: <u64xj8mji.fsf@smsoft.ixy.de> (raw)

[repost since the first one apparently did not get through]

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i386-msvc-nt5.0.2195)
 of 2003-03-28 on buffy
configured using `configure --with-msvc (12.00)'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: DEU
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Run an emacs - at least the emacs 21.3 on Windows (from where I send
the bug report) and the emacs 21.4 on Debian Sarge and the Unstable
Emacs on nqmacs.sf.net are affected - with emacs -q.

Then load a file containing

(let (ovl)
  (with-temp-buffer
    (insert "-\n<a\n-\n<b\n-\n<c\n-\n<d\n-")
    (mapc (lambda (pos)
	    (setq ovl (make-overlay pos (1+ pos)))
	    (overlay-put ovl 'after-string ">"))
	  '(4 9 14 19))
    (switch-to-buffer (current-buffer))
    (sit-for 0)
    (kill-region 3 21)
    (sit-for 0)
))
 
and execute it with C-x C-e. On Windows you will get the usual
"program will be terminated" dialog, on Linux a "Segmentation fault"
is printed to the console.

This is some weird bug - I tried to make the sequence to reproduce it
more minimal, especially to remove the sit-for calls or reduce the
number of overlays, but I did not succeed. For some strange reason,
this bug sometimes (very rarely, it happened once to me) cannot be
reproduced when you already worked a lot in your Emacs, but when
starting up a fresh one, reproducing it works again.

When setting 'evaporate to t for all overlays, Emacs does no longer
crash.

Michael

             reply	other threads:[~2005-05-16 10:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-16 10:58 Michael Schierl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-14 21:41 Emacs crashes when killing region with overlays in it Michael Schierl

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=u64xj8mji.fsf@smsoft.ixy.de \
    --to=schierlm-usenet@gmx.de \
    --cc=schierlm@gmx.de \
    /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.