GNU bug report logs - #70049
30.0.50; (server-running-p) in mode line freezes emacs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Pedro A. Aranda" <paaguti@HIDDEN>; dated Thu, 28 Mar 2024 10:46:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 70049 <at> debbugs.gnu.org:


Received: (at 70049) by debbugs.gnu.org; 1 Apr 2024 08:36:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 01 04:36:39 2024
Received: from localhost ([127.0.0.1]:49521 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rrD9i-0004bl-Ou
	for submit <at> debbugs.gnu.org; Mon, 01 Apr 2024 04:36:39 -0400
Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:45341)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paaguti@HIDDEN>) id 1rrD9h-0004ay-2d
 for 70049 <at> debbugs.gnu.org; Mon, 01 Apr 2024 04:36:37 -0400
Received: by mail-ed1-x52d.google.com with SMTP id
 4fb4d7f45d1cf-56c08d1e900so4208252a12.3
 for <70049 <at> debbugs.gnu.org>; Mon, 01 Apr 2024 01:36:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1711960588; x=1712565388; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=b8q3hVV/wcpkvn2HuLOH1fxQIG9gY0Mih3k/o8Z/Hd0=;
 b=CA0iQ96+IjQNnPQUG37ddiOf9bBcy9THxkq0BYiR+CJWrLg3/4YXezUrqySICrgXMM
 CdxR6XwsqcoByqDNVlCt3yWf9M3V3dhrS1AlsaJttOeUQNexoEwaamPq97X4yGM65bcS
 lI7PHPzkIvUfdVvJCXJWXu+8DR5GGs8UAB2lD+ho78J09LPlUfQ5JotGfCcgEMW4GUIM
 4woAtBAXQBrWxXMpYv6k0kNv9/F/rVti6kVIfk0P9JYnyw3REzAdZKlzapC59FzhMR6Z
 NoJloDsSzvmNAQMq6x6tvlMcs7RGMx3NTaoAhNiNkbDGzv227sa4Jd2BBkR55xa3Um2q
 WjYA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1711960588; x=1712565388;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=b8q3hVV/wcpkvn2HuLOH1fxQIG9gY0Mih3k/o8Z/Hd0=;
 b=cHUGgoss2Ziqz+/mmyq28aA8WxSF0/PWdIGeyWjM1EKY2QFOPmGPZwRZHH2tW9dqcd
 ZDTuitEe0qwghUfW//nDt741ePPycmcUDHA/R1KXinwOgPg1sg0V41Xe3epENDhVSrSk
 rra+g1nN5CPdb85cHSFUPeroOTW8PfgKKQKPhTCAyeg02vOBpa0wq0PWuhp/NkBbioNt
 LZLwOzJuINAPYeIrZmUq788hPSjRH5PmfaiuSFmrLYBUm4PHAj+NxjJvArec0KBfgQ66
 h9L7WZ5JBE3gLqT1/Vn4vDyvnDWWDb9ZY4u/h0udUyk0+QV73K+MDyfvyH8PuUQoBq1f
 8CHw==
X-Gm-Message-State: AOJu0YypSS92WmA7Sk95IpYVZMjz9Xhi2w/IeUhY1ebtljJwWpgPpAqF
 SoNErMXHqi+lOXMJnX/TJe6BSz9wS2eJEmgYCRYcXPud10u30x0JegPuZcIbVdCO4Ux1x6WqmMh
 996lsaCaWbRqPfXuARjOyKEtRmZzMm9FR
X-Google-Smtp-Source: AGHT+IFo0i+U9TmustP2Pg+Oafk9XVFPq4PT5ZzyJi1QmdSzioY22W/9mzWjuXvLFOgQ6uZ/aldIy5NVAT+FDIuyz6o=
X-Received: by 2002:a50:8d1d:0:b0:56b:a7e3:7426 with SMTP id
 s29-20020a508d1d000000b0056ba7e37426mr5323801eds.34.1711960587981; Mon, 01
 Apr 2024 01:36:27 -0700 (PDT)
MIME-Version: 1.0
References: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
 <8634sah952.fsf@HIDDEN>
 <CAO48Bk9Hig2i0a4Tcq8njLNgNa-bwFk-UpWUXDsv2V_0xywM9A@HIDDEN>
 <86jzlmfhl5.fsf@HIDDEN>
 <CAO48Bk-mdJwtCy4wNY3FJHM3VPgMn2ePcVCsQm5GqHpEB5FmzA@HIDDEN>
 <867chlfrwt.fsf@HIDDEN>
 <CAO48Bk9pmY4scbzCccrnJO5Ajx2f1UMR00e7GYKVT9Qis5zEEA@HIDDEN>
In-Reply-To: <CAO48Bk9pmY4scbzCccrnJO5Ajx2f1UMR00e7GYKVT9Qis5zEEA@HIDDEN>
From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
Date: Mon, 1 Apr 2024 10:36:01 +0200
Message-ID: <CAO48Bk9teoJ1Odwhu-a8i3RECf_bfsTnuBckpErJ=LC1rvEzWA@HIDDEN>
Subject: Re: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000b75cb9061504e2df"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70049
Cc: 70049 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000b75cb9061504e2df
Content-Type: text/plain; charset="UTF-8"

Followed all the steps, and crashed emacs but bt doesn't print out
anything...

Sorry, /PA

On Fri, 29 Mar 2024 at 08:09, Pedro Andres Aranda Gutierrez <
paaguti@HIDDEN> wrote:

> Hi Eli,
>
> that may tabe a bit longer... I'm creating a .deb in a VM which I then
> install on my system(s).
> But on it!
>
> Best, /PA
>
> On Fri, 29 Mar 2024 at 07:55, Eli Zaretskii <eliz@HIDDEN> wrote:
>
>> > From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
>> > Date: Fri, 29 Mar 2024 07:37:32 +0100
>> > Cc: 70049 <at> debbugs.gnu.org
>> >
>> >  Can you look at the CPU meter and tell if Emacs consumes CPU in this
>> >  state or not?
>> >
>> > I've fired up the system monitor on my Ubuntu 22.04. waited the CPU
>> curves stabilised before activating
>> > server-mode,
>> > then waited again until everything was quiet again and then resized
>> Emacs to trigger the 'Emacs is not
>> > responding'
>> > dialog. There was no significant raise in CPU or memory consumption.
>> Then repeated the same with the
>> > process tab
>> > and couldn't detect any significant change.
>>
>> OK, thanks.  This means Emacs is waiting for something.
>>
>> Can you provide the GDB backtrace from this situation?  To do this,
>> repeat your sequence that causes Emacs to freeze, then do the
>> following from a separate shell prompt:
>>
>>   $ cd /path/to/emacs/src
>>   $ gdb -p PID
>>   GNU gdb (GDB) XY.Z
>>   Copyright (C) NNNN Free Software Foundation, Inc.
>>   ...
>>   (gdb) source .gdbinit
>>   (gdb) thread apply all bt
>>
>> where PID is the process ID of the frozen Emacs process, and
>> /path/to/emacs/src is the absolute file name of the directory where
>> you have the Emacs C source files -- there is a .gdbinit file there
>> which will cause GDB to produce both C and Lisp backtrace when you
>> type the "bt" command at the (gdb) prompt.
>>
>> Then post the results here.
>>
>> Thanks.
>>
>
>
> --
> Fragen sind nicht da, um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
> Headaches with a Juju log:
> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
> a leader-deposed hook here, but we can't yet
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

