From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#55371: 29.0.50; lock-up in redisplay_internal Date: Wed, 11 May 2022 13:04:38 -0400 Message-ID: <87ilqcngpl.fsf@md5i.com> References: <875ymcksys.fsf@md5i.com> <83ilqcqcfi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35853"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Welsh Duggan , 55371@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 19:20:23 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1noq0c-0009DX-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 19:20:22 +0200 Original-Received: from localhost ([::1]:60926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noq0b-0003XT-9E for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 13:20:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nopln-00023F-3A for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noplm-0005sy-Q0 for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noplm-0001MF-Kv for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55371 X-GNU-PR-Package: emacs Original-Received: via spool by 55371-submit@debbugs.gnu.org id=B55371.16522886875189 (code B ref 55371); Wed, 11 May 2022 17:05:02 +0000 Original-Received: (at 55371) by debbugs.gnu.org; 11 May 2022 17:04:47 +0000 Original-Received: from localhost ([127.0.0.1]:38313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noplX-0001Lc-Ez for submit@debbugs.gnu.org; Wed, 11 May 2022 13:04:47 -0400 Original-Received: from md5i.com ([75.151.244.229]:36024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noplV-0001LN-Gg for 55371@debbugs.gnu.org; Wed, 11 May 2022 13:04:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cmdhetGkE27WrCFxbIpK6a2yXhW27I4rcpc2xVuBS0I=; b=gxXGn1rc/FPIVnWasoukm8+o9r Gvt7Hf2KLJx1F7LtRLAAIy7JCFCPJbs3npdVfWoRBk4pbAc9+ApXHu99fE3u/MjfrgA7dx/WjPiS3 8IW1tL3bG8SlBADc+f0aQtwHP; Original-Received: from abode ([192.168.177.1] helo=miko) by md5i.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1noplP-00DCYL-4A; Wed, 11 May 2022 13:04:39 -0400 In-Reply-To: <83ilqcqcfi.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 11 May 2022 19:08:49 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231966 Archived-At: Eli Zaretskii writes: >> From: Michael Welsh Duggan >> Date: Wed, 11 May 2022 11:08:11 -0400 >> >> I wrote a dbus event watcher that triggers when my network connection >> changes (for me, this is usually because I am switching to or from a >> VPN). As part of this, I call `gnus-close-all-servers` (this allows >> gnus to reconnect to servers from its new network state). In this >> particular instance, this led to a chain of events that >> redisplay_internal being called, from which Emacs became unresponsive. >> As I was running Emacs from a debugger (to potentially debug a different >> problem), I was able to send a TSTP signal, get a backtrace, and then >> used "return -1" "c" to get back in a state where I could hit C-g a >> couple of times and regain interactivity. >> >> This was a random event that may be already solved in a later version, >> and it may or may not be reproducible in the future, but I wanted to >> send the backtrace now while I had one in case any part of it was >> actually informative. > > Thanks. However, to debug such lockups, we need to know where was the > code looping. And from the backtrace and your description, I cannot > figure that out. Did you try the technique described in etc/DEBUG > under "If the symptom of the bug is that Emacs fails to respond", and > if so, can you tell which code was looping, never returning to its > caller? > >> Backtrace follows Emacs info. > > The backtrace tells me that Emacs was inside some Xlib function, > perhaps related to an input method or something? That doesn't let us > enough rope to try unlocking this. It was not looping. It was stuck in the poll call in frame 0. -- Michael Welsh Duggan (md5i@md5i.com)