GNU bug report logs - #58144
29.0.50; [noverlay] Abort when committing in Magit

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Wed, 28 Sep 2022 14:30:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58144 in the body.
You can then email your comments to 58144 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58144; Package emacs. (Wed, 28 Sep 2022 14:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gerd Möllmann <gerd.moellmann <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 28 Sep 2022 14:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; [noverlay] Abort when committing in Magit
Date: Wed, 28 Sep 2022 16:29:39 +0200
An attempt to commit changes in Magit led to an abort in
interval_tree_iter_start 

frame #9: 0x00000001002e2900 emacs`interval_tree_iter_start(tree=0x0000600003034870, begin=5464, end=2730898, order=ITREE_ASCENDING, file="buffer.c", line=2937) at itree.c:441:5
   438 				  const char* file, int line)
   439 	{
   440 	  if (tree->iter_running)
-> 441 	    emacs_abort ();
   442 	  interval_generator_reset (tree->iter, begin, end, order);
   443 	  tree->iter_running = 1;
   444 	  tree->file = file;

Because this wasn't debuggable, I've changed the code to record where an
iteration starts, which is, in this case, 


static bool
strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w)
{
  struct interval_node *node;
  /* Process overlays before the overlay center.  */
  buffer_overlay_iter_start (current_buffer,
                             startpos, endpos, ITREE_DESCENDING);


I'll fix that, and also put the location recording in, to make debugging
such cases easier.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58144; Package emacs. (Wed, 28 Sep 2022 14:44:02 GMT) Full text and rfc822 format available.

Message #8 received at 58144 <at> debbugs.gnu.org (full text, mbox):

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: 58144 <at> debbugs.gnu.org
Subject: Re: bug#58144: 29.0.50; [noverlay] Abort when committing in Magit
Date: Wed, 28 Sep 2022 16:43:41 +0200
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:

> I'll fix that, and also put the location recording in, to make debugging
> such cases easier.

Fix on branch noverlay.  The debugging support is a separate commit for
easier removal, if necessary.

Closing.




bug marked as fixed in version 29.1, send any further explanations to 58144 <at> debbugs.gnu.org and Gerd Möllmann <gerd.moellmann <at> gmail.com> Request was from Gerd Möllmann <gerd.moellmann <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 28 Sep 2022 14:45:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 27 Oct 2022 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.