unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Philipp Stephani <phst@google.com>, emacs-devel@gnu.org
Subject: Re: Odd gdb problem
Date: Wed, 08 Dec 2021 01:29:38 +0100	[thread overview]
Message-ID: <87a6hc6irx.fsf@gnus.org> (raw)
In-Reply-To: <87ee6o6j32.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 08 Dec 2021 01:22:57 +0100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Philipp, after this change, I can no longer debug Emacs with gdb on
> Debian/bookworm.  (It works fine with older gdb versions.)

I've confirmed that simply disabling it on the current trunk makes the
problem disappear, so it's definitely the spawn code:

diff --git a/src/callproc.c b/src/callproc.c
index c949fff4db..ec44e982f3 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -37,7 +37,7 @@ Copyright (C) 1985-1988, 1993-1995, 1999-2021 Free Software Foundation,
   && defined HAVE_DECL_POSIX_SPAWN_SETSID                   \
   && HAVE_DECL_POSIX_SPAWN_SETSID == 1
 # include <spawn.h>
-# define USABLE_POSIX_SPAWN 1
+# define USABLE_POSIX_SPAWN 0
 #else
 # define USABLE_POSIX_SPAWN 0
 #endif


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



  reply	other threads:[~2021-12-08  0:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-06 19:43 Odd gdb problem Lars Ingebrigtsen
2021-12-06 19:55 ` Eli Zaretskii
2021-12-06 19:57   ` Lars Ingebrigtsen
2021-12-07 12:48     ` Eli Zaretskii
2021-12-07 20:33       ` Lars Ingebrigtsen
2021-12-08  0:22         ` Lars Ingebrigtsen
2021-12-08  0:29           ` Lars Ingebrigtsen [this message]
2021-12-08  8:13           ` Andreas Schwab
2021-12-08  8:16             ` Lars Ingebrigtsen
2021-12-08  8:34               ` Lars Ingebrigtsen
2021-12-08  8:50                 ` Andreas Schwab
2021-12-09  1:10                   ` Lars Ingebrigtsen
2021-12-12 11:08                     ` Lars Ingebrigtsen

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=87a6hc6irx.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=phst@google.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).