unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: 71177@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>
Subject: bug#71177: 30.0.50; crash when opening and closing many TTY frames in succession
Date: Sat, 25 May 2024 11:04:39 +0000	[thread overview]
Message-ID: <CAJKAhPCu1M8oiV_x43uw51y1SKhKiZOnUvZrepApv34T6BoGQQ@mail.gmail.com> (raw)
In-Reply-To: <s54ikz2n2ud.fsf@yahoo.com>

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

> That's a red herring.  It's because Daniel is running Emacs under GDB
> that his backtrace ends with a SIGPIPE, while the backtrace for the
> crash lies elsewhere.

True, this was a SIGPIPE (still not a crash), and gdb was stopping here. By
running "cont" I could make it continue.
After running "handle SIGPIPE noprint pass", and continuing the same
behaviour for ~30 seconds, I saw the real crash (SIGSEGV).

The cause of the crash is the other bug I reported, bug#71176
(tty-set-up-initial-frame-faces, face_at_buffer_position, default_face =
0x0), so I posted the new backtrace there.

So in here we just discovered that opening+closing frames is a way to
reproduce bug#71176, but I think the bug is 71176 and this one can be
closed.


> It might help if you post the details of how you "launch a new
> emacsclient with a keypress and kill it with another keypress".  IOW,
> please describe the recipe to reproduce the problem starting from
> "emacs -Q -nw --daemon".

I found a simpler formula, by launching and killing emasclient in a bash
loop. Details at bug#71176.



On Sat, 25 May 2024 at 00:37, Po Lu <luangruo@yahoo.com> wrote:

> Eli Zaretskii <eliz@gnu.org> writes:
>
> > I think it crashes because of this SIGPIPE.  I hope some Unix expert
> > will be able to explain why Emacs gets get SIGPIPE in this scenario.
> > Perhaps because you kill emacsclient too quickly?
>
> That's a red herring.  It's because Daniel is running Emacs under GDB
> that his backtrace ends with a SIGPIPE, while the backtrace for the
> crash lies elsewhere.
>
>   (gdb) handle SIGPIPE noprint pass
>
> is probably in order, I suspect.
>

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

  reply	other threads:[~2024-05-25 11:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24 17:47 bug#71177: 30.0.50; crash when opening and closing many TTY frames in succession Daniel Clemente
2024-05-24 19:31 ` Eli Zaretskii
2024-05-25  0:37   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-25 11:04     ` Daniel Clemente [this message]
2024-05-25 12: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=CAJKAhPCu1M8oiV_x43uw51y1SKhKiZOnUvZrepApv34T6BoGQQ@mail.gmail.com \
    --to=n142857@gmail.com \
    --cc=71177@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.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).