From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Pedro A. Aranda" Newsgroups: gmane.emacs.devel Subject: Re: Re: Insight into the mystery hangs Date: Wed, 14 Feb 2024 09:20:38 +0100 Message-ID: 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="17362"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: eliz@gnu.org, esr@thyrsus.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 14 09:21: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 1raAWW-0004Ki-2f for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Feb 2024 09:21:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raAVa-0000tJ-23; Wed, 14 Feb 2024 03:20:46 -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 1raAVY-0000t3-Em for emacs-devel@gnu.org; Wed, 14 Feb 2024 03:20:44 -0500 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raAVW-0008OP-SV; Wed, 14 Feb 2024 03:20:44 -0500 Original-Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-411d715c401so6178575e9.1; Wed, 14 Feb 2024 00:20:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707898840; x=1708503640; darn=gnu.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=zdxJLU+3oHIEGsMPxXTKwPNjjXHeR+OsL13IwJpepew=; b=GiTxkhfTeMTCgcF1koXwuO61bw+MoGvzvmlNU8rw7SLy0BnOY5CBADesSVTPccI6G5 f5i5soDoLVHNE3NHRXO/60zB3zTs1vj+MFw+F+n0QKAJmfe7dvIj6O9WZ/TShJr59fhp HIAVz4Wv5vCna6cfAHjoukxL7d5ipo2g0bnTVhWxylvgJuLZSX6zJeq6RhA3x6i8as4r kUinut0W6+yS1Tv/BEPD2dLMb8gyDj0G1d4g0DBo5uEOAibOVR5NwGZsTgvCLI+cYTS6 H/np7hpvip8okckdOKjyWGhaE/kz+16zNvmmPPmhS3/2mf59EAq+gXUddcwvU2GcvfWa ueNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707898840; x=1708503640; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=zdxJLU+3oHIEGsMPxXTKwPNjjXHeR+OsL13IwJpepew=; b=nhnKhdkQSER+61Hj1dbvCT+TFFQFlwVfzG+xy8VIg0BxRa/dPxEGdpr81ThpBfVIyj 7nMA/J+Oq0dsE8CUAml/H0RKuOLut/XdfIU9TeZ7QnkdmquPGgMxLZGP8oevGXNq/jTl 1JuS2K7r0CakX5zfLdyQcSVm/5WS8RrYj9G0/KB8ta+/PtzcGV+kYx4BCxNYCdwX+kpx jJgwFD32wyNuIubCLCwzjonYp/ms38hYVvKIlvuVDlIGK0oSnyUHvjZgnT1RjPWG2137 ABqoi1DYm1lWIzbePfOpjOgUjp+S+Hzsgki5hSBlU2DCj571wOiYNsf4hbOFAhCHkAgN 2j0A== X-Gm-Message-State: AOJu0YxWHMlncZRrqXD3UL4tRNJeUjBPO1FUC24v7KSHWHdO8Yo0UtH0 icJHYI0hHWmc5B05Mpfl7uCwbY35n3yKP1xBuaVZgE7jyGwV8UAs4sy5zy3lu68= X-Google-Smtp-Source: AGHT+IGXbrZSzA9DBEzCgaLlPLcW5JotY7qpyVWLFgIahxnWjyoPuHrkrpHL4Xy+iz8I0fJv4bxJww== X-Received: by 2002:a5d:6043:0:b0:33c:e1df:c68f with SMTP id j3-20020a5d6043000000b0033ce1dfc68fmr1134893wrt.31.1707898839525; Wed, 14 Feb 2024 00:20:39 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCX8oQuE1W/PeKTlCF/qVaoBjwr/t9kcAPMEvZKC0ZQvMlLKcC2vMNVUcVGxnOYn2bh+bRcF3E0xRTfV0ptz8Qg= Original-Received: from [192.168.1.39] (185.red-79-148-95.dynamicip.rima-tde.net. [79.148.95.185]) by smtp.gmail.com with ESMTPSA id bt9-20020a056000080900b0033b75d0993esm10544943wrb.74.2024.02.14.00.20.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Feb 2024 00:20:39 -0800 (PST) Content-Language: es-ES, de-DE, it-IT, en-GB Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=paaguti@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:316197 Archived-At: Hi, very interesting thread. It has helped me with my "mistery hang" too ;-) Eli writes. >> Date: Mon, 12 Feb 2024 13:26:16 -0500 >> From: "Eric S. Raymond" >> Cc:emacs-devel@gnu.org >> >> Eli Zaretskii: >>> Isn't that call issued from the mode-line display? If so, that is >>> done from redisplay, and redisplay cannot enter debugger, so it >>> catches all errors. If you want to produce Lisp backtraces from Lisp >>> code called by redisplay, you need to use the facilities documented in >>> the node "Debugging Redisplay" in the ELisp Reference manual. >> 1. Thinking about it, I can see why redisplay can't be allowed to enter >> the debugger. Infinite regress... >> >> 2. I don't know if that subprocess is called from the modeline >> code. Probably, but I'd have to dig into vc.el to check. I won't have >> time for that for a few days yet. >> >> 3. Assuming that it is called from the modeline code, the question >> shifts from "Why did I have so much trouble generating a debug trace?" >> to "How could I get one at all"?" There's some kind of timing issue, >> I think. > If you eventually can get Emacs into producing a backtrace, the > facilities described in the node "Debugging Redisplay", mentioned > above, should allow you to have it saved in a special buffer that you > can then examine. The main problem I have is how much time you have to invest until you get that 'eventual' backtrace. Say time and read expertise, etc. An 'average user', if such person exists, should be able to get the basic information for the development team to move forward and "kill the bug". Having said that, I was using variable `vc-mode' in my mode-line. And when I resized emacs while editing any file (under VC or not) it would hang. Removing that and not experiencing further hangs have been one and the same thing. Just my .02 cents,/PA