--000000000000b75cb9061504e2df
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Followed all the steps, and crashed emacs but bt doesn&#39=
;t print out anything...<div><br></div><div>Sorry, /PA</div></div><br><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, 29 Mar =
2024 at 08:09, Pedro Andres Aranda Gutierrez &lt;<a href=3D"mailto:paaguti@=
gmail.com">paaguti@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex"><div dir=3D"ltr">Hi Eli,=C2=A0<div><br></div><d=
iv>that may tabe a bit longer... I&#39;m creating a .deb in a VM which I th=
en install on my system(s).<div>But on it!</div></div><div><br></div><div>B=
est, /PA</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Fri, 29 Mar 2024 at 07:55, Eli Zaretskii &lt;<a href=3D"=
mailto:eliz@HIDDEN" target=3D"_blank">eliz@HIDDEN</a>&gt; wrote:<br></div=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; From: Pedro Andres =
Aranda Gutierrez &lt;<a href=3D"mailto:paaguti@HIDDEN" target=3D"_blank"=
>paaguti@HIDDEN</a>&gt;<br>
&gt; Date: Fri, 29 Mar 2024 07:37:32 +0100<br>
&gt; Cc: <a href=3D"mailto:70049 <at> debbugs.gnu.org" target=3D"_blank">70049@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt;=C2=A0 Can you look at the CPU meter and tell if Emacs consumes CPU in =
this<br>
&gt;=C2=A0 state or not?<br>
&gt; <br>
&gt; I&#39;ve fired up the system monitor on my Ubuntu 22.04. waited the CP=
U curves stabilised before activating<br>
&gt; server-mode, <br>
&gt; then waited again until everything was quiet again and then resized Em=
acs to trigger the &#39;Emacs is not<br>
&gt; responding&#39;<br>
&gt; dialog. There was no significant raise in CPU or memory consumption. T=
hen repeated the same with the<br>
&gt; process tab<br>
&gt; and couldn&#39;t detect any significant change.<br>
<br>
OK, thanks.=C2=A0 This means Emacs is waiting for something.<br>
<br>
Can you provide the GDB backtrace from this situation?=C2=A0 To do this,<br=
>
repeat your sequence that causes Emacs to freeze, then do the<br>
following from a separate shell prompt:<br>
<br>
=C2=A0 $ cd /path/to/emacs/src<br>
=C2=A0 $ gdb -p PID<br>
=C2=A0 GNU gdb (GDB) XY.Z<br>
=C2=A0 Copyright (C) NNNN Free Software Foundation, Inc.<br>
=C2=A0 ...<br>
=C2=A0 (gdb) source .gdbinit<br>
=C2=A0 (gdb) thread apply all bt<br>
<br>
where PID is the process ID of the frozen Emacs process, and<br>
/path/to/emacs/src is the absolute file name of the directory where<br>
you have the Emacs C source files -- there is a .gdbinit file there<br>
which will cause GDB to produce both C and Lisp backtrace when you<br>
type the &quot;bt&quot; command at the (gdb) prompt.<br>
<br>
Then post the results here.<br>
<br>
Thanks.<br>
</blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um bea=
ntwortet zu werden,<br></div>Fragen sind da um gestellt zu werden<br></div>=
Georg Kreisler</div><div><br></div><div>Headaches with a Juju log:</div><di=
v>unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru=
n a leader-deposed hook here, but we can&#39;t yet<br><br></div></div></div=
></div>
</blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um bea=
ntwortet zu werden,<br></div>Fragen sind da um gestellt zu werden<br></div>=
Georg Kreisler</div><div><br></div><div>Headaches with a Juju log:</div><di=
v>unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru=
n a leader-deposed hook here, but we can&#39;t yet<br><br></div></div></div=
></div>

--000000000000b75cb9061504e2df--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.

Message received at 70049 <at> debbugs.gnu.org:


Received: (at 70049) by debbugs.gnu.org; 29 Mar 2024 07:10:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 29 03:10:18 2024
Received: from localhost ([127.0.0.1]:41595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rq6NU-0002xZ-KW
	for submit <at> debbugs.gnu.org; Fri, 29 Mar 2024 03:10:18 -0400
Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:43388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paaguti@HIDDEN>) id 1rq6NO-0002wB-WE
 for 70049 <at> debbugs.gnu.org; Fri, 29 Mar 2024 03:10:14 -0400
Received: by mail-ed1-x536.google.com with SMTP id
 4fb4d7f45d1cf-565c6cf4819so4644665a12.1
 for <70049 <at> debbugs.gnu.org>; Fri, 29 Mar 2024 00:10:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1711696203; x=1712301003; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=wNTIOEQtjtYXiw+YP3ArUa6KbZ3T/WhTL003YPlPa9Y=;
 b=bwHhfy79thZ5w8N95c4LOlLffveL+EcIffOGGNtxWdMYjF/ywlsdMU9WyoylsZXXjZ
 MdIv8Q6a9XwhzjC2//HTnvLtu5AgAwxO5ZvXoSvElznZnOLsGwsnDX0SDJokjkrs9TEp
 xX54oHuoIly0/DhTBu0fEib49lsoF6RM7WX5bLTjWkBUPWqVEACjEbROuUJjLEpB45Uf
 HCJbA/KsbR3o28Gd1sB15Ww1AuoYl/41ShasF6qNTTQeY2lw+ZMKQu0rwJJBvQeLmasM
 7PPZVZ+sEG8I168JKuxyTCe4lekttIOC12FUrU7qG6fb0g4h1FL8ylk4t8D9gSQqOi9e
 DhDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1711696203; x=1712301003;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=wNTIOEQtjtYXiw+YP3ArUa6KbZ3T/WhTL003YPlPa9Y=;
 b=BTi+PQkYqz+VKnvuK/ArPt8kEmUPHOqpKgyPu/ppY3KTjNS99xXWhuXvpCemhLCagb
 Ib0wxHITCHDOtI1iEYl9IGxhvX2JE4WMAE0iJ5OS3yIeTiMrszC10G2eC2/e5YG4F6p9
 4a0mkWCyCUZtRtnN6bRLylb4wve0o51Kw5/tqUF20PkC+8fWNohKV8vViSNmzkdfjNCf
 1M7PqOybqfGcDGP6OUB6/Njp0dhA9PyH+g5y1hqWYeODw+VD2Aqo4K3W9Hnuochr70bT
 w7Be/W0VZmFVNtNKEFrZbjp0CSdoaGleRZJ5MfiXdeFRVI2EDz2w2mTzqbeUid4ECQNq
 ftuQ==
