From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs without threads Date: Fri, 22 Dec 2023 13:48:51 +0200 Message-ID: <83h6kafof0.fsf@gnu.org> References: <87il516pgm.fsf@ledu-giraud.fr> <83il51qbiy.fsf@gnu.org> <877clh6jky.fsf@ledu-giraud.fr> <83edfpq6os.fsf@gnu.org> <87v890vpo0.fsf@ledu-giraud.fr> <83cyv8rbdl.fsf@gnu.org> <874jgju3ia.fsf@ledu-giraud.fr> <83zfyboec3.fsf@gnu.org> <874jgjsh26.fsf@ledu-giraud.fr> <83bkaqmgsm.fsf@gnu.org> <875y0yota0.fsf@ledu-giraud.fr> <87y1ds656n.fsf@ledu-giraud.fr> <83zfy8i467.fsf@gnu.org> <87le9s6lyr.fsf@ledu-giraud.fr> <83sf3zieyb.fsf@gnu.org> <87cyuyoaoa.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40099"; mail-complaints-to="usenet@ciao.gmane.io" Cc: manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 22 12:49:25 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rGe1t-000ABD-Ea for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Dec 2023 12:49:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGe1c-0004v4-CO; Fri, 22 Dec 2023 06:49:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGe1a-0004uJ-2p for emacs-devel@gnu.org; Fri, 22 Dec 2023 06:49:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGe1Z-00043n-6o; Fri, 22 Dec 2023 06:49:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=67IQxqGxqGOj+PTrQ3ljTlx/aNS3GK+gqQvQe4NVq3o=; b=fg6BtBK5x2eV l13JRGUPs/9ellFQLaPsnwoXyoiRi+EXQvMaSCajOnXEFrg/vmUYNpfp3IXLQSo2UMYOVmgRfhwh4 wI20hJJJkZAgum6l6pCwqfpBkWMH6CEgGvzbJYRJT+05FF+GizOzvZ2/W+3oofP98l6GyX8ywRYeQ x5RMdaPulUtxGzlG89Ax46714xxEwDasSCXDyHvEhF3WqcP5EoM2oGAQgh+rTctCrPIpPLfvXNUfu dnJ7DJEQ+5ORYYqbvcyCK6qiDW/4rxBkbPp084hWDaU/r+MBLKtxmfKmBiLq6nm+JMOnqTbBo7fZr LMnL5o1hJDCgkznez37wSg==; In-Reply-To: <87cyuyoaoa.fsf@gmx.de> (message from Michael Albinus on Fri, 22 Dec 2023 10:20:53 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314068 Archived-At: > From: Michael Albinus > Cc: Manuel Giraud , emacs-devel@gnu.org > Date: Fri, 22 Dec 2023 10:20:53 +0100 > > Eli Zaretskii writes: > > Hi Eli, > > >> I'm using EXWM and start emacs last from my .xsession. But, as for > >> other wm, I start it with a dbus-launch like this: > >> > >> dbus-launch --sh-syntax --exit-with-x11 emacs > >> > >> If I replace this line with just "emacs", I do not experience the freeze > >> of GDB sessions. Thanks. > > > > Glad I could help you. > > > > I don't what dbus-launch does. Michael, can you help us understand > > why it interferes with debugging via gdb-mi.el? > > dbus-launch with its above arguments starts the D-Bus session bus as > daemon. It sets the respective environment variables and starts the > given program (emacs in this case) with the new environment. > > The backside of this approach is, that this D-Bus environment is known > only to the started Emacs instance and its derived programs. The cannot > communicate with other programs via D-Bus, if these programs are started > outside the dbus-launch invocation. > > I don't know, whether this is relevant for gdb-mi.el. Thanks. Do you have an idea what could be those threads that Manuel saw when debugging such an Emacs? Manuel, would you please describe in detail how you debug such an Emacs? That is, how you start GDB in gdb-mi, and how you "connect" GDB to the Emacs session launched as above?