all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Werner LEMBERG <wl@gnu.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>, emacs-devel@gnu.org
Subject: Re: intervals.c:1190: Emacs fatal error: assertion failed: amt == 0
Date: Sun, 05 Apr 2020 16:07:01 +0300	[thread overview]
Message-ID: <83blo6t72i.fsf@gnu.org> (raw)
In-Reply-To: <20200405.074229.355980267956598184.wl@gnu.org> (message from Werner LEMBERG on Sun, 05 Apr 2020 07:42:29 +0200 (CEST))

> Date: Sun, 05 Apr 2020 07:42:29 +0200 (CEST)
> Cc: emacs-devel@gnu.org
> From: Werner LEMBERG <wl@gnu.org>
> 
> 1. Save your '~/Mail' order in case you have one, then do
> 
>      mkdir Mail
>      cd Mail
>      mkdir inbox
> 
>    in your home directory.  Uncompress and copy the attached file
>    '633.gz' into the just created 'inbox' directory.
> 
> 2. Install mew.  I do this directly from the git repository.
> 
>      git clone git://github.com/kazu-yamamoto/Mew.git
>      cd Mew
>      ./configure
>      make
>      make install
> 
>    Let's assume this gets installed into the default location
> 
>      /usr/local/share/emacs/site-lisp/mew
> 
> 3. Start emacs in 'src' directory with
> 
>      gdb --args ./emacs -Q
> 
> 4. In the '*scratch*' buffer, evaluate
> 
>      (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mew")
> 
> 5. Execute
> 
>      load-library mew
>      mew
> 
> And voilà.

Thanks.  An 8-year old mystery that was left unsolved strikes back.

Does the patch below fix the problem for you?  It fixes the assertion
violation on my system, but the message comes out with some raw bytes,
and its coding-system is set to ctext, which sounds wrong (should be
UTF-8, I think).  Is this normal or expected for this particular
message?

Regarding the patch: a very similar issue was discussed here:

  https://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00399.html

It started happening when the assertion was changed to reject negative
values.  At that time, Andreas (CC'ed) suggested a change that would
allow us to keep the amt == 0 assertion; maybe he will have a solution
along those lines in this case as well.  If not, I will install the
below on the emacs-27 branch some time soon.

Here's the patch:

diff --git a/src/intervals.c b/src/intervals.c
index a66594c..585ef18 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -1187,7 +1187,7 @@ delete_interval (register INTERVAL i)
   register INTERVAL parent;
   ptrdiff_t amt = LENGTH (i);
 
-  eassert (amt == 0);		/* Only used on zero-length intervals now.  */
+  eassert (amt <= 0);	/* Only used on zero total-length intervals now.  */
 
   if (ROOT_INTERVAL_P (i))
     {




  reply	other threads:[~2020-04-05 13:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-03 11:02 intervals.c:1190: Emacs fatal error: assertion failed: amt == 0 Werner LEMBERG
2020-04-03 12:41 ` Eli Zaretskii
2020-04-03 13:27   ` Werner LEMBERG
2020-04-04  9:57     ` Eli Zaretskii
2020-04-04 10:16       ` Werner LEMBERG
2020-04-04 11:23         ` Eli Zaretskii
2020-04-04 20:56       ` Werner LEMBERG
2020-04-05  2:30         ` Eli Zaretskii
2020-04-05  5:42           ` Werner LEMBERG
2020-04-05 13:07             ` Eli Zaretskii [this message]
2020-04-06  6:36               ` Werner LEMBERG
2020-04-06 13:24                 ` Eli Zaretskii
2020-04-09  8:24                   ` 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=83blo6t72i.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@linux-m68k.org \
    --cc=wl@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.