X-Gm-Message-State: AOJu0YyR+HtbRb9ETcLu4mymAnaSyFv51H/eL6lT8bT/vg8QzzZvsgX+
 9XFJ6go7VCjgcHKNndJ/N7asCVBZxR5RnReBa8q8gT6h4Lu7GpGh9V3i6IvtkazYEXIWqMSY9O5
 /rfX54LoxRU2KceYUPgH+me/rxUM=
X-Google-Smtp-Source: AGHT+IHQYq8vjdmOuqI7R06iHlHvuEWzynsO17cWuoewhbCQCp8vsLNz0z2ZfdLr1VUY2/1v5QSo6p77Vw8tGr1sAk4=
X-Received: by 2002:a05:6402:26c3:b0:56c:16c9:cb00 with SMTP id
 x3-20020a05640226c300b0056c16c9cb00mr1621564edd.12.1711696203249; Fri, 29 Mar
 2024 00:10:03 -0700 (PDT)
MIME-Version: 1.0
References: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
 <8634sah952.fsf@HIDDEN>
 <CAO48Bk9Hig2i0a4Tcq8njLNgNa-bwFk-UpWUXDsv2V_0xywM9A@HIDDEN>
 <86jzlmfhl5.fsf@HIDDEN>
 <CAO48Bk-mdJwtCy4wNY3FJHM3VPgMn2ePcVCsQm5GqHpEB5FmzA@HIDDEN>
 <867chlfrwt.fsf@HIDDEN>
In-Reply-To: <867chlfrwt.fsf@HIDDEN>
From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
Date: Fri, 29 Mar 2024 08:09:37 +0100
Message-ID: <CAO48Bk9pmY4scbzCccrnJO5Ajx2f1UMR00e7GYKVT9Qis5zEEA@HIDDEN>
Subject: Re: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000287f3e0614c7546f"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70049
Cc: 70049 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000287f3e0614c7546f
Content-Type: text/plain; charset="UTF-8"

Hi Eli,

that may tabe a bit longer... I'm creating a .deb in a VM which I then
install on my system(s).
But on it!

Best, /PA

On Fri, 29 Mar 2024 at 07:55, Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
> > Date: Fri, 29 Mar 2024 07:37:32 +0100
> > Cc: 70049 <at> debbugs.gnu.org
> >
> >  Can you look at the CPU meter and tell if Emacs consumes CPU in this
> >  state or not?
> >
> > I've fired up the system monitor on my Ubuntu 22.04. waited the CPU
> curves stabilised before activating
> > server-mode,
> > then waited again until everything was quiet again and then resized
> Emacs to trigger the 'Emacs is not
> > responding'
> > dialog. There was no significant raise in CPU or memory consumption.
> Then repeated the same with the
> > process tab
> > and couldn't detect any significant change.
>
> OK, thanks.  This means Emacs is waiting for something.
>
> Can you provide the GDB backtrace from this situation?  To do this,
> repeat your sequence that causes Emacs to freeze, then do the
> following from a separate shell prompt:
>
>   $ cd /path/to/emacs/src
>   $ gdb -p PID
>   GNU gdb (GDB) XY.Z
>   Copyright (C) NNNN Free Software Foundation, Inc.
>   ...
>   (gdb) source .gdbinit
>   (gdb) thread apply all bt
>
> where PID is the process ID of the frozen Emacs process, and
> /path/to/emacs/src is the absolute file name of the directory where
> you have the Emacs C source files -- there is a .gdbinit file there
> which will cause GDB to produce both C and Lisp backtrace when you
> type the "bt" command at the (gdb) prompt.
>
> Then post the results here.
>
> Thanks.
>


-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

--000000000000287f3e0614c7546f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Eli,=C2=A0<div><br></div><div>that may tabe a bit longe=
r... I&#39;m creating a .deb in a VM which I then install on my system(s).<=
div>But on it!</div></div><div><br></div><div>Best, /PA</div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, 29 Mar=
 2024 at 07:55, Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@gnu.=
org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x">&gt; From: Pedro Andres Aranda Gutierrez &lt;<a href=3D"mailto:paaguti@g=
mail.com" target=3D"_blank">paaguti@HIDDEN</a>&gt;<br>
&gt; Date: Fri, 29 Mar 2024 07:37:32 +0100<br>
&gt; Cc: <a href=3D"mailto:70049 <at> debbugs.gnu.org" target=3D"_blank">70049@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt;=C2=A0 Can you look at the CPU meter and tell if Emacs consumes CPU in =
this<br>
&gt;=C2=A0 state or not?<br>
&gt; <br>
&gt; I&#39;ve fired up the system monitor on my Ubuntu 22.04. waited the CP=
U curves stabilised before activating<br>
&gt; server-mode, <br>
&gt; then waited again until everything was quiet again and then resized Em=
acs to trigger the &#39;Emacs is not<br>
&gt; responding&#39;<br>
&gt; dialog. There was no significant raise in CPU or memory consumption. T=
hen repeated the same with the<br>
&gt; process tab<br>
&gt; and couldn&#39;t detect any significant change.<br>
<br>
OK, thanks.=C2=A0 This means Emacs is waiting for something.<br>
<br>
Can you provide the GDB backtrace from this situation?=C2=A0 To do this,<br=
>
repeat your sequence that causes Emacs to freeze, then do the<br>
following from a separate shell prompt:<br>
<br>
=C2=A0 $ cd /path/to/emacs/src<br>
=C2=A0 $ gdb -p PID<br>
=C2=A0 GNU gdb (GDB) XY.Z<br>
=C2=A0 Copyright (C) NNNN Free Software Foundation, Inc.<br>
=C2=A0 ...<br>
=C2=A0 (gdb) source .gdbinit<br>
=C2=A0 (gdb) thread apply all bt<br>
<br>
where PID is the process ID of the frozen Emacs process, and<br>
/path/to/emacs/src is the absolute file name of the directory where<br>
you have the Emacs C source files -- there is a .gdbinit file there<br>
which will cause GDB to produce both C and Lisp backtrace when you<br>
type the &quot;bt&quot; command at the (gdb) prompt.<br>
<br>
Then post the results here.<br>
<br>
Thanks.<br>
</blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um bea=
ntwortet zu werden,<br></div>Fragen sind da um gestellt zu werden<br></div>=
Georg Kreisler</div><div><br></div><div>Headaches with a Juju log:</div><di=
v>unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru=
n a leader-deposed hook here, but we can&#39;t yet<br><br></div></div></div=
></div>

--000000000000287f3e0614c7546f--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.

Message received at 70049 <at> debbugs.gnu.org:


