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: Thu, 14 Dec 2023 18:34:46 +0200 Message-ID: <83cyv8rbdl.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34183"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 14 17:35:37 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 1rDogT-0008eE-7m for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Dec 2023 17:35:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDofk-00032w-2e; Thu, 14 Dec 2023 11:34:52 -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 1rDofh-00032k-Nf for emacs-devel@gnu.org; Thu, 14 Dec 2023 11:34:49 -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 1rDofg-0006wy-VV; Thu, 14 Dec 2023 11:34:48 -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=B78ijE987lZlZrJul9eErXE/BMW9AdKPcDZWZrtJ1DI=; b=LoFoD9/nFRbx uBv70NDKdJ1cOWw0DBipYvPgeCfrrDc2OUABZxKWFGGcDSS6Ph8RTU6a20nU9CdhWVNzDlj7HByzq AVAEWxJHBowB1h/6nQqtoIK8VmGKK8rIJ3ouWlkdiFLdrum6EZ5b1HauWq1Ayc7frjzFn/Y2o/jWR yaLQUNs3pJSSoykOnJHqMDu3nEQrNnMpWHmf1wWZAuKdv0WbSRgMntdTOQMsZzvrUEUqauPKWup6g T5c27s/nNVioDHzF8JNWDpkdK/M24ruv0KKaZ8raLtdIZbwWcITxvQrCm96zr0d30Xhm+IwqLYLIa ZoMu9BtSbPt0buTJTqufYw==; In-Reply-To: <87v890vpo0.fsf@ledu-giraud.fr> (message from Manuel Giraud on Thu, 14 Dec 2023 15:12:31 +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:313788 Archived-At: > From: Manuel Giraud > Cc: emacs-devel@gnu.org > Date: Thu, 14 Dec 2023 15:12:31 +0100 > > Eli Zaretskii writes: > > > The threads you see under a debugger are not Lisp threads, they are > > threads started by GTK and other libraries we link against. You > > cannot disable them, except by building Emacs without those libraries > > (I think just without GTK should do, if you are on GNU/Linux). > > I'm not using GTK so maybe it is another library (maybe librsvg-2). Look at the code those threads run (e.g., with "thread apply all bt"), and you will know which library does that. > >> (FWIW, I want this to simplify debugging because on my machine I cannot > >> make GDB to switch to the correct thread > > > > How come? > > I don't know so I will just describe the symptoms: when I "run" Emacs > into a 'M-x gdb' session at one point the *gud* buffer will output [New > thread ...] and then the Emacs process is stuck and so is the process of > the *gud* buffer. So I have to kill and close everything. Never seen anything like that. Any chance of describing under what conditions this happens? Is this 100% reproducible on your system? > (FWIW, GDB on OpenBSD does not seem to support non-stop mode. Maybe it > is what is required.) No, you don't need the non-stop mode to debug Emacs. You need the all-stop mode, which is supposed to be the default. What version of GDB do you have there?