unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Daniel Clemente <n142857@gmail.com>
Cc: 71176@debbugs.gnu.org
Subject: bug#71176: 30.0.50; Segmentation fault (SIGSEGV) in TTY+emacsclient, default_face is nil
Date: Sun, 26 May 2024 20:55:40 +0300	[thread overview]
Message-ID: <864jakwj8j.fsf@gnu.org> (raw)
In-Reply-To: <CAJKAhPCqbA3uAKTj6zV=uXtXZEbopyQ4Z+G0esUDVUCL4dz4FA@mail.gmail.com> (message from Daniel Clemente on Sun, 26 May 2024 10:58:41 +0000)

> From: Daniel Clemente <n142857@gmail.com>
> Date: Sun, 26 May 2024 10:58:41 +0000
> Cc: 71176@debbugs.gnu.org
> 
> With only the 3rd patch you sent (i.e. having removed the 1st patch), it doesn't crash. Opening and closing
> frames works, and emacsclient is usable even after what I describe below.
> Normal usage seems also fine (defining "fine" as: I see another TTY-only bug but it's unrelated). Using it with
> my full ~/.emacs also works.
> 
> However after around 1 minute of opening+killing frames with the bash for-loop I mentioned, the C stack is
> much higher (see first backtrace below).
> If I let it continue (~3 minutes in total), it leads to: Lisp nesting exceeds ‘max-lisp-eval-depth’: 1601. In "bt" I saw
> a stack of 21k function calls.
> 
> Below the first "bt" I attach a fragment of "bt full" (from a different run).
> If just stay a few seconds opening+kill frames (not 1 minute), then stop, it doesn't have such a high stack (see
> bt tagged bt222 below).
> 
> This may be a different bug; if you want I can report it separately.

I think it's indeed a different issue -- if it is an issue at all:
after all "Lisp nesting exceeds ‘max-lisp-eval-depth’" is not a crash,
just a Lisp error, and it follows a use pattern that is, let's say,
not very interesting.  What I see is that Emacs recursively calls
functions that read from a client process, which most probably is
called by the error recovery of server.el when you kill client frames.
The error recovery code includes some wait functions that are intended
to let the user see the error messages, and making that possible is
much more important for us than avoiding Lisp nesting in scenarios
like this one.

So yes, I think you should submit a separate issue with the details.

In any case, please report backtraces with a Lisp backtrace (GDB will
do that automatically if you invoke it from the src directory of
Emacs, or if you manually "source .gdbinit").  These deep backtraces
are very hard to read and interpret otherwise.





  parent reply	other threads:[~2024-05-26 17:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24 17:38 bug#71176: 30.0.50; Segmentation fault (SIGSEGV) in TTY+emacsclient, default_face is nil Daniel Clemente
2024-05-24 19:26 ` Eli Zaretskii
2024-05-25 11:04   ` Daniel Clemente
2024-05-25 12:42     ` Eli Zaretskii
2024-05-25 16:22       ` Daniel Clemente
2024-05-25 17:25         ` Eli Zaretskii
2024-05-25 17:48           ` Eli Zaretskii
2024-05-25 18:07             ` Eli Zaretskii
2024-05-26 10:58               ` Daniel Clemente
2024-05-26 11:04                 ` Daniel Clemente
2024-05-26 16:44                   ` Eli Zaretskii
2024-05-27 11:04                     ` Daniel Clemente
2024-05-27 12:39                       ` Eli Zaretskii
2024-05-26 17:55                 ` Eli Zaretskii [this message]
2024-05-27 11:05                   ` Daniel Clemente

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=864jakwj8j.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71176@debbugs.gnu.org \
    --cc=n142857@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).