Received: (at 70049) by debbugs.gnu.org; 29 Mar 2024 06:56:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 29 02:56:02 2024
Received: from localhost ([127.0.0.1]:41585 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rq69i-0001zP-4U
	for submit <at> debbugs.gnu.org; Fri, 29 Mar 2024 02:56:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50544)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rq69e-0001ys-2W
 for 70049 <at> debbugs.gnu.org; Fri, 29 Mar 2024 02:56:00 -0400
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 <eliz@HIDDEN>)
 id 1rq69X-0006ga-3I; Fri, 29 Mar 2024 02:55:51 -0400
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=rC8oQbW/haemnIQC6/huw0bLYnDy8aIktBL7TAvCtH0=; b=ej5gw9ZGw9S+
 WLawjrbDrDWt66/Pa+rx+uAtyBc2vIh6AFTDxgU1FvwsHUP8DcESXPwmqh66nufoxbsE43WzGrqSQ
 aq0XI6mpX1UrcAsfAqNuQ4G69F7/eliGR8/9p6BC8kyfYtRECsAwQEvnpMyDYZa6dicd+RlRLT68y
 kb5oDymxZjcHEUbkkXHbnZ6XoNhBiIehrthpqiLvC9akGZWOqgauhzJUMAncafc5yRnfCTIH01H55
 IUuYGZobH8Dti+IDwMWLjTfxOgpNe2DDK0wQEprUWLezjHmc85VDBsUe0EhB75WyB3m7sG2EtXNvX
 YXW+GbTs02tSvhBZywcbhw==;
Date: Fri, 29 Mar 2024 09:55:46 +0300
Message-Id: <867chlfrwt.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
In-Reply-To: <CAO48Bk-mdJwtCy4wNY3FJHM3VPgMn2ePcVCsQm5GqHpEB5FmzA@HIDDEN>
 (message from Pedro Andres Aranda Gutierrez on Fri, 29 Mar 2024
 07:37:32 +0100)
Subject: Re: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
References: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
 <8634sah952.fsf@HIDDEN>
 <CAO48Bk9Hig2i0a4Tcq8njLNgNa-bwFk-UpWUXDsv2V_0xywM9A@HIDDEN>
 <86jzlmfhl5.fsf@HIDDEN>
 <CAO48Bk-mdJwtCy4wNY3FJHM3VPgMn2ePcVCsQm5GqHpEB5FmzA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70049
Cc: 70049 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
> Date: Fri, 29 Mar 2024 07:37:32 +0100
> Cc: 70049 <at> debbugs.gnu.org
> 
>  Can you look at the CPU meter and tell if Emacs consumes CPU in this
>  state or not?
> 
> I've fired up the system monitor on my Ubuntu 22.04. waited the CPU curves stabilised before activating
> server-mode, 
> then waited again until everything was quiet again and then resized Emacs to trigger the 'Emacs is not
> responding'
> dialog. There was no significant raise in CPU or memory consumption. Then repeated the same with the
> process tab
> and couldn't detect any significant change.

OK, thanks.  This means Emacs is waiting for something.

Can you provide the GDB backtrace from this situation?  To do this,
repeat your sequence that causes Emacs to freeze, then do the
following from a separate shell prompt:

  $ cd /path/to/emacs/src
  $ gdb -p PID
  GNU gdb (GDB) XY.Z
  Copyright (C) NNNN Free Software Foundation, Inc.
  ...
  (gdb) source .gdbinit
  (gdb) thread apply all bt

where PID is the process ID of the frozen Emacs process, and
/path/to/emacs/src is the absolute file name of the directory where
you have the Emacs C source files -- there is a .gdbinit file there
which will cause GDB to produce both C and Lisp backtrace when you
type the "bt" command at the (gdb) prompt.

Then post the results here.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.

Message received at 70049 <at> debbugs.gnu.org:


Received: (at 70049) by debbugs.gnu.org; 29 Mar 2024 06:38:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 29 02:38:11 2024
Received: from localhost ([127.0.0.1]:41575 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rq5sQ-00012r-ER
	for submit <at> debbugs.gnu.org; Fri, 29 Mar 2024 02:38:10 -0400
Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:44342)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paaguti@HIDDEN>) id 1rq5sM-00011f-9t
 for 70049 <at> debbugs.gnu.org; Fri, 29 Mar 2024 02:38:08 -0400
Received: by mail-ed1-x533.google.com with SMTP id
 4fb4d7f45d1cf-56c4ca65dc6so2063820a12.1
 for <70049 <at> debbugs.gnu.org>; Thu, 28 Mar 2024 23:38:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1711694279; x=1712299079; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=aUsekzzkO45NfnkLe2iERXt87y2MppihJ7m5jzJg0y0=;
 b=Bb2RnWXN6lpgwWVkXyvmjbXw0diprcbt1wS76SB+1WCPvvZKGDrL77dIA7EL3pzJhN
 aGXYe5DPYTfSiLC5oPEiM8oj+KdEHUGiqEv6i1snbg5B/+ZwMvsxyrjIkfrQLVrzosCE
 3w4sgatQmJwr93dB82CBkMtklotdQQWqILE9RT367cBaCoZ+GF5vzzAmXH7BmJbH7UT9
 /aNpruIF1eJv/giako/6dCNiG8/VAUAhlBSeeRydMCCqtrdNOej77y3cry54yshpIbNr
 L5DJB0Y/4PfLWA74C0B5KatGLaIVVBoWKHeaQk2YGcff2uKjWZ/piMdCcY31yIBv2hSz
 Vxkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1711694279; x=1712299079;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=aUsekzzkO45NfnkLe2iERXt87y2MppihJ7m5jzJg0y0=;
 b=ZkH+WbnLlMe14dP+97PMNJEdRl8/kXIe+vWdsuKzFgfbKuwyKfD/63qR25d+XoN5Lo
 6BjZFb8h2EvVLtoZTNuT8XQwiIZfITRhVyZxL3CXpbJHl2KWvc43vWOblb1aa95qt1yU
 1yxtPWbKddmpbA9U7Yk7kDTh/Hl1F8A0ikjoyTueiEmXLa/mlPWPy/pPFTbBq4lWd3J6
 cnSJl8SGk4PO2rIvlaXVDAJWwgQXJb46uJdlrdhTg9MGFYS5AEhuiFaImJBfo9cvb5ru
 gkyNuUUuhuldk/HAJPTFEEQSu8CEi+JQM01SJvPv+xymnQq69ksONAXVk2dteyUJArI1
 qLGA==
X-Gm-Message-State: AOJu0YxPz2SBR5+imHCflDIv+TAIQYQLhYegdRJwsV4dmlSSwfV0CZqk
 0iO7KMFnyN63nyoqP8bGjq9Kb9OigwJ91ygB6ac9QnlTR9wXKc8FqeSUqBPQuIC6QHbP/cAdC7/
 Q+Yv3lijZsyZ3FGRLT1o5twE4wHw=
X-Google-Smtp-Source: AGHT+IEE+Z21ANhDUFZZI1tbI7hZhjBcZyZ5l9wJgYDjAQGG2j5dGfNua3wlEVUFiqHeErHBfwq+A5ZC4oqdsF0oLKk=
X-Received: by 2002:a50:ccc3:0:b0:56b:9f82:4a40 with SMTP id
 b3-20020a50ccc3000000b0056b9f824a40mr875895edj.11.1711694279128; Thu, 28 Mar
 2024 23:37:59 -0700 (PDT)
MIME-Version: 1.0
References: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
 <8634sah952.fsf@HIDDEN>
 <CAO48Bk9Hig2i0a4Tcq8njLNgNa-bwFk-UpWUXDsv2V_0xywM9A@HIDDEN>
 <86jzlmfhl5.fsf@HIDDEN>
