From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Eric S. Raymond" Newsgroups: gmane.emacs.devel Subject: Strange hangs when visiting .el and .html files Date: Wed, 7 Feb 2024 14:28:29 -0500 (EST) Message-ID: <20240207192829.C61B818A1F07@snark.thyrsus.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32468"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 07 20:29:19 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 1rXnbj-0008FV-Ff for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 20:29:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXnb2-00076S-3Y; Wed, 07 Feb 2024 14:28:36 -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 1rXnaz-00072z-BJ for emacs-devel@gnu.org; Wed, 07 Feb 2024 14:28:33 -0500 Original-Received: from thyrsus.com ([71.162.243.5] helo=snark.thyrsus.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXnax-0004cV-AL for emacs-devel@gnu.org; Wed, 07 Feb 2024 14:28:33 -0500 Original-Received: by snark.thyrsus.com (Postfix, from userid 1000) id C61B818A1F07; Wed, 7 Feb 2024 14:28:29 -0500 (EST) Received-SPF: pass client-ip=71.162.243.5; envelope-from=esr@thyrsus.com; helo=snark.thyrsus.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:315992 Archived-At: About a week ago I noticed that my Emacs was hanging when I attempted to visit my init.el file. Then I saw the same hang when visiting an HTML file. Other modes, such as text and C modes, are working normally. I have seen this problem under a released 1.27 and a repository head version (30.0.50 build 11) built about 20 minutes ago. Running emacs with -q does not evade the hang. OS is Pop!_OS 22.04 LTS, not that I think that matters. Any suggestions on how to troubleshoot this? -- Eric S. Raymond 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 21:33:43 +0200 Message-ID: <86plx8xe5k.fsf@gnu.org> References: <20240207192829.C61B818A1F07@snark.thyrsus.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21255"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Eric S. Raymond" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 07 20:34:59 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 1rXnhC-0005ET-5M for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 20:34:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXngT-0008U9-09; Wed, 07 Feb 2024 14:34:13 -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 1rXngO-0008T5-Vv for emacs-devel@gnu.org; Wed, 07 Feb 2024 14:34:09 -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 1rXngO-0005lH-Lf; Wed, 07 Feb 2024 14:34:08 -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=lD12cVy6gdnDtWqDdN8wl28i17873qi6pPuhXqtTlcA=; b=evJEzo5LGqxx 4VjbTg7FS5UQa3a3G4mdKMmsduZWQVyA7/oiX4X1uRYKty0iaXWhvFlAxXAtlIjvKxTi9XiU23E83 5U54fTgKmAYruaO0ELHzW+LS2xvRMIGy6Tvn8LKFWGIv4BzJTmnhZ5a1SMKvw/puzm+tSdVfnpWhj 3Ikifn7DJjpT5qD0gw0yexUKIFmbVNB7whZ4hKGnBL0SHQMPUVAjXCxKD7kcPD3EUQdoyZM5cWezZ Ln4gSXVHz5jOyAI9yQjPJ11H7Fry4lBab64o1awczqyulTWqNrSOpC3iaEeQO0JjjNfvdRm511RMP ierW+jDjQTmWeUWbiQVl2Q==; In-Reply-To: <20240207192829.C61B818A1F07@snark.thyrsus.com> (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:315993 Archived-At: > From: "Eric S. Raymond" > Date: Wed, 7 Feb 2024 14:28:29 -0500 (EST) > > About a week ago I noticed that my Emacs was hanging when I attempted > to visit my init.el file. Then I saw the same hang when visiting an > HTML file. Other modes, such as text and C modes, are working normally. > > I have seen this problem under a released 1.27 and a repository head > version (30.0.50 build 11) built about 20 minutes ago. What's "1.27"? did you mean Emacs 27.1? or something else? If it's indeed Emacs 27, then the first suspect is something you've changed on your system recently that is not Emacs, but maybe some library or driver. > Running emacs with -q does not evade the hang. > > OS is Pop!_OS 22.04 LTS, not that I think that matters. > > Any suggestions on how to troubleshoot this? Attach the debugger to a hung Emacs and produce a backtrace from all the threads? Btw, it is netter to discuss this on the bug tracker, so please use "M-x report-emacs-bug" to submit a report with all the details. Thanks. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Eric S. Raymond" Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Wed, 7 Feb 2024 14:55:31 -0500 Organization: Eric Conspiracy Secret Labs Message-ID: References: <20240207192829.C61B818A1F07@snark.thyrsus.com> <86plx8xe5k.fsf@gnu.org> Reply-To: esr@thyrsus.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9597"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 07 20:56:21 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 1rXo1s-0002Da-5n for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 20:56:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXo1B-00077n-BX; Wed, 07 Feb 2024 14:55:37 -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 1rXo1A-00077e-9P for emacs-devel@gnu.org; Wed, 07 Feb 2024 14:55:36 -0500 Original-Received: from thyrsus.com ([71.162.243.5] helo=snark.thyrsus.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXo17-00024R-Hn; Wed, 07 Feb 2024 14:55:36 -0500 Original-Received: by snark.thyrsus.com (Postfix, from userid 1000) id 15BF718A1F07; Wed, 7 Feb 2024 14:55:31 -0500 (EST) Content-Disposition: inline In-Reply-To: <86plx8xe5k.fsf@gnu.org> X-Eric-Conspiracy: There is no conspiracy Received-SPF: pass client-ip=71.162.243.5; envelope-from=esr@thyrsus.com; helo=snark.thyrsus.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:315995 Archived-At: Eli Zaretskii : > What's "1.27"? did you mean Emacs 27.1? or something else? Sorry, yes, I did mean 27.1 > If it's indeed Emacs 27, then the first suspect is something you've > changed on your system recently that is not Emacs, but maybe some > library or driver. My first guess was a dodgy .el file in my load path, but I've eliminated that possibility. > Attach the debugger to a hung Emacs and produce a backtrace from all > the threads? Is this procedure documented anywhere? > Btw, it is netter to discuss this on the bug tracker, so please use > "M-x report-emacs-bug" to submit a report with all the details. Will do. -- Eric S. Raymond 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Eric S. Raymond" Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Wed, 7 Feb 2024 16:00:04 -0500 Organization: Eric Conspiracy Secret Labs Message-ID: References: <20240207192829.C61B818A1F07@snark.thyrsus.com> <86plx8xe5k.fsf@gnu.org> <86o7csxcaw.fsf@gnu.org> Reply-To: esr@thyrsus.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21144"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 07 22:01:13 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 1rXp2e-0005Ih-IZ for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 22:01:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXp1f-0001iN-FH; Wed, 07 Feb 2024 16:00:11 -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 1rXp1d-0001hu-4o for emacs-devel@gnu.org; Wed, 07 Feb 2024 16:00:10 -0500 Original-Received: from thyrsus.com ([71.162.243.5] helo=snark.thyrsus.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXp1b-0006Ug-Ej; Wed, 07 Feb 2024 16:00:08 -0500 Original-Received: by snark.thyrsus.com (Postfix, from userid 1000) id 02C9018A1F07; Wed, 7 Feb 2024 16:00:05 -0500 (EST) Content-Disposition: inline In-Reply-To: <86o7csxcaw.fsf@gnu.org> X-Eric-Conspiracy: There is no conspiracy Received-SPF: pass client-ip=71.162.243.5; envelope-from=esr@thyrsus.com; helo=snark.thyrsus.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316000 Archived-At: Eli Zaretskii : > > 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. I can budget time to work on thuis after the 15th. When I do, I will make notes on what I learn and feed them back into etc/DEBUG. -- Eric S. Raymond From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Thu, 08 Feb 2024 10:14:38 +0100 Message-ID: References: <20240207192829.C61B818A1F07@snark.thyrsus.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2459"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: "Eric S. Raymond" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 08 10:15:32 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 1rY0VH-0000W8-Qm for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Feb 2024 10:15:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY0Ua-0001hH-7k; Thu, 08 Feb 2024 04:14:48 -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 1rY0UW-0001h2-4x for emacs-devel@gnu.org; Thu, 08 Feb 2024 04:14:44 -0500 Original-Received: from smtp-out2.suse.de ([2a07:de40:b251:101:10:150:64:2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rY0UU-0006Dx-3v for emacs-devel@gnu.org; Thu, 08 Feb 2024 04:14:43 -0500 Original-Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by smtp-out2.suse.de (Postfix) with ESMTP id B799A1FCA1; Thu, 8 Feb 2024 09:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707383678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CcP/mBccFpIpfEkep8ZeTM0Lc3mIuDsS5LMuZ+mGFWI=; b=JuY3UvA1eX5fafgJYX8UXFbkm+NWxJiLMMLmQhXQBv5Kmz5V+4l0PYB53zAEcAwNHd2JVJ C3D5ekB0cBYL6xoqhuglxXxtcrCifkwadKrsZGm8WrCRh4XKGXy/CmOWtk19DKoyMrAA2D EznI46BvCUQRfVr3CMdPRB/o/qLWzEg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707383678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CcP/mBccFpIpfEkep8ZeTM0Lc3mIuDsS5LMuZ+mGFWI=; b=UAA4gMpsPR+1ShP2wojhdFDlaO+Ccp03Oy2W90AAVAFt1vHr+7XhtQmLnf75dqxsDciJVo i7VqHbaK7DcvCxDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707383678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CcP/mBccFpIpfEkep8ZeTM0Lc3mIuDsS5LMuZ+mGFWI=; b=JuY3UvA1eX5fafgJYX8UXFbkm+NWxJiLMMLmQhXQBv5Kmz5V+4l0PYB53zAEcAwNHd2JVJ C3D5ekB0cBYL6xoqhuglxXxtcrCifkwadKrsZGm8WrCRh4XKGXy/CmOWtk19DKoyMrAA2D EznI46BvCUQRfVr3CMdPRB/o/qLWzEg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707383678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CcP/mBccFpIpfEkep8ZeTM0Lc3mIuDsS5LMuZ+mGFWI=; b=UAA4gMpsPR+1ShP2wojhdFDlaO+Ccp03Oy2W90AAVAFt1vHr+7XhtQmLnf75dqxsDciJVo i7VqHbaK7DcvCxDw== Original-Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id A7F5E4A0387; Thu, 8 Feb 2024 10:14:38 +0100 (CET) In-Reply-To: <20240207192829.C61B818A1F07@snark.thyrsus.com> (Eric S. Raymond's message of "Wed, 7 Feb 2024 14:28:29 -0500 (EST)") X-Yow: Send your questions to ``ASK ZIPPY'', Box 40474, San Francisco, CA 94140, USA Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [-0.66 / 50.00]; TO_DN_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-2.55)[98.01%]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(3.00)[0.999]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com] Received-SPF: pass client-ip=2a07:de40:b251:101:10:150:64:2; envelope-from=schwab@suse.de; helo=smtp-out2.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316025 Archived-At: On Feb 07 2024, Eric S. Raymond wrote: > About a week ago I noticed that my Emacs was hanging when I attempted > to visit my init.el file. Then I saw the same hang when visiting an > HTML file. Other modes, such as text and C modes, are working normally. Is it interruptable? Then you can enable debug-on-quit to see where it hangs. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Eric S. Raymond" Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Fri, 9 Feb 2024 13:09:21 -0500 Organization: Eric Conspiracy Secret Labs Message-ID: References: <20240207192829.C61B818A1F07@snark.thyrsus.com> Reply-To: esr@thyrsus.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35828"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 09 19:10:20 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 1rYVKO-000948-9u for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Feb 2024 19:10:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYVJb-0001Y0-HJ; Fri, 09 Feb 2024 13:09:32 -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 1rYVJZ-0001Xs-OD for emacs-devel@gnu.org; Fri, 09 Feb 2024 13:09:29 -0500 Original-Received: from thyrsus.com ([71.162.243.5] helo=snark.thyrsus.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYVJU-0008Ow-R7 for emacs-devel@gnu.org; Fri, 09 Feb 2024 13:09:29 -0500 Original-Received: by snark.thyrsus.com (Postfix, from userid 1000) id 26DF718A1647; Fri, 9 Feb 2024 13:09:21 -0500 (EST) Content-Disposition: inline In-Reply-To: X-Eric-Conspiracy: There is no conspiracy Received-SPF: pass client-ip=71.162.243.5; envelope-from=esr@thyrsus.com; helo=snark.thyrsus.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316073 Archived-At: Andreas Schwab : > On Feb 07 2024, Eric S. Raymond wrote: > > > About a week ago I noticed that my Emacs was hanging when I attempted > > to visit my init.el file. Then I saw the same hang when visiting an > > HTML file. Other modes, such as text and C modes, are working normally. > > Is it interruptable? Then you can enable debug-on-quit to see where it > hangs. I tried that first thing. Ctl-G after the hang does interrupt it, but doesn't yield a trace. It's a weird bug because it's so specific. Most Lisp modes are completely unaffected. -- Eric S. Raymond From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Fri, 9 Feb 2024 12:50:54 -0600 Message-ID: <1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6471"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org, schwab@suse.de To: esr@thyrsus.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 09 20:46:56 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 1rYWps-0001TE-0e for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Feb 2024 20:46:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYWp5-0004d3-B5; Fri, 09 Feb 2024 14:46:07 -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 1rYWp4-0004ct-62 for emacs-devel@gnu.org; Fri, 09 Feb 2024 14:46:06 -0500 Original-Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYWp0-0004fj-Io for emacs-devel@gnu.org; Fri, 09 Feb 2024 14:46:05 -0500 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 39AB0C4A97; Fri, 9 Feb 2024 18:50:57 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a213.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id CEECFC4A94; Fri, 9 Feb 2024 18:50:56 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1707504656; a=rsa-sha256; cv=none; b=AVRYlLtKa6/YuRu2KhVwtutibtyuhtkZUY0ZXeA46UdIkYxyJYqqozpRVyoh5+xoV0IHYU XIBE1AWfwXSgVBy+/6MLN4wlCsn4PhD/8TSdbi0MYH1+TQurNEXnkLYbTjBAOz4uhTtEYY APiK0mGNE746sDDs5qPX7+jOo0dBLvXManyXoD7iDke0TVYmQW2A164jF2o/p65e4Rer1W iopxm8oVZq7wsvoeeCyEM+mHpCfmG8bA8stwrikH7M+D5MRbav761K8A/+h30k42tTXm9A v1Fg7jBTmSf6+uORjXaMU16T/olcCV8F1hpva90QGLNtL8s5SAQubiAOud+VyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1707504656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=7rUz6JQyQEjreLIu3BqssAt5WP3XMn+GWbULUT+MqsY=; b=YFC62Qkzx6pUeSi3I8DvUJP8FA0bMKTwKfHwfoycIrj3oT9VhG32Cbeg7TGEEMFZsazPqm RsFdFfZdMLR6mCDOOqG3Sr049FiLJ2OSAwv60wtOkmPoAhSjXD6ZotgRX+watZ6B/f0PNe gtxWGm8oQiMNCSiUKgpEgmoi3auGEt8l6dMwj0NdW+i2Jn9IdaZSrZX0GJe462/mdSsDCs y3O372G86dETqTIMVK5qhZZl17t8XsZbS+VlYyquBimUHT4mAs2OfYV6w+7cTsSPMk0cNZ 3rI3q3stvA0hGRS77e2xe1MgNJ5kEWZwzhDxS0zu02kdhxuKw1lVmYNB8ssIMA== ARC-Authentication-Results: i=1; rspamd-55b4bfd7cb-tjck5; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Snatch-Squirrel: 6919026f31e97712_1707504657097_914081492 X-MC-Loop-Signature: 1707504657097:3538057197 X-MC-Ingress-Time: 1707504657097 Original-Received: from pdx1-sub0-mail-a213.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.113.222.71 (trex/6.9.2); Fri, 09 Feb 2024 18:50:57 +0000 Original-Received: from [10.43.1.110] (unknown [193.56.116.15]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a213.dreamhost.com (Postfix) with ESMTPSA id 4TWjbz5rzhzGx; Fri, 9 Feb 2024 10:50:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1707504656; bh=7rUz6JQyQEjreLIu3BqssAt5WP3XMn+GWbULUT+MqsY=; h=Date:To:Cc:Subject:From:Content-Type:Content-Transfer-Encoding; b=bi7CojtLLCZaUoTl3wGLJ9fJsOkn67mQ0AkbPnDMa5N7rK8/TguFiAbBxydwnZBMt ol7A9kHTwGZG4yUG3RVZxgJ+kG+FhE/e4YkbBFreWkfVQLKif0jdh2UbTQGsxXugTe EcTUlqtUHBK7rwDifPTTVlVn0lx5AlhmKAKo06s5fE4X4C+SPA368my14PrFEZ7mBf DM4tZndDlArdvxo14eOec6CBy66a8ncWaoGVf7BrO8hjxqvFH0MlDKcz4Dd0g2dpJP UzhGuPdwzaCwqkC5aeOX5OQOK0BbYoNvFQV6nnTuouFmQwQqd8eodT2uOeSm3WTEzh 1zsqmLbkpfIlw== Content-Language: en-US In-Reply-To: Received-SPF: neutral client-ip=23.83.212.47; envelope-from=adam@alphapapa.net; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:316075 Archived-At: > Andreas Schwab : >> On Feb 07 2024, Eric S. Raymond wrote: >> >> > About a week ago I noticed that my Emacs was hanging when I attempted >> > to visit my init.el file. Then I saw the same hang when visiting an >> > HTML file. Other modes, such as text and C modes, are working normally. >> >> Is it interruptable? Then you can enable debug-on-quit to see where it >> hangs. > > I tried that first thing. > > Ctl-G after the hang does interrupt it, but doesn't yield a trace. > > It's a weird bug because it's so specific. Most Lisp modes are > completely unaffected. This sounds like a weird behavior that I've observed ever since Emacs 28, but I've never been able to pin it down well enough to file a report about it. Basically, what I observe is that: 1. Certain actions (like calling certain commands, perhaps including ones that activate a major mode) cause Emacs to spin with 100% CPU usage for some time, tens of seconds or even a couple of minutes sometimes. 2. It only happens when such an action happens for the first time in a session. 3. If I interrupt with C-g, everything appears normal; no errors, no partially initialized state, no weird behavior. It's as if whatever I interrupted was "optional." 4. Over time (3 or 4 versions now), the actions that trigger this behavior have not been consistent. I might even venture to say that, between different builds of the same version, the actions might not be consistent. 5. It seems to happen less now, on Emacs 29.1 (I still need to upgrade) than it did on builds of 28.0 and 28.1. 6. Without being able to verify it, I have the impression or intuition that it happens when Emacs loads a library for the first time in a session (I don't mean when it loads any library, just a certain one or ones, but I haven't been able to pin it down). Over the past couple of years, I've heard a few other users mention observing similar behavior at times, but again, always being difficult to nail down. If this seems like the same behavior you're seeing, maybe it's time we give this problem a name and an real bug report. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Eric S. Raymond" Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Fri, 9 Feb 2024 16:06:01 -0500 Organization: Eric Conspiracy Secret Labs Message-ID: References: <1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net> Reply-To: esr@thyrsus.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, schwab@suse.de To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 09 22:07:08 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 1rYY5T-0004Ns-Li for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Feb 2024 22:07:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYY4X-0001nr-IQ; Fri, 09 Feb 2024 16:06:09 -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 1rYY4V-0001cm-Nz for emacs-devel@gnu.org; Fri, 09 Feb 2024 16:06:07 -0500 Original-Received: from thyrsus.com ([71.162.243.5] helo=snark.thyrsus.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYY4R-0005XP-DR for emacs-devel@gnu.org; Fri, 09 Feb 2024 16:06:07 -0500 Original-Received: by snark.thyrsus.com (Postfix, from userid 1000) id C6A5718A1647; Fri, 9 Feb 2024 16:06:01 -0500 (EST) Content-Disposition: inline In-Reply-To: <1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net> X-Eric-Conspiracy: There is no conspiracy Received-SPF: pass client-ip=71.162.243.5; envelope-from=esr@thyrsus.com; helo=snark.thyrsus.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316076 Archived-At: Adam Porter : > This sounds like a weird behavior that I've observed ever since Emacs 28, > but I've never been able to pin it down well enough to file a report about > it. > > Basically, what I observe is that: > > 1. Certain actions (like calling certain commands, perhaps including ones > that activate a major mode) cause Emacs to spin with 100% CPU usage for some > time, tens of seconds or even a couple of minutes sometimes. > > 2. It only happens when such an action happens for the first time in a > session. > > 3. If I interrupt with C-g, everything appears normal; no errors, no > partially initialized state, no weird behavior. It's as if whatever I > interrupted was "optional." > > 4. Over time (3 or 4 versions now), the actions that trigger this behavior > have not been consistent. I might even venture to say that, between > different builds of the same version, the actions might not be consistent. > > 5. It seems to happen less now, on Emacs 29.1 (I still need to upgrade) than > it did on builds of 28.0 and 28.1. > > 6. Without being able to verify it, I have the impression or intuition that > it happens when Emacs loads a library for the first time in a session (I > don't mean when it loads any library, just a certain one or ones, but I > haven't been able to pin it down). > > Over the past couple of years, I've heard a few other users mention > observing similar behavior at times, but again, always being difficult to > nail down. > > If this seems like the same behavior you're seeing, maybe it's time we give > this problem a name and an real bug report. OK, I tested your theory by visiting my HTML home page, interrupting the resulting hang, and then visiting the page again. It didn't hang, and now seems to be operating normally. So I think we are in fact looking at the same bug. Nice to know I wasn't hallucinating, and I'm guessing you're feeling the same relief on reading this. Proposed title: "Repeatable hang on first load of certain major modes". I'd file the bug now, but it sounds like you've experienced it over more versions and contexts than I have, so you can add more detail than I could. The only thing I can add to your report is that the problem goes back past version 28, at least as far as 27.1. You can add to the report that I have seen this hang consistently in 27.1 and a recent repo head version, 30.0.50. And the modes I've seen hang are elisp mode and whatever is invoked for HTML files. If you reply with an issue URL I'll look it over and probably comment. -- Eric S. Raymond From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Fri, 09 Feb 2024 16:19:50 -0800 Message-ID: References: <1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14478"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Adam Porter , emacs-devel@gnu.org, schwab@suse.de To: "Eric S. Raymond" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 10 01:20:44 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 1rYb6q-0003aA-H6 for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Feb 2024 01:20:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYb66-0000Gj-PK; Fri, 09 Feb 2024 19:19:58 -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 1rYb65-0000GW-CB for emacs-devel@gnu.org; Fri, 09 Feb 2024 19:19:57 -0500 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYb63-0001bN-R0 for emacs-devel@gnu.org; Fri, 09 Feb 2024 19:19:57 -0500 Original-Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6e09cf9a210so487776b3a.3 for ; Fri, 09 Feb 2024 16:19:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707524393; x=1708129193; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=OZyn0AKlaH2wp7MiZxYsIvIlwKKx03XpOFTqfyN0f0I=; b=vyTcc/RXmKz1pmb+zgO2AJWVI9KpYjT4skagogi7EieccAThlYdcAlw4plZpGBgA3I 3WjZ5DL7Wm802L+gOgzMcPGPEYDldBx+VaAy1DHDPnvJ8iwj/UDkriuIAUQTUGO/wIfY GJ2NMahxrRR59B2TCQwkj/65rgmjdJEVYCyUeRreIw1fCyhO6RG5VfRndAPordgyO03M 6I/HTMl2m/u51faRAPzzU6Y0ffi/JmLZ51ZHEKFqtgMaSIC9Df666gMb2Ul30AK5mU03 3oojOB5h+9ZsCthlFFCirO47tXvRqwkpLwA+5fBjw6zrmDxiaqOJ1PK/XEQ5EscqkBw+ y1SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707524393; x=1708129193; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OZyn0AKlaH2wp7MiZxYsIvIlwKKx03XpOFTqfyN0f0I=; b=bnc6WOpwWA5bR2/k+zBB+vot0aX7Cs6UtvUpFPnRLoBgFb/rABrseG838RCBuQa+32 RwldE+EbiqKh76u+W5Zd24EtlXa+0GBzqR+Xxw78MZi6zUIPeXQ6AhNwTedAJMdQ4b13 XqcAW7bp7pzd75WMMuQ5gXnCgEfT5pxdHy1fqsqY3UDRtSuluAdKCxmrLsLfnUZVW2n6 GNZGmjb6sJYl1EKlWYYBKsUsREP96AMslmbXbbjHF48MwMkY/NvFVzoq7ZdTFFR3ZzpM JKkevZGLnK6xGjGHrzsy1MoirNMQGSrJEI3BJIXYSmMMTe8rVIF4/CQ4KodQNKSnkpJ1 HZIg== X-Gm-Message-State: AOJu0YyLanGimTxuDL6I4+LzqfexAIe7OQnRSHGXSyS/3/RMli56GMAF XPMekb+ZjxdlpU/nx5M9DeKppnZc8euoSp1qHqcxTERR6YmN9YZKPXuoLG6I+ik1gvfSpZzUr1Y paA== X-Google-Smtp-Source: AGHT+IEMvMUDx+Zzrivok3r8G1zbjUCzowR5iSf64U+7afdJLr7hJW8EmdLsTVI+FnBV/KIm3Vph+Q== X-Received: by 2002:a05:6a20:9f8a:b0:19e:9a75:7834 with SMTP id mm10-20020a056a209f8a00b0019e9a757834mr995365pzb.33.1707524393387; Fri, 09 Feb 2024 16:19:53 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCX8MzwHpxyVuBAExA1OUnHEY413Qu06jjy+1H1gxYEoB2JC5xIJqlBTCmuQnRW1Rt3M0j0YUriDnzVA6W321v/Yy+TFIqXJq4FQ+icqYT2sJrIksg== Original-Received: from raman9 (c-98-45-12-92.hsd1.ca.comcast.net. [98.45.12.92]) by smtp.gmail.com with ESMTPSA id z14-20020a17090abd8e00b0029711b8ac89sm909285pjr.32.2024.02.09.16.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 16:19:52 -0800 (PST) In-Reply-To: (Eric S. Raymond's message of "Fri, 9 Feb 2024 16:06:01 -0500") Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=raman@google.com; helo=mail-pf1-x432.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316080 Archived-At: profile with profiler-start and friends? -- 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: Sat, 10 Feb 2024 08:57:55 +0200 Message-ID: <86r0hkvma4.fsf@gnu.org> References: <20240207192829.C61B818A1F07@snark.thyrsus.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: schwab@suse.de, emacs-devel@gnu.org To: esr@thyrsus.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 10 07:58:54 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 1rYhK9-0002Iq-0q for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Feb 2024 07:58:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYhJK-0007UL-Sx; Sat, 10 Feb 2024 01:58:02 -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 1rYhJJ-0007U8-4V for emacs-devel@gnu.org; Sat, 10 Feb 2024 01:58:01 -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 1rYhJI-0001Mq-C6; Sat, 10 Feb 2024 01:58: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=uEm/uGI1xf6k1I02JO6ckomq8aep5fCY05iztCKbfJM=; b=S+BliN940hTz dfceUAX6kQeT9ILUwxcsfJAhV/eHD/jWMrsAhYZpEpgYsMNfs7Kw5OLB+I6Ce6dQ+T6xPkM5zFOWm hpdrQbeoK4gNC7CWndmUE+OJgyu1Ve+vDUWJd4OKnv9dM8R+ARJi/HfvzqPwo5kV85us00hSYOTMc y3SqbG7vseOTFPaOd3XLAVk1+XcsrYQS1b7vj4ueRU+Wwj3TjUW8ODQQU1kX8o8VmM649rEgWpmF9 KbTr4oZfTYGtL6AXFp70v0w3ALpQ6lxva1IU6LrBJRj0kh75iOTHckyNUhdcUrgQrA9xuv5UjFTfG DdAQ9/eFFF3yD6fP05elkQ==; 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:316084 Archived-At: > Date: Fri, 9 Feb 2024 13:09:21 -0500 > From: "Eric S. Raymond" > Cc: emacs-devel@gnu.org > > Andreas Schwab : > > On Feb 07 2024, Eric S. Raymond wrote: > > > > > About a week ago I noticed that my Emacs was hanging when I attempted > > > to visit my init.el file. Then I saw the same hang when visiting an > > > HTML file. Other modes, such as text and C modes, are working normally. > > > > Is it interruptable? Then you can enable debug-on-quit to see where it > > hangs. > > I tried that first thing. > > Ctl-G after the hang does interrupt it, but doesn't yield a trace. Do you see something in *Messages* after that C-g interrupt? Anyway, I still suggest the "attach GDB and produce backtrace" method, it will give us more data to work with. 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: Sat, 10 Feb 2024 08:59:02 +0200 Message-ID: <86plx4vm89.fsf@gnu.org> References: <1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12530"; mail-complaints-to="usenet@ciao.gmane.io" Cc: esr@thyrsus.com, emacs-devel@gnu.org, schwab@suse.de To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 10 07:59:21 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 1rYhKa-00031a-FL for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Feb 2024 07:59:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYhKO-0007zu-EZ; Sat, 10 Feb 2024 01:59: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 1rYhKM-0007tK-6f for emacs-devel@gnu.org; Sat, 10 Feb 2024 01:59: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 1rYhKL-0001TH-NH; Sat, 10 Feb 2024 01:59: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=LZYNNWpJGHDz9q9QgBkFctN4F02m5ynt/Kjm2LzpAqI=; b=WBIjMu+HetHu sev3wJL3Ow1MrpAbSJOsFgeJ1JMoQN34EOOJfWNxJ5F7LgY/Bd+AEl0Yo3Fi4TncsJ6XgyLkVJmC2 8unViwUEhSMFnxPR13i8BbTrPyl9QOZSkNAq0KtbGG1FzdoXiIJT9lHqVkepG6WhJoUP1HT1kGwPb ZdUg8Km/xu0tc6WbW+myWnDhnqGrmi1dinGo8pm9Swu735xBznRcwM9NYYIhiUxzg99wl2GMe2g0U oCIxve9yjC+yuVhrTr/sjW4KkJVg7DYtdmUofiDHI9SNde5WrSXgZWXu1zv26kIpVodWOvMeDwuCf n2gu6WEyl2wvwV37IZVuiA==; In-Reply-To: <1e5dc76b-5e82-4d9c-a1ac-a6104b6b1d03@alphapapa.net> (message from Adam Porter on Fri, 9 Feb 2024 12:50:54 -0600) 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:316085 Archived-At: > Date: Fri, 9 Feb 2024 12:50:54 -0600 > Cc: emacs-devel@gnu.org, schwab@suse.de > From: Adam Porter > > > Andreas Schwab : > >> On Feb 07 2024, Eric S. Raymond wrote: > >> > >> > About a week ago I noticed that my Emacs was hanging when I attempted > >> > to visit my init.el file. Then I saw the same hang when visiting an > >> > HTML file. Other modes, such as text and C modes, are working normally. > >> > >> Is it interruptable? Then you can enable debug-on-quit to see where it > >> hangs. > > > > I tried that first thing. > > > > Ctl-G after the hang does interrupt it, but doesn't yield a trace. > > > > It's a weird bug because it's so specific. Most Lisp modes are > > completely unaffected. > > This sounds like a weird behavior that I've observed ever since Emacs > 28, but I've never been able to pin it down well enough to file a report > about it. May I suggest that you, too, attach GDB to Emacs when it hangs like that, and post the backtrace? From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Eric S. Raymond" Newsgroups: gmane.emacs.devel Subject: Re: Strange hangs when visiting .el and .html files Date: Sun, 11 Feb 2024 13:05:23 -0500 Organization: Eric Conspiracy Secret Labs Message-ID: References: <20240207192829.C61B818A1F07@snark.thyrsus.com> <86r0hkvma4.fsf@gnu.org> Reply-To: esr@thyrsus.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: schwab@suse.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 11 19:06:25 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 1rZEDh-0005C1-RZ for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Feb 2024 19:06:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZECn-00021T-O7; Sun, 11 Feb 2024 13:05:29 -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 1rZECl-00021D-DS for emacs-devel@gnu.org; Sun, 11 Feb 2024 13:05:27 -0500 Original-Received: from thyrsus.com ([71.162.243.5] helo=snark.thyrsus.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZECj-0003zG-Qq; Sun, 11 Feb 2024 13:05:27 -0500 Original-Received: by snark.thyrsus.com (Postfix, from userid 1000) id 6D33718A1647; Sun, 11 Feb 2024 13:05:23 -0500 (EST) Content-Disposition: inline In-Reply-To: <86r0hkvma4.fsf@gnu.org> X-Eric-Conspiracy: There is no conspiracy Received-SPF: pass client-ip=71.162.243.5; envelope-from=esr@thyrsus.com; helo=snark.thyrsus.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316115 Archived-At: Eli Zaretskii : > > Ctl-G after the hang does interrupt it, but doesn't yield a trace. > > Do you see something in *Messages* after that C-g interrupt? Messages is clean. > Anyway, I still suggest the "attach GDB and produce backtrace" method, > it will give us more data to work with. After I make by dealine on the 15th. -- Eric S. Raymond