unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Umar Ahmad via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 50284@debbugs.gnu.org
Subject: bug#50284: 28.0.50; Emacs crashes occasionally on macOS BigSur
Date: Thu, 30 Sep 2021 16:53:27 +0530	[thread overview]
Message-ID: <CAFHo54cWEWaBcQccVOdKLBUGTXw6Kcc_zFhZQwkL9NM6HhfZ0g@mail.gmail.com> (raw)
In-Reply-To: <83fstmh16r.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2478 bytes --]

Hello Eli,
Thank you for your answers. Yes the bug can be closed.

On Thu, Sep 30, 2021 at 2:47 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Umar Ahmad <ahmad.umar2008@yahoo.in>
> > Date: Thu, 30 Sep 2021 02:14:06 +0530
> > Cc: Eli Zaretskii <eliz@gnu.org>, 50284@debbugs.gnu.org
> >
> > Anyway, I think you're right to point out that it was some lisp code
> that was
> > the culprit here. I've been running emacs continuously for the last 20
> days
> > without a crash. This closely matches the time I upgraded all the
> packages, so I
> > think it's fair to assume that some package upgrade solved it.
> >
> > I was under the assumption that any lisp code crashing emacs would be a
> bug in
> > Emacs, but I guess we can keep this closed, considering that I can't
> replicate
> > it now.
>
> A Lisp bug shouldn't in general crash Emacs, but infinite recursion in
> Lisp is an exception: it is not always possible to recover from that,
> although Emacs does try.
>
> > > We need to know where in regex-emacs.c is the place shown in the last
> line
> > above.  Can you try establishing that?
> >
> > I've no idea on how to establish that considering my rudimentary
> knowledge of
> > C. Do you mean, running emacs with GDB enabled and adding breakpoints to
> figure
> > this out?
>
> It is enough to run under GDB and produce a backtrace when the crash
> happens.
>
> > > This indicates that you are using s.el, which makes tracking this bug
> harder.
> >
> > Oh! I see. Didn't know this could make things harder.
>
> It is harder because to try anything we would need to install s.el.
>
> > > So I think we need to see the full Lisp backtrace when this happens,
> or at
> > least the Lisp code which runs.
> >
> > Got it. I only knew of `toggle-debug-on-error`, at the time of reporting
> this
> > bug, that would give me a trace if there were some errors in elisp but I
> didn't
> > know, how I could've managed to get the lisp trace when emacs crashes. I
> just
> > discovered the /etc/DEBUG file, after going through your mail, and it
> seems the
> > way to do this is again through GDB and running xbacktrace. Is this the
> correct
> > understanding or is there some other way to achieve this?
>
> Yes.  In fact, if you start GDB from the src directory with Emacs
> sources, the "backtrace" command will automatically run "xbacktrace"
> as well, because we arrange for that in src/.gdbinit.
>
> So I guess we should close this bug for now?
>


-- 
Regards,
Umar Ahmad

[-- Attachment #2: Type: text/html, Size: 3332 bytes --]

  reply	other threads:[~2021-09-30 11:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFHo54dtNbAjUYi=weUzse-r-JMnZXpOx4vFOeb=E_mXGqnB_Q.ref@mail.gmail.com>
2021-08-30 19:38 ` bug#50284: 28.0.50; Emacs crashes occasionally on macOS BigSur Umar Ahmad via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-31 11:59   ` Eli Zaretskii
2021-09-29 16:01     ` Lars Ingebrigtsen
2021-09-29 20:44       ` Umar Ahmad via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-30  9:17         ` Eli Zaretskii
2021-09-30 11:23           ` Umar Ahmad via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-09-30 11:43             ` 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

  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=CAFHo54cWEWaBcQccVOdKLBUGTXw6Kcc_zFhZQwkL9NM6HhfZ0g@mail.gmail.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=50284@debbugs.gnu.org \
    --cc=ahmad.umar2008@yahoo.in \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.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 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).