In-Reply-To: <86jzlmfhl5.fsf@HIDDEN>
From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
Date: Fri, 29 Mar 2024 07:37:32 +0100
Message-ID: <CAO48Bk-mdJwtCy4wNY3FJHM3VPgMn2ePcVCsQm5GqHpEB5FmzA@HIDDEN>
Subject: Re: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000078bfcb0614c6e1dc"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70049
Cc: 70049 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000078bfcb0614c6e1dc
Content-Type: text/plain; charset="UTF-8"

Hi

On Thu, 28 Mar 2024 at 17:26, Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
> > Date: Thu, 28 Mar 2024 17:03:36 +0100
> > Cc: 70049 <at> debbugs.gnu.org
> >
> > When I say freeze, I mean it becomes irresponsive and does not respond
> to Ctrl-G and GNOME detects the
> > situation, opening a 'force quit' dialog. It also happens in macOS, and
> there I can only force quit emacs. I've
> > opened this bug, because there was something similar around putting a VC
> indicator in the mode-line.
>
> Can you look at the CPU meter and tell if Emacs consumes CPU in this
> state or not?
>
I've fired up the system monitor on my Ubuntu 22.04. waited the CPU curves
stabilised before activating server-mode,
then waited again until everything was quiet again and then resized Emacs
to trigger the 'Emacs is not responding'
dialog. There was no significant raise in CPU or memory consumption. Then
repeated the same with the process tab
and couldn't detect any significant change.

> It might not be solvable, but at least I think it is worth discussing and
> documenting. Who knows if this could
> > not end in a DONT-DO sort of document, which might also be of some merit
> and use.
>
> Sure, we are discussing it and trying to figure out what causes this.
>
 If I can be of any help, just let me know.

Best, /PA
-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

--00000000000078bfcb0614c6e1dc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi</div><br><div class=3D"gmail_quote"><div dir=3D"lt=
r" class=3D"gmail_attr">On Thu, 28 Mar 2024 at 17:26, Eli Zaretskii &lt;<a =
href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex">&gt; From: Pedro Andres Aranda Gut=
ierrez &lt;<a href=3D"mailto:paaguti@HIDDEN" target=3D"_blank">paaguti@g=
mail.com</a>&gt;<br>
&gt; Date: Thu, 28 Mar 2024 17:03:36 +0100<br>
&gt; Cc: <a href=3D"mailto:70049 <at> debbugs.gnu.org" target=3D"_blank">70049@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; When I say freeze, I mean it becomes irresponsive and does not respond=
 to Ctrl-G and GNOME detects the<br>
&gt; situation, opening a &#39;force quit&#39; dialog. It also happens in m=
acOS, and there I can only force quit emacs. I&#39;ve<br>
&gt; opened this bug, because there was something similar around putting a =
VC indicator in the mode-line. <br>
<br>
Can you look at the CPU meter and tell if Emacs consumes CPU in this<br>
state or not?<br></blockquote><div>I&#39;ve fired up the system monitor on =
my Ubuntu 22.04. waited the CPU curves stabilised before activating server-=
mode,=C2=A0</div><div>then waited again until everything was quiet again an=
d then resized Emacs to trigger the &#39;Emacs is not responding&#39;</div>=
<div>dialog. There was no significant raise in CPU or memory consumption. T=
hen repeated the same with the process tab</div><div>and couldn&#39;t detec=
t any significant change.</div><div><br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">&gt; It might not be solvable, but at least I think it=
 is worth discussing and documenting. Who knows if this could<br>
&gt; not end in a DONT-DO sort of document, which might also be of some mer=
it and use.<br>
<br>
Sure, we are discussing it and trying to figure out what causes this.<br></=
blockquote><div>=C2=A0If I can be of any help, just let me know.</div></div=
><br clear=3D"all"><div>Best, /PA</div><span class=3D"gmail_signature_prefi=
x">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr=
"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um beantwortet zu w=
erden,<br></div>Fragen sind da um gestellt zu werden<br></div>Georg Kreisle=
r</div><div><br></div><div>Headaches with a Juju log:</div><div>unit-basic-=
16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-de=
posed hook here, but we can&#39;t yet<br><br></div></div></div></div></div>

--00000000000078bfcb0614c6e1dc--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.

Message received at 70049 <at> debbugs.gnu.org:


Received: (at 70049) by debbugs.gnu.org; 28 Mar 2024 16:26:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 12:26:45 2024
Received: from localhost ([127.0.0.1]:41017 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpsaT-0006Fk-3i
	for submit <at> debbugs.gnu.org; Thu, 28 Mar 2024 12:26:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rpsaO-0006FP-1g
 for 70049 <at> debbugs.gnu.org; Thu, 28 Mar 2024 12:26:43 -0400
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 <eliz@HIDDEN>)
 id 1rpsaH-0000ac-Sz; Thu, 28 Mar 2024 12:26:33 -0400
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=hU4yvkw2chgo2LT9a+rPN7Df/6wWjJZkcWmpxPQWVDM=; b=bkfhQe36ZaTD
 KX4PzgBDNpDEw9VX6i62nNHRz8axQhTUaqaF75TQvcBt4oG8zPAehTOotGh+N+dodzkues2mCv3HM
 lEhT02ZzSHlbP3D8yG4jW8GQMZxt7qCPqY9Gs8AUF98nY5pbWedDpjUd0leN/X6u0djSfDklOKyj1
 WGDSTSKtWFi8qFtoo+z5bQ184EotiVN5qnAFcZoUPfcgKM3DILlwEDBihqMhhf21yl8ZuJkSvFoYp
 H7ORPIpsrcl7UZlJQbsrWa8Y5fIlaT5C9YCrkMfPaI2myoPQ+UxZ8tm36wdTSA8Yn9PBs73njGLwX
 KYlbpbdQL+ZMZxW9db6sFg==;
Date: Thu, 28 Mar 2024 18:26:30 +0200
Message-Id: <86jzlmfhl5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
In-Reply-To: <CAO48Bk9Hig2i0a4Tcq8njLNgNa-bwFk-UpWUXDsv2V_0xywM9A@HIDDEN>
 (message from Pedro Andres Aranda Gutierrez on Thu, 28 Mar 2024
 17:03:36 +0100)
Subject: Re: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
References: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
 <8634sah952.fsf@HIDDEN>
 <CAO48Bk9Hig2i0a4Tcq8njLNgNa-bwFk-UpWUXDsv2V_0xywM9A@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70049
Cc: 70049 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
> Date: Thu, 28 Mar 2024 17:03:36 +0100
> Cc: 70049 <at> debbugs.gnu.org
> 
> When I say freeze, I mean it becomes irresponsive and does not respond to Ctrl-G and GNOME detects the
> situation, opening a 'force quit' dialog. It also happens in macOS, and there I can only force quit emacs. I've
> opened this bug, because there was something similar around putting a VC indicator in the mode-line. 

Can you look at the CPU meter and tell if Emacs consumes CPU in this
state or not?

