From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: 58113@debbugs.gnu.org
Subject: bug#58113: 29.0.50; [noverlay] Segmentation fault while building on macOS
Date: Tue, 27 Sep 2022 19:48:57 +0300 [thread overview]
Message-ID: <83v8p8iwzq.fsf@gnu.org> (raw)
In-Reply-To: <m2v8p9xa0z.fsf@Mini.fritz.box> (message from Gerd Möllmann on Tue, 27 Sep 2022 14:43:40 +0200)
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Date: Tue, 27 Sep 2022 14:43:40 +0200
>
> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>
> With --enable-checking:
>
> itree.c:389: Emacs fatal error: assertion failed: tree->size == 0 || (tree->size > 0 && tree->root != &tree->null)
> /bin/sh: line 1: 2779 Abort trap: 6 '../src/emacs' -batch --no-site-file --no-site-lisp --eval "(setq load-prefer-newer t byte-compile-warnings 'all)" -f batch-byte-compile cedet/srecode/cpp.el
> make[3]: *** [cedet/srecode/cpp.elc] Error 134
> make[3]: *** Waiting for unfinished jobs....
>
> frame #5: 0x00000001003a2814 emacs`interval_tree_remove(tree=0x0000600002c03f00, node=0x0000600002112b70) at itree.c:389:3
> 386 node->right = node->left = node->parent = NULL;
> 387 --tree->size;
> 388
> -> 389 eassert (tree->size == 0 || (tree->size > 0 && tree->root != &tree->null));
> 390
> 391 return node;
> 392 }
> (lldb) p tree->size
> (intmax_t) $0 = 26
> (lldb) p &tree->null
> (interval_node *) $1 = 0x0000600002c03f08
> (lldb) p tree->root
> (interval_node *) $2 = 0x0000600002c03f08
What does tree->null represent? Does it represent an empty tree? If
so, I guess tree->size is not maintained correctly?
next prev parent reply other threads:[~2022-09-27 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-27 12:07 bug#58113: 29.0.50; [noverlay] Segmentation fault while building on macOS Gerd Möllmann
2022-09-27 12:23 ` Gerd Möllmann
2022-09-27 12:43 ` Gerd Möllmann
2022-09-27 16:48 ` Eli Zaretskii [this message]
2022-09-28 4:29 ` Gerd Möllmann
2022-09-28 6:17 ` Gerd Möllmann
2022-09-28 10:13 ` Gerd Möllmann
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=83v8p8iwzq.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=58113@debbugs.gnu.org \
--cc=gerd.moellmann@gmail.com \
/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).