GNU bug report logs - #66098
Crash in itree.c on macOS with incomplete backtrace

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Tue, 19 Sep 2023 08:49:02 UTC

Severity: normal

Full log


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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 66098 <at> debbugs.gnu.org, rpluim <at> gmail.com, acorallo <at> gnu.org
Subject: Re: bug#66098: Crash in itree.c on macOS with incomplete backtrace
Date: Sun, 24 Sep 2023 14:01:44 -0700
[Message part 1 (text/plain, inline)]
Stefan Kangas <stefankangas <at> gmail.com> writes:

> I'm still trying various configurations to find out more, but it's slow
> going since I can't seem to find a way to reproduce it consistently.
> I'm now running this build:
>
> Configured using:
>  'configure 'CFLAGS=-O0 -g3 -fsanitize=address'
>  --with-native-compilation CPPFLAGS=-I/usr/local/opt/llvm/include
>  LDFLAGS=-L/usr/local/opt/llvm/lib'

I was now able to reproduce the crash again.  This time I was typing
C-M-x (`eval-defun') in an elisp-mode buffer when it crashed, for a form
which AFAICT basically sets some variables and nothing more.  Here is
the form, for the sake of completion:

    (use-package magit
      :bind (("C-c g" . magit-dispatch))
      :custom
      (magit-diff-refine-hunk 'all)
      (magit-repository-directories '(("~/wip/emacs/" . 0)))
      :config
      (with-eval-after-load 'magit-extras
        (setq magit-pop-revision-stack-format
              (pcase-let ((`(,pt ,_eob ,index-regexp)
                           (default-value 'magit-pop-revision-stack-format)))
                `(,pt "[%N: %h]: %ci\n  %s\n
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=%H"
                      ,index-regexp)))))

Unfortunately, ASan didn't catch anything useful.  The terminal output
is only this:

    Fatal error 11: Segmentation fault
    Abort trap: 6

The Apple crash log looks rather similar to the old one, but the line
numbers for some of the calls are a bit different.  I've attached it
here just in case anyone else is able to glean something useful from it.
[Message part 2 (text/plain, attachment)]
[crash.txt.gz (application/octet-stream, attachment)]

This bug report was last modified 1 year and 264 days ago.

Previous Next


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