> It might not be solvable, but at least I think it is worth discussing and documenting. Who knows if this could
> not end in a DONT-DO sort of document, which might also be of some merit and use.

Sure, we are discussing it and trying to figure out what causes this.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.

Message received at 70049 <at> debbugs.gnu.org:


Received: (at 70049) by debbugs.gnu.org; 28 Mar 2024 16:04:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 12:04:12 2024
Received: from localhost ([127.0.0.1]:40982 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpsEe-0005HW-3u
	for submit <at> debbugs.gnu.org; Thu, 28 Mar 2024 12:04:12 -0400
Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:58740)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paaguti@HIDDEN>) id 1rpsEb-0005HF-9M
 for 70049 <at> debbugs.gnu.org; Thu, 28 Mar 2024 12:04:11 -0400
Received: by mail-lf1-x129.google.com with SMTP id
 2adb3069b0e04-513d599dbabso1449737e87.1
 for <70049 <at> debbugs.gnu.org>; Thu, 28 Mar 2024 09:04:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1711641842; x=1712246642; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=hd/4Jyn7PN3k6ZuhlujX1cx6iqKT0wmDPItDZx0g2C8=;
 b=GS3ZVANTLy8VXeBKKZItPrzvutFWyLqNrAqbVhJiEHKYRTFxYjwkcS77Y9PKiv8+ry
 cnKsWO+VogNLNQ5sxk/4tfARDqwdt+pWmowZQx4CNSMJp1p96fWwL0Nd2ssmxC0GzOAP
 /EpzV2vw5BGtMCm2XyKbLJC32+A89llAPoOBphbPjQxXxyYxxyXJvx6YMCAKnCyaqkmZ
 B10voc4rlyYFYmMrAGD9f+A+WUjkdJIETedwdP4E9E2mJ8eoiZcTQERaJ0eAc+1Vbyc7
 kH/8KDwZ13G+ClheOm/ZqnuOkh6giGIAs31LiXAzUg44ijEg7MBG3+S15EYiUB1t5hTX
 cqmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1711641842; x=1712246642;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=hd/4Jyn7PN3k6ZuhlujX1cx6iqKT0wmDPItDZx0g2C8=;
 b=sAIiT33wFA17mOutLZnimxL1ZTNNKQEaePZ4pEXv2P3M295SClpgzxTObm6/3CyePq
 WkPJRgEfc3y6/Z3FJbwNkDH7aCfVeWZ6VOef9vS/BrW8vl9mTflyWNTRTnMvgEQcJyxO
 BpsoBMkp4PPyyqnPBsgKA23DOSeAr/YTNu6vssSEUFkQM61ue0YzNk8ibfCrgBRPP1ev
 Ecu3amUoN5urJfh0AmNaabpGN1QbtPiuqplM/xsLK5p9N8jacJrGVc4Mefur9pqbYjiD
 VP5iGQq37xpbaraelCyY02b29YFONGPYx/qBNV2lz9BPpl4kScAmqdUJQhTyUf5A0jZ7
 oSCg==
X-Gm-Message-State: AOJu0YyuvyO5tLcqpFJzj7KdX8XsFjD792xvFDiCwbEJFEgUWfwNSFcI
 mg9W7ZXOTg3GGa+rvR14tD+9lxWmGZA5gncKGnY375RgHj0Ieg0Ml8y06NFSTg7CY0BEpuGjXr7
 iCWthu1/+CNatyAbdyOx3oz2lJSo=
X-Google-Smtp-Source: AGHT+IFXbakrAB8Bva2WjUu+qUKcuhYmZR/JfM7RIiZr0M28AmWYTE6IRdslTv3Hosxv6noyHXMWTOeKrL+iNeuJmK4=
X-Received: by 2002:a05:6512:605:b0:515:c17e:ddb1 with SMTP id
 b5-20020a056512060500b00515c17eddb1mr2274392lfe.50.1711641842260; Thu, 28 Mar
 2024 09:04:02 -0700 (PDT)
MIME-Version: 1.0
References: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
 <8634sah952.fsf@HIDDEN>
In-Reply-To: <8634sah952.fsf@HIDDEN>
From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
Date: Thu, 28 Mar 2024 17:03:36 +0100
Message-ID: <CAO48Bk9Hig2i0a4Tcq8njLNgNa-bwFk-UpWUXDsv2V_0xywM9A@HIDDEN>
Subject: Re: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000fda9f90614baab8d"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70049
Cc: 70049 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000fda9f90614baab8d
Content-Type: text/plain; charset="UTF-8"

Hey,

When I say freeze, I mean it becomes irresponsive and does not respond to
Ctrl-G and GNOME detects the situation, opening a 'force quit' dialog. It
also happens in macOS, and there I can only force quit emacs. I've opened
this bug, because there was something similar around putting a VC indicator
in the mode-line.

It might not be solvable, but at least I think it is worth discussing and
documenting. Who knows if this could not end in a DONT-DO sort of document,
which might also be of some merit and use.

Happy easter, /PA


On Thu, 28 Mar 2024 at 12:46, Eli Zaretskii <eliz@HIDDEN> wrote:

> > Date: Thu, 28 Mar 2024 11:45:16 +0100
> > From: "Pedro A. Aranda" <paaguti@HIDDEN>
> >
> > Place the following file as init.el in a directory (e.g. ~/.demacs.d)
> >
> >
> > ---- cut here ----
> > ;; Mode line settings
> >
> > (defun server-running-indicator()
> >    (when (server-running-p) "S "))
> > ;;  (unless (null server-process) "S "))
> >
> > ;; (setq-default mode-line-right-align-edge 'right-fringe)
> > (setq-default mode-line-format
> >                (list
> >                       '(:eval (propertize (server-running-indicator)
> >                                           'face 'mode-line-buffer-id))
> >
> >                       mode-line-modified
> >                       " "
> >                       mode-line-buffer-identification
> >                       " "
> >                       mode-line-position))
> > ---- cut here ----
> >
> > run emacs as
> > /usr/bin/emacs --init-directory ~/.demacs.d
> >
> > On the emacs window, click on the lower left corner and resize it with
> > the mouse. No hangs are observed.
> >
> > Now, active server-mode with
> > M-x server-mode
> >
> > Try again to resize the emacs window with the mouse. Emacs freezes.
>
> I seem to be unable to reproduce this.
>
> Does the freeze happen only if you resize the frame?  What if you just
> drag the mode line to resize the window?
>
> And when you say "freezes", does it mean Emacs uses 100% of a CPU's
> execution unit, or does it mean it waits for something doing nothing?
>
> Btw, in general, having arbitrary expressions in mode-line's :eval
> form might definitely cause problems, since the mode line is called by
> redisplay.
>


-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

