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: Strange hangs when visiting .el and .html files Date: Wed, 07 Feb 2024 22:13:43 +0200 Message-ID: <86o7csxcaw.fsf@gnu.org> References: <20240207192829.C61B818A1F07@snark.thyrsus.com> <86plx8xe5k.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24270"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: esr@thyrsus.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 07 21:14:43 2024 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 1rXoJd-00065y-0X for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 21:14:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXoJ2-0001UB-9V; Wed, 07 Feb 2024 15:14:04 -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 1rXoIz-0001Ti-69 for emacs-devel@gnu.org; Wed, 07 Feb 2024 15:14:02 -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 1rXoIw-0005x1-UU; Wed, 07 Feb 2024 15:14:00 -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=oYGkuTg+KmzvjQFOiajaF7irlMuJ5KJD5sF5HP/5Jvg=; b=oHkEFK+dGIjj DIh6y+AXUiiHVexpmBhMhXh1R/3bKh6z2yN7Ow5qffybp1aK1k+XYN9QmpDn39pvI59COEV6ryA+0 Cw6Yv+FzvtNo8LEntq6e7evr0kMvOtHpt7fgMiuumRG5JxPboQ5axJ1x1UCZp8kEaitr0sEh2t/rs +rzl+oxQg1qP2sXHSSe9BEmst5wVd2g7qEB4yfVhLqSv1ESzDbJXT71ZrEn8L4nkEBI0IZZHP196U u5Kn0sL0E5vztyb7CQduOLwxTi90CkIZakbhg28/GzZEmHdRQRuCzt17NcyblEeb49i1DqLzf5SYr tLiWU/72/14trXlY/UuB7Q==; In-Reply-To: (esr@thyrsus.com) 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:315998 Archived-At: > Date: Wed, 7 Feb 2024 14:55:31 -0500 > From: "Eric S. Raymond" > Cc: emacs-devel@gnu.org > > Eli Zaretskii : > > > Attach the debugger to a hung Emacs and produce a backtrace from all > > the threads? > > Is this procedure documented anywhere? Possibly etc/DEBUG, but I can give instructions, if that's what you need. Basically, "gdb -p PID", where PID is the Emacs' process ID, preferably from the src directory of the tree from which Emacs was built (there's a .gdbinit file there that can help), then, when GDB shows it prompt "(gdb)", type "thread apply all bt", which will produce backtrace from every thread in the process.