--000000000000fda9f90614baab8d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hey,<div><br></div><div>When I say freeze, I mean it becom=
es irresponsive and does not respond to Ctrl-G and GNOME detects the situat=
ion, opening a &#39;force quit&#39; dialog. It also happens in macOS, and t=
here I can only force quit emacs. I&#39;ve opened this bug, because there w=
as something similar around putting a VC indicator in the mode-line.=C2=A0<=
/div><div><br></div><div>It might not be solvable, but at least I think it =
is worth discussing and documenting. Who knows if this could not end in a D=
ONT-DO sort of document, which might also be of some merit and use.</div><d=
iv><br></div><div>Happy easter, /PA</div><div><br></div></div><br><div clas=
s=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 28 Mar 2024=
 at 12:46, Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</=
a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&g=
t; Date: Thu, 28 Mar 2024 11:45:16 +0100<br>
&gt; From: &quot;Pedro A. Aranda&quot; &lt;<a href=3D"mailto:paaguti@gmail.=
com" target=3D"_blank">paaguti@HIDDEN</a>&gt;<br>
&gt; <br>
&gt; Place the following file as init.el in a directory (e.g. ~/.demacs.d)<=
br>
&gt; <br>
&gt; <br>
&gt; ---- cut here ----<br>
&gt; ;; Mode line settings<br>
&gt; <br>
&gt; (defun server-running-indicator()<br>
&gt;=C2=A0 =C2=A0 (when (server-running-p) &quot;S &quot;))<br>
&gt; ;;=C2=A0 (unless (null server-process) &quot;S &quot;))<br>
&gt; <br>
&gt; ;; (setq-default mode-line-right-align-edge &#39;right-fringe)<br>
&gt; (setq-default mode-line-format<br>
&gt;=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 (list<br>
&gt;=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &#39;(:eval (prop=
ertize (server-running-indicator)<br>
&gt;=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 &#39;face &#39;mode-line-buffer-id))<br>
&gt; <br>
&gt;=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mode-line-modified<br>
&gt;=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &quot; &quot;<br>
&gt;=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mode-line-buffer-identification<=
br>
&gt;=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &quot; &quot;<br>
&gt;=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mode-line-position))<br>
&gt; ---- cut here ----<br>
&gt; <br>
&gt; run emacs as<br>
&gt; /usr/bin/emacs --init-directory ~/.demacs.d<br>
&gt; <br>
&gt; On the emacs window, click on the lower left corner and resize it with=
<br>
&gt; the mouse. No hangs are observed.<br>
&gt; <br>
&gt; Now, active server-mode with<br>
&gt; M-x server-mode<br>
&gt; <br>
&gt; Try again to resize the emacs window with the mouse. Emacs freezes.<br=
>
<br>
I seem to be unable to reproduce this.<br>
<br>
Does the freeze happen only if you resize the frame?=C2=A0 What if you just=
<br>
drag the mode line to resize the window?<br>
<br>
And when you say &quot;freezes&quot;, does it mean Emacs uses 100% of a CPU=
&#39;s<br>
execution unit, or does it mean it waits for something doing nothing?<br>
<br>
Btw, in general, having arbitrary expressions in mode-line&#39;s :eval<br>
form might definitely cause problems, since the mode line is called by<br>
redisplay.<br>
</blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um bea=
ntwortet zu werden,<br></div>Fragen sind da um gestellt zu werden<br></div>=
Georg Kreisler</div><div><br></div><div>Headaches with a Juju log:</div><di=
v>unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru=
n a leader-deposed hook here, but we can&#39;t yet<br><br></div></div></div=
></div>

--000000000000fda9f90614baab8d--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.

Message received at 70049 <at> debbugs.gnu.org:


Received: (at 70049) by debbugs.gnu.org; 28 Mar 2024 11:46:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 07:46:35 2024
Received: from localhost ([127.0.0.1]:39228 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpoDL-00007y-EA
	for submit <at> debbugs.gnu.org; Thu, 28 Mar 2024 07:46:35 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58904)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rpoDI-000079-Rf
 for 70049 <at> debbugs.gnu.org; Thu, 28 Mar 2024 07:46:33 -0400
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 <eliz@HIDDEN>)
 id 1rpoDB-0003cT-25; Thu, 28 Mar 2024 07:46:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=NF1r52Y9eV/A9v+QjMj4IKkyuvJbebDlT2VH0chnqg8=; b=aJFfShAclbqRWfLBDUQ8
 YZABggQm023BhN2sUA38OAxecjeYR/fbuD/g4JDo/WyBTtpZWcppXR1/Ik1z/G3Sv7HoJiz3ea9gs
 qNIIVHlzx2jM0ljNzVmRlSijRcQBOu4T/YSQy7Elxx0JDnP+20F09mkfcrUNMx9Oub4p6J8XS+q2v
 98eCvFeo49j1OBft7VXphKaphQRhpXa1dgiBz+OYuCapUPQ6zgA36RWM9gFxbNutd++FJ2rWl1xEH
 1yH8e6dbN2iaUBswTc5Sako7S6UdEiTGcptN878VqOtFCZcgpTN+qfVUHVo+dtIBExhTmy7ByH0hN
 G/BkOiBeAV/qRg==;
Date: Thu, 28 Mar 2024 13:46:01 +0200
Message-Id: <8634sah952.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Pedro A. Aranda" <paaguti@HIDDEN>
In-Reply-To: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
 (paaguti@HIDDEN)
Subject: Re: bug#70049: 30.0.50; (server-running-p) in mode line freezes emacs
References: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70049
Cc: 70049 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 28 Mar 2024 11:45:16 +0100
> From: "Pedro A. Aranda" <paaguti@HIDDEN>
> 
> Place the following file as init.el in a directory (e.g. ~/.demacs.d)
> 
> 
> ---- cut here ----
> ;; Mode line settings
> 
> (defun server-running-indicator()
>    (when (server-running-p) "S "))
> ;;  (unless (null server-process) "S "))
> 
> ;; (setq-default mode-line-right-align-edge 'right-fringe)
> (setq-default mode-line-format
>                (list
>                       '(:eval (propertize (server-running-indicator)
>                                           'face 'mode-line-buffer-id))
> 
>                       mode-line-modified
>                       " "
>                       mode-line-buffer-identification
>                       " "
>                       mode-line-position))
> ---- cut here ----
> 
> run emacs as
> /usr/bin/emacs --init-directory ~/.demacs.d
> 
> On the emacs window, click on the lower left corner and resize it with
> the mouse. No hangs are observed.
> 
> Now, active server-mode with
> M-x server-mode
> 
> Try again to resize the emacs window with the mouse. Emacs freezes.

I seem to be unable to reproduce this.

Does the freeze happen only if you resize the frame?  What if you just
drag the mode line to resize the window?

And when you say "freezes", does it mean Emacs uses 100% of a CPU's
execution unit, or does it mean it waits for something doing nothing?

Btw, in general, having arbitrary expressions in mode-line's :eval
form might definitely cause problems, since the mode line is called by
redisplay.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Mar 2024 10:45:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 06:45:46 2024
Received: from localhost ([127.0.0.1]:39176 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpnGT-0000iG-ST
	for submit <at> debbugs.gnu.org; Thu, 28 Mar 2024 06:45:46 -0400
Received: from lists.gnu.org ([2001:470:142::17]:51662)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paaguti@HIDDEN>) id 1rpnGQ-0000gB-Lf
 for submit <at> debbugs.gnu.org; Thu, 28 Mar 2024 06:45:45 -0400
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 <paaguti@HIDDEN>) id 1rpnG7-0006l0-Sq
 for bug-gnu-emacs@HIDDEN; Thu, 28 Mar 2024 06:45:23 -0400
Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <paaguti@HIDDEN>) id 1rpnG4-0003WK-PM
 for bug-gnu-emacs@HIDDEN; Thu, 28 Mar 2024 06:45:23 -0400
Received: by mail-wr1-x42b.google.com with SMTP id
 ffacd0b85a97d-341cf77b86dso674495f8f.2
 for <bug-gnu-emacs@HIDDEN>; Thu, 28 Mar 2024 03:45:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1711622717; x=1712227517; darn=gnu.org;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=mclmxJ99H8nAHuY/tp/eBpMh0z3Oh7ZpgOxDLUd321s=;
 b=hAkTBNOfV3pnVfNXG2dLzSC5fsUkcT/5mOv+gRYnNk3sEc78XOcRou493WmYb6XB21
 iZvVHjfbGXNJQ5lfzkjIU3DTLtfpWfm5jwrwIrBKGSMjP3iFf7OUWNwHPHQ6QzkyBvBv
 GHbXrX0RUFy9BSOeT3W1evewH7KfU5gzfwGTGkvzLO7tHAklOQWxctCs82UXZ1LjTLQ0
 ZzMUQHqtOTs9GueOSFF2MnUyJOfvoxDzWwdL7Hk9UGAK0I4QBBuAL2dRnMu9pp9pDHtk
 ra14TzSuOb/Ux8ptqrFtHs522qkF+2PVgLLnu51fkyU96flJImjUdTIBiFFe3V5DxhHz
 VbGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1711622717; x=1712227517;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=mclmxJ99H8nAHuY/tp/eBpMh0z3Oh7ZpgOxDLUd321s=;
 b=eRiaw/q9PB9RYn+BpYG5VSYwiW5nGjb7IcMBrV/HcIjNMqY9O62DARovyQLOlIGT3/
 8/f6/K+zSP8tIWYZ74dJnQUw+SmhupOLiMJvF/214oL19xWZzrTLjfRZA4sisoHXDLg4
 acmtKAfIlEsHntvBzANgYy3T4WeXmmCV3rO7Br3G5ltXX40aUJ6TxxyzVvgwz6zmjs0s
 I7PFneM0gaecddjVbe7Hkn9VLVPDUmrMOXzz+6ZeF5ZfzzEZ4k8fyoc+P9mhUzGC/vFQ
 ejtuXz5JHDXWKNa0QcS4Ix28LAM+L2K0WM3c1RwDayD2ea4xkXY38wQQuAXZVzcQb963
 Ta4g==
X-Gm-Message-State: AOJu0YyhAhMJwPvf8rxIIQfg6FHqTNj+GDZlpZqxHOnN+NswPOXa60U2
 fO4nOo1VznxYi2r71d02rQbJ/OsPvTqzpFKeIuwvDz93KP+VZMVC3gjQ6PhJ
X-Google-Smtp-Source: AGHT+IHJBMD8yWuynnXegjislnTSlu1NwISnl4fLpS0y1YhrKgffVGygaaXwUk9FyCbVsJU5D5dAlQ==
X-Received: by 2002:a05:6000:110:b0:33d:277b:8bf6 with SMTP id
 o16-20020a056000011000b0033d277b8bf6mr2214587wrx.26.1711622717100; 
 Thu, 28 Mar 2024 03:45:17 -0700 (PDT)
Received: from [192.168.1.39] (53.red-79-148-75.dynamicip.rima-tde.net.
 [79.148.75.53]) by smtp.gmail.com with ESMTPSA id
 n2-20020a5d4002000000b00341ce4a3bd6sm1426409wrp.13.2024.03.28.03.45.16
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 28 Mar 2024 03:45:16 -0700 (PDT)
Message-ID: <bdc9c654-4c7a-4b2e-a7f9-a58df51db659@HIDDEN>
Date: Thu, 28 Mar 2024 11:45:16 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, de-DE, it-IT, en-GB
To: bug-gnu-emacs@HIDDEN
From: "Pedro A. Aranda" <paaguti@HIDDEN>
Subject: 30.0.50; (server-running-p) in mode line freezes emacs
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::42b;
 envelope-from=paaguti@HIDDEN; helo=mail-wr1-x42b.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 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Place the following file as init.el in a directory (e.g. ~/.demacs.d)


---- cut here ----
;; Mode line settings

(defun server-running-indicator()
   (when (server-running-p) "S "))
;;  (unless (null server-process) "S "))

;; (setq-default mode-line-right-align-edge 'right-fringe)
(setq-default mode-line-format
               (list
                      '(:eval (propertize (server-running-indicator)
                                          'face 'mode-line-buffer-id))

                      mode-line-modified
                      " "
                      mode-line-buffer-identification
                      " "
                      mode-line-position))
---- cut here ----

run emacs as
/usr/bin/emacs --init-directory ~/.demacs.d

On the emacs window, click on the lower left corner and resize it with
the mouse. No hangs are observed.

Now, active server-mode with
M-x server-mode

Try again to resize the emacs window with the mouse. Emacs freezes.

This doesn't happen if you use the commented line
(unless (null server-process) "S "))
instead of the
(when (server-running-p) "S "))


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
  3.24.33, cairo version 1.16.0) of 2024-03-28 built on ee9499c728de
Repository revision: f1fe13ea057237f5426c93876488cb95be86156c
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12201001
System Description: Ubuntu 22.04.4 LTS

Configured using:
  'configure --prefix=/usr --program-suffix=30 --with-x
  --with-x-toolkit=gtk3 --with-cairo --with-compress-install
  --with-modules=yes --with-threads --with-included-regex --with-zlib
  --with-json --with-rsvg --with-small-ja-dic
  --with-native-compilation=aot --with-tree-sitter=no 'CFLAGS=-g -O2
  -ffile-prefix-map=/home/paag/emacs=. -flto=auto -ffat-lto-objects
  -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat
  -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
  'LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects
  -flto=auto -Wl,-z,relro''

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM
GTK3 ZLIB

Important settings:
   value of $LC_MONETARY: es_ES.UTF-8
   value of $LC_NUMERIC: es_ES.UTF-8
   value of $LC_TIME: es_ES.UTF-8
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   blink-cursor-mode: t
   minibuffer-regexp-mode: t
   buffer-read-only: t
   line-number-mode: t
   indent-tabs-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
/usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides 
/usr/share/emacs/30.0.50/lisp/language/thai-word

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process
native-compile emacs)

Memory information:
((conses 16 51330 11727) (symbols 48 5230 0) (strings 32 13871 2528)
  (string-bytes 1 460407) (vectors 16 9073)
  (vector-slots 8 126676 10197) (floats 8 40 13) (intervals 56 375 16)
  (buffers 984 11))





Acknowledgement sent to "Pedro A. Aranda" <paaguti@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70049; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 1 Apr 2024 08:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.