GNU bug report logs - #68799
30.0.50; emacs --fg-daemon fails silently if server-start fails

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: Spencer Baugh <sbaugh@HIDDEN>; dated Mon, 29 Jan 2024 16:55:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 68799) by debbugs.gnu.org; 10 Feb 2024 20:10:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 10 15:10:18 2024
Received: from localhost ([127.0.0.1]:37967 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rYtg1-0007IR-Ip
	for submit <at> debbugs.gnu.org; Sat, 10 Feb 2024 15:10:18 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:34264)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rYtcF-000750-2S
 for 68799 <at> debbugs.gnu.org; Sat, 10 Feb 2024 15:06:24 -0500
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 1rYtbt-0005Y0-Ev; Sat, 10 Feb 2024 15:06:01 -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=hcsiEIAR7DLvbZywJMgIa5I8GElJxTiufEogL0wTf1Q=; b=PCZt8Lwh5KgO
 U4ldpGUJpvh/rNlj2Wh/378kCEPxqyxq4nAH1iEjbB1AqC0bnRKPLNS5WiIZOUBd/F5uBVT4f9+BD
 tBYOB9UWyM1nV11k7U5t+EqQn99/LxuCS6G7sPtBaalBOFYeiA0hBA5tzDpSjK6ExpiYROP0lBWw8
 uXLo6AKVzCrviaSTan1h978Nkpqo+iHWVmtMr1qtNiN/oqcCj63pR1cM6s1RP+IT76647ENWbOeKC
 vhJFzhSSnCcC8BBkfxQqzCL8srCoC3069IckhQToLUVEGgEVrLMSmM0NebVkyArtSyE3MtvCRtAMj
 GfASf7dEe7A8h72YfLU3Rg==;
Date: Sat, 10 Feb 2024 22:05:58 +0200
Message-Id: <868r3st789.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: sbaugh@HIDDEN
In-Reply-To: <875xywp08p.fsf@HIDDEN> (sbaugh@HIDDEN)
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
 <iero7d46o6n.fsf@HIDDEN> <86v87c2fw4.fsf@HIDDEN>
 <ierle886m95.fsf@HIDDEN> <86sf2g2btj.fsf@HIDDEN>
 <ieril3b7ukg.fsf@HIDDEN> <86r0hz2fcz.fsf@HIDDEN>
 <875xywp08p.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <at> debbugs.gnu.org, sbaugh@HIDDEN
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: sbaugh@HIDDEN
> Date: Sat, 10 Feb 2024 19:50:20 +0000 (UTC)
> Cc: Spencer Baugh <sbaugh@HIDDEN>, 68799 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> > Thanks, this needs a comment explaining why we need condition-case and
> >> > where does error-message-string come from.
> >> 
> >> Actually, on second thought, we could fail anywhere in startup.el, not
> >> just in server-start.  So should we actually have a wrapper around all
> >> of normal-top-level which detects an error at startup in a daemon?
> >
> > I'd prefer to handle each specific problem specially, to make sure the
> > error message is self-explanatory.  Also, if the error happens after
> > the server has been started, there's no reason to forcibly exit.
> >
> > So I think we should for now solve this particular issue, and not try
> > generalizing too much.
> 
> To be clear, right now any error anywhere in command-line causes "emacs
> --fg-daemon" and "emacs --bg-daemon" to hang indefinitely, without
> printing an error, with no way to ever interact with the Emacs process.

That's not what you said before: you said "anywhere in startup.el",
which is much more general.  Now you are saying something different.

What exactly is meant by "anywhere in command-line"? the function
command-line in startup.el? or something else?

> This error can come from any code, so if we have *any* bugs anywhere in
> code called from command-line, it will cause Emacs to enter this state.

Why would we assume that *any code* there will signal an error?
That's like saying that Emacs is a useless program that always signals
errors in random places.  That's a non-starter here.

> We can add good error messages for individual classes of error, but we
> should also have a catch-all check to make sure that Emacs doesn't enter
> this broken state if we (or the user) write code which contains a bug.

There's no reason to have a catch-all check where no error is
expected.  Do you always wrap all of your code in condition-case and
the likes?  If not, why not?

> I have concrete reasons to want this: I think there's a bug in
> command-line in trunk which some of my users using emacs --daemon have
> run into.  But I have zero information about what caused the bug,
> because Emacs just hangs without printing any error message in this
> case.

Then please debug that, and let's talk when you do have concrete data.

> To allow users to report bugs that are at all useful, we should at least
> print the error that occurred, even if we don't kill Emacs.

Users aren't supposed to debug Emacs, it's the job of developers.  And
developers know how to run Emacs under a debugger and do any number of
other debugging tricks.  Injecting debugging code into Emacs just
because some of your users did something wrong is not a good idea.  Or
maybe it is -- but we won't know until we understand what exactly goes
wrong in those cases.




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

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


Received: (at 68799) by debbugs.gnu.org; 10 Feb 2024 20:10:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 10 15:10:17 2024
Received: from localhost ([127.0.0.1]:37964 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rYtg0-0007IL-8i
	for submit <at> debbugs.gnu.org; Sat, 10 Feb 2024 15:10:17 -0500
Received: from s.wrqvwxzv.outbound-mail.sendgrid.net ([149.72.154.232]:3764)
 by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from
 <bounces+21787432-f446-68799=debbugs.gnu.org@HIDDEN>)
 id 1rYtN4-0006K4-GZ
 for 68799 <at> debbugs.gnu.org; Sat, 10 Feb 2024 14:50:43 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com;
 h=from:subject:in-reply-to:references:mime-version:to:cc:content-type:
 content-transfer-encoding:cc:content-type:from:subject:to;
 s=s1; bh=e1+zApaftJd5N+XlqER1KEQcVU4VfzB27ZEeIAY7Su4=;
 b=PVFKUhB6cXcX1vs/Mf7qncUTjaZhG6brNN9HgXy12S5D3/3Hwpf8XUxpmx0Jo0aJWfkQ
 po+2z5WU+SydTdrmr6rgO0aDI1KrteArWQtZ/km/6Fk6ibloGKnFrufYUHoRB9EfFzseht
 UWhQBtQEOx0VgJdTTjbjbfaQxJkSpzqXP/soab1WMPdLcuL9OPphZABkOV0e7choKrszG/
 ar/WFsAwfQFPeyNBk/ideWQGEN+djzJwv+yEaPhsmZeqlcrE/wZqohbSD5bIOijJBfe0Dq
 ipGMbk5QVKGjlN8VY7DZyhpn65+W+x0Uk95KzGeuBQ6HeD06XAWFDmxHn0ps9b5A==
Received: by recvd-ffdf554ff-45rqw with SMTP id
 recvd-ffdf554ff-45rqw-1-65C7D37C-A
 2024-02-10 19:50:20.652266668 +0000 UTC m=+687948.044920535
Received: from earth.catern.com (unknown) by geopod-ismtpd-canary-0 (SG)
 with ESMTP id Tt-0o8EyTC-U4t0XVH1Zrw
 Sat, 10 Feb 2024 19:50:20.576 +0000 (UTC)
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.101.51.129;
 helo=localhost; envelope-from=sbaugh@HIDDEN; receiver=gnu.org 
Received: from localhost (unknown [74.101.51.129])
 by earth.catern.com (Postfix) with ESMTPSA id 2F4FA62534;
 Sat, 10 Feb 2024 19:50:31 +0000 (UTC)
From: sbaugh@HIDDEN
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
In-Reply-To: <86r0hz2fcz.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 30 Jan
 2024 14:08:28 +0200")
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
 <iero7d46o6n.fsf@HIDDEN> <86v87c2fw4.fsf@HIDDEN>
 <ierle886m95.fsf@HIDDEN> <86sf2g2btj.fsf@HIDDEN>
 <ieril3b7ukg.fsf@HIDDEN> <86r0hz2fcz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Sat, 10 Feb 2024 19:50:20 +0000 (UTC)
Message-ID: <875xywp08p.fsf@HIDDEN>
MIME-Version: 1.0
X-SG-EID: =?us-ascii?Q?ZgbRq7gjGrt0q=2FPjvxk7wM0yQFRdOkTJAtEbkjCkHbK+4dOUKkHTveat1CreEV?=
 =?us-ascii?Q?PWDlkxv5gcE5Q4y4eamRrhiq5wzye5im+CGr=2FWp?=
 =?us-ascii?Q?CNO1cYpM7hXVnKibZGgrCEjOW1PJ=2Fj3u8n8d8ME?=
 =?us-ascii?Q?8KnUw+vlbSYE4RhjeMHvTYEme9ivC0NOoKASRPR?=
 =?us-ascii?Q?e56PBMZO7XBGat6BBCMubCC4ykpVhlWZcYw=3D=3D?=
To: Eli Zaretskii <eliz@HIDDEN>
X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q==
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> From: Spencer Baugh
 <sbaugh@HIDDEN> >> Cc: 68799 <at> debbugs.gnu.org >> Date: Mon, 29 Jan
 2024 15:28:47 -0500 >> >> >> --- a/lisp/startup.el >> >> +++ b/lisp/startup.el
 >> >> @@ -1627,7 +1627,1 [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in
 bl.spamcop.net
 [Blocked - see <https://www.spamcop.net/bl.shtml?149.72.154.232>]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [149.72.154.232 listed in wl.mailspike.net]
 0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
 lines -0.0 T_SCC_BODY_TEXT_LINE   No description available.
X-Debbugs-Envelope-To: 68799
Cc: 68799 <at> debbugs.gnu.org, Spencer Baugh <sbaugh@HIDDEN>
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.2 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Spencer Baugh <sbaugh@HIDDEN>
>> Cc: 68799 <at> debbugs.gnu.org
>> Date: Mon, 29 Jan 2024 15:28:47 -0500
>> 
>> >> --- a/lisp/startup.el
>> >> +++ b/lisp/startup.el
>> >> @@ -1627,7 +1627,11 @@ command-line
>> >>    (let ((dn (daemonp)))
>> >>      (when dn
>> >>        (when (stringp dn) (setq server-name dn))
>> >> -      (server-start)
>> >> +      (condition-case err
>> >> +          (server-start)
>> >> +        (error
>> >> +         (message "%s" (error-message-string err))
>> >> +         (kill-emacs 1)))
>> >
>> > Thanks, this needs a comment explaining why we need condition-case and
>> > where does error-message-string come from.
>> 
>> Actually, on second thought, we could fail anywhere in startup.el, not
>> just in server-start.  So should we actually have a wrapper around all
>> of normal-top-level which detects an error at startup in a daemon?
>
> I'd prefer to handle each specific problem specially, to make sure the
> error message is self-explanatory.  Also, if the error happens after
> the server has been started, there's no reason to forcibly exit.
>
> So I think we should for now solve this particular issue, and not try
> generalizing too much.

To be clear, right now any error anywhere in command-line causes "emacs
--fg-daemon" and "emacs --bg-daemon" to hang indefinitely, without
printing an error, with no way to ever interact with the Emacs process.
This error can come from any code, so if we have *any* bugs anywhere in
code called from command-line, it will cause Emacs to enter this state.

We can add good error messages for individual classes of error, but we
should also have a catch-all check to make sure that Emacs doesn't enter
this broken state if we (or the user) write code which contains a bug.

I have concrete reasons to want this: I think there's a bug in
command-line in trunk which some of my users using emacs --daemon have
run into.  But I have zero information about what caused the bug,
because Emacs just hangs without printing any error message in this
case.

To allow users to report bugs that are at all useful, we should at least
print the error that occurred, even if we don't kill Emacs.




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

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


Received: (at 68799) by debbugs.gnu.org; 30 Jan 2024 12:09:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 30 07:09:05 2024
Received: from localhost ([127.0.0.1]:34496 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUmv5-0007N5-AP
	for submit <at> debbugs.gnu.org; Tue, 30 Jan 2024 07:09:05 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37470)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rUmv3-0007Ms-A8
 for 68799 <at> debbugs.gnu.org; Tue, 30 Jan 2024 07:08:49 -0500
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 1rUmum-0004RV-P7; Tue, 30 Jan 2024 07:08:33 -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=40OQsoQY3Ov0QagZgsOjCkaciHXltmXK57XZBBpi3zo=; b=mj2cZMn80hDk
 6h0YhPdULiHGdOmHSJczFGDpPp3kVBWWQma8bjhjXhbmi6imw4jcrSxLx26IZklt1bhA5LCagzH7R
 fciUqcFEULXnBoGwWv/hsC2/0KUnzSivBb2AtEMuWPwgy35VMTryLw2QwVf9F7zxMJ19Vm68C/tjJ
 ouifE4/t0TjPwylmeRK2C5qhybBtUh1V9Fi+GaEr/3inGbkFHTkwfNq2RLqhs0QyKAR5ShVMg5oV5
 dAzbrIZTshVis3ZmHUCGPq3Kczla9J+kAB1SE/+hcKGXrJ1ZBkuaVQ9J9wGtiIPvO6pg7Qdgs9T79
 vs+LacThBp/bChWtF1RLkg==;
Date: Tue, 30 Jan 2024 14:08:28 +0200
Message-Id: <86r0hz2fcz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <ieril3b7ukg.fsf@HIDDEN> (message from Spencer Baugh on
 Mon, 29 Jan 2024 15:28:47 -0500)
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
 <iero7d46o6n.fsf@HIDDEN> <86v87c2fw4.fsf@HIDDEN>
 <ierle886m95.fsf@HIDDEN> <86sf2g2btj.fsf@HIDDEN>
 <ieril3b7ukg.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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 (-)

> From: Spencer Baugh <sbaugh@HIDDEN>
> Cc: 68799 <at> debbugs.gnu.org
> Date: Mon, 29 Jan 2024 15:28:47 -0500
> 
> >> --- a/lisp/startup.el
> >> +++ b/lisp/startup.el
> >> @@ -1627,7 +1627,11 @@ command-line
> >>    (let ((dn (daemonp)))
> >>      (when dn
> >>        (when (stringp dn) (setq server-name dn))
> >> -      (server-start)
> >> +      (condition-case err
> >> +          (server-start)
> >> +        (error
> >> +         (message "%s" (error-message-string err))
> >> +         (kill-emacs 1)))
> >
> > Thanks, this needs a comment explaining why we need condition-case and
> > where does error-message-string come from.
> 
> Actually, on second thought, we could fail anywhere in startup.el, not
> just in server-start.  So should we actually have a wrapper around all
> of normal-top-level which detects an error at startup in a daemon?

I'd prefer to handle each specific problem specially, to make sure the
error message is self-explanatory.  Also, if the error happens after
the server has been started, there's no reason to forcibly exit.

So I think we should for now solve this particular issue, and not try
generalizing too much.




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

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


Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 20:29:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 15:29:03 2024
Received: from localhost ([127.0.0.1]:33572 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUYFa-0004N1-PJ
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 15:29:03 -0500
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:44627)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1rUYFZ-0004MY-96
 for 68799 <at> debbugs.gnu.org; Mon, 29 Jan 2024 15:29:01 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
In-Reply-To: <86sf2g2btj.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 29 Jan
 2024 21:12:40 +0200")
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
 <iero7d46o6n.fsf@HIDDEN> <86v87c2fw4.fsf@HIDDEN>
 <ierle886m95.fsf@HIDDEN> <86sf2g2btj.fsf@HIDDEN>
Date: Mon, 29 Jan 2024 15:28:47 -0500
Message-ID: <ieril3b7ukg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1706560127;
 bh=ExQyKctevVj7qUnHsRrSM4qgj+dBTltvLEP+ElSWrqo=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=cskk6hxshvErFcrK3e4SgiUtserDKqEf0nM95gEGz7bfuOVxI8Orm4KsJ66dU+gVN
 znfso2dAddE9+ewyTFqH3gkmI038JlHLtf6dxEY9BH2nAmarXVqgpWMlvuRh3eYnjA
 q1bxqF8xJTKM0wvVfGey/syt7zT5lSB/PA7tESNdmD2KM4fRNjq4jaCIHo6e+zTd9i
 caesaDWI4GEVkJR7F2WwKtf/ayloJV6f7XwhPtFkOdXttr4ERusbNvyr8S3w+B/w0w
 wPJirWRP6UCZ/0+lPz+dKXB0Sv2NSNdsSEKaqxLmYKly6fg0aLyFU+KOlkSFubM+CX
 3yf/74K+GzGOg==
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:
>> From: Spencer Baugh <sbaugh@HIDDEN>
>> Cc: 68799 <at> debbugs.gnu.org
>> Date: Mon, 29 Jan 2024 13:13:42 -0500
>> 
>> --- a/lisp/startup.el
>> +++ b/lisp/startup.el
>> @@ -1627,7 +1627,11 @@ command-line
>>    (let ((dn (daemonp)))
>>      (when dn
>>        (when (stringp dn) (setq server-name dn))
>> -      (server-start)
>> +      (condition-case err
>> +          (server-start)
>> +        (error
>> +         (message "%s" (error-message-string err))
>> +         (kill-emacs 1)))
>
> Thanks, this needs a comment explaining why we need condition-case and
> where does error-message-string come from.

Actually, on second thought, we could fail anywhere in startup.el, not
just in server-start.  So should we actually have a wrapper around all
of normal-top-level which detects an error at startup in a daemon?

For example, this will also fail to start the server and hang with no
error message:

emacs --eval '(error)' --daemon

Likewise any errors raised in init.el will also just hang without
starting the server, although that at least causes some logs to be
printed.

Maybe we should handle this in the C top_level_1, conditional on
IS_DAEMON?




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

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


Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 19:13:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 14:13:00 2024
Received: from localhost ([127.0.0.1]:33484 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUX40-0002Ll-7z
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 14:13:00 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45450)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rUX3x-0002LX-OF
 for 68799 <at> debbugs.gnu.org; Mon, 29 Jan 2024 14:12:58 -0500
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 1rUX3j-00018W-Ln; Mon, 29 Jan 2024 14:12:43 -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=CNfnmcdRYDTN1HO5xVFBkDxHHD6P/Xa+M7TtJIBK/OU=; b=hoV9+S2ja6Fu
 PIIO6DozA2mrlRSXjGSwcN+aVaorG7+1wTO+C/f0cpOdmzTIbnNdKNA/MZOo2jMnb/BKHu3djj9QM
 im2mLrmdvXX7vAMzI1SkrPYnwd3Sx2XIyXSR1TVUAV4FPe4O0rt9soIDcRj7l3cYBH00Hyp8bj303
 6VmNR35SpW9hm+LQI6k2gjvyc2ADf/XGu4bUXGkftjnE1c2xhdVEfAU6fMgpRu7cy9Z3o37zp0d1D
 l2qNHFrdEbB7bjGisF8IwauCB1SDzlxXstPvXx9Nft4csCG5pxUAxLavm+75ZbIYilwRqMyzG+MyI
 n4wTdLR4vN9pHJXTD7DgcA==;
Date: Mon, 29 Jan 2024 21:12:40 +0200
Message-Id: <86sf2g2btj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <ierle886m95.fsf@HIDDEN> (message from Spencer Baugh on
 Mon, 29 Jan 2024 13:13:42 -0500)
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
 <iero7d46o6n.fsf@HIDDEN> <86v87c2fw4.fsf@HIDDEN>
 <ierle886m95.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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: Spencer Baugh <sbaugh@HIDDEN>
> Cc: 68799 <at> debbugs.gnu.org
> Date: Mon, 29 Jan 2024 13:13:42 -0500
> 
> --- a/lisp/startup.el
> +++ b/lisp/startup.el
> @@ -1627,7 +1627,11 @@ command-line
>    (let ((dn (daemonp)))
>      (when dn
>        (when (stringp dn) (setq server-name dn))
> -      (server-start)
> +      (condition-case err
> +          (server-start)
> +        (error
> +         (message "%s" (error-message-string err))
> +         (kill-emacs 1)))

Thanks, this needs a comment explaining why we need condition-case and
where does error-message-string come from.




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

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


Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 18:13:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 13:13:59 2024
Received: from localhost ([127.0.0.1]:33426 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUW8s-0006Xm-Mo
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 13:13:59 -0500
Received: from mxout6.mail.janestreet.com ([64.215.233.21]:49449)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1rUW8q-0006XZ-KS
 for 68799 <at> debbugs.gnu.org; Mon, 29 Jan 2024 13:13:57 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
In-Reply-To: <86v87c2fw4.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 29 Jan
 2024 19:44:43 +0200")
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
 <iero7d46o6n.fsf@HIDDEN> <86v87c2fw4.fsf@HIDDEN>
Date: Mon, 29 Jan 2024 13:13:42 -0500
Message-ID: <ierle886m95.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1706552022;
 bh=2vLqDTdkLeK69fGIe7OmvGr9s84FMSxttZP5oxEEcn4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=lLGnovzVluUjI2tc1wsEojhFfdpGfqGaUdBU4+O9uimm/1AL2J34ajGiCpXyUoqUY
 pX5EY7F3yLb+Xhj78UJSqg8DJaEFu7deg/5DCo5GNGIPlAWKaQ5KAuuomgCiWFZjtU
 L7z2suOV50XgL1bPMSIgNmKZ6Yb+5ZXJjmQ/rel4LK4HTCjTX1L1VkkAlhN3+/EclY
 Tvxp59iFCfvkVtBHR2es7BdWg+1ny3ydwYDAhowIHE1Alv+11PVTO2lR/6Jc2wc2Rl
 GafU5zS4gSMVmz8QsYTXOre7rOpEC55ylpswqURfQBGyOLOkJI1P2T9Pgt4EsKxbvf
 uLz9lLKzVP0OQ==
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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 (-)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:
>> From: Spencer Baugh <sbaugh@HIDDEN>
>> Cc: 68799 <at> debbugs.gnu.org
>> Date: Mon, 29 Jan 2024 12:32:00 -0500
>> 
>> Eli Zaretskii <eliz@HIDDEN> writes:
>> 
>> >> So the problem seems to be that somehow server-start succeeds to leave
>> >> a non-nil server-process variable behind, although testing that is the
>> >> documented way of telling whether server is running.
>> >
>> > Or maybe server-start signals an error, and then the code which shows
>> > an error message and shuts down Emacs doesn't get run?
>> 
>> Yes, that's exactly what happens.
>> 
>> So should we wrap a condition-case around server-start, I suppose?
>
> Probably.  But perhaps we should also modify server-start so that,
> when it is called from a daemon, it signals in this case a distinct
> error, which startup.el could then detect and display a friendly error
> message.

Actually, it seems that main() already does a
fputs ("Error: server did not start correctly\n", stderr);
if the server process exits non-zero.  So we already get a nice:

Starting Emacs daemon.
Creating directory: Permission denied, /nonexistent
Error: server did not start correctly

So I think the below patch suffices.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline;
 filename=0001-Message-when-server-start-errors-in-emacs-daemon.patch

From 2a6f039663a678d0fcae47318011fbb5d8bb5f1c Mon Sep 17 00:00:00 2001
From: Spencer Baugh <sbaugh@HIDDEN>
Date: Mon, 29 Jan 2024 13:11:47 -0500
Subject: [PATCH] Message when server-start errors in emacs --daemon

Previously, if a user invoked emacs --daemon and then server-start
failed, there would be no indication of this and emacs would simply
hang.

Now, something like emacs --daemon=/nonexistent/sock results in:

$ emacs --fg-daemon=/nonexistent/sock
Starting Emacs daemon.
Creating directory: Permission denied, /nonexistent
$ emacs --daemon=/nonexistent/sock
Starting Emacs daemon.
Creating directory: Permission denied, /nonexistent
Error: server did not start correctly

and Emacs exits non-zero.

* lisp/startup.el (command-line): Catch errors from server-start, and
message and exit.  (bug#68799)
---
 lisp/startup.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/startup.el b/lisp/startup.el
index 23937055f30..ae465b5bb07 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1627,7 +1627,11 @@ command-line
   (let ((dn (daemonp)))
     (when dn
       (when (stringp dn) (setq server-name dn))
-      (server-start)
+      (condition-case err
+          (server-start)
+        (error
+         (message "%s" (error-message-string err))
+         (kill-emacs 1)))
       (if server-process
 	  (daemon-initialized)
 	(if (stringp dn)
-- 
2.39.3


--=-=-=--




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

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


Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 17:45:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 12:45:02 2024
Received: from localhost ([127.0.0.1]:33380 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUVgr-0005fX-EB
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:45:01 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51654)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rUVgp-0005fA-9A
 for 68799 <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:45:00 -0500
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 1rUVgb-0000Yw-4X; Mon, 29 Jan 2024 12:44:45 -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=x0Dwkkko2vBcb3z5GCfr9VgaWcDeNA7kfkB9qBok0vo=; b=pU7/K/oWVapp
 LJrs0LX50TE06GtOxV18eJUKZjQ70WABOii3gypQrTJHjU0ya/IHfahUxpVZrf4zjhKWX9rzsyIP0
 ByTzsPKzq9A8/UhyU3ttAzgUFnSqDlKezeiZvsAQ5aNVjK6HLO2d1tA/RBb3A2uSLIhN0w/f48jFw
 7xcsFdmQ+B+SnRvavend9HHA+im63INc84hM/lMPwnn6jCECyzkYsgC8YQz0mgSDo+OEmoIxMVq/o
 bdq4KC6BLTMp0hoVDSLmjHxrC6WZ1/wAxitXLX91StXNzYdfLZqPh4jsxYw9XCT8j1NaVbshswYxy
 lXLdJ/ZzFoxczRmfr+PRIg==;
Date: Mon, 29 Jan 2024 19:44:43 +0200
Message-Id: <86v87c2fw4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <iero7d46o6n.fsf@HIDDEN> (message from Spencer Baugh on
 Mon, 29 Jan 2024 12:32:00 -0500)
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
 <iero7d46o6n.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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: Spencer Baugh <sbaugh@HIDDEN>
> Cc: 68799 <at> debbugs.gnu.org
> Date: Mon, 29 Jan 2024 12:32:00 -0500
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> So the problem seems to be that somehow server-start succeeds to leave
> >> a non-nil server-process variable behind, although testing that is the
> >> documented way of telling whether server is running.
> >
> > Or maybe server-start signals an error, and then the code which shows
> > an error message and shuts down Emacs doesn't get run?
> 
> Yes, that's exactly what happens.
> 
> So should we wrap a condition-case around server-start, I suppose?

Probably.  But perhaps we should also modify server-start so that,
when it is called from a daemon, it signals in this case a distinct
error, which startup.el could then detect and display a friendly error
message.




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

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


Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 17:32:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 12:32:16 2024
Received: from localhost ([127.0.0.1]:33356 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUVUW-00059j-4Y
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:32:16 -0500
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:56789)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1rUVUU-00059K-3r
 for 68799 <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:32:15 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#68799: 30.0.50; emacs --fg-daemon fails silently if
 server-start fails
In-Reply-To: <86wmrs2h41.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 29 Jan
 2024 19:18:22 +0200")
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN> <86wmrs2h41.fsf@HIDDEN>
Date: Mon, 29 Jan 2024 12:32:00 -0500
Message-ID: <iero7d46o6n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1706549520;
 bh=wnoC2Ra6lYYduzeuRHdG5ELReqtnd3kZvIUhFoBfxkE=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=YBmDm5EEtBK5kPfG+Bc6OyrLo5kSdX6Qvil00YnTUpOrO3ByYfbIR3KDK5pLbTs9n
 7ycu/WS/2yH6UkfbS4vi8o2KS9ouiHjTUoIurg6Wa+rwmXkRDgafLjgJ5vTeBBJ84z
 ENAEXJzh34ozaDZM/siqJveuKNvf70Q8lL8nyQf9QgaQ7VqDsC09Nm7JKb+FgsMNYM
 0DgLAKix09lVMrXJbz/LTTYecWhNgf9fUK+hb9ElmNfehWKhI94mpBVj6M9D8Znlqe
 ERvp3kkHhy9hsn4TATWEl1aeCrY7KdPN35LR1SnL5+13teEFwMOYKmNtNWNgdnsn0I
 fuA0WU3oPRrzA==
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:
>> Cc: 68799 <at> debbugs.gnu.org
>> Date: Mon, 29 Jan 2024 19:11:36 +0200
>> From: Eli Zaretskii <eliz@HIDDEN>
>> 
>> Have some faith in Emacs: we already do that.  From startup.el:
>> 
>>   (let ((dn (daemonp)))
>>     (when dn
>>       (when (stringp dn) (setq server-name dn))
>>       (server-start)
>>       (if server-process
>> 	  (daemon-initialized)
>> 	(if (stringp dn)
>> 	    (message
>> 	     "Unable to start daemon: Emacs server named %S already running"
>> 	     server-name)
>> 	  (message "Unable to start the daemon.\nAnother instance of Emacs is running the server, either as daemon or interactively.\nYou can use emacsclient to connect to that Emacs process."))
>> 	(kill-emacs 1))))
>> 
>> So the problem seems to be that somehow server-start succeeds to leave
>> a non-nil server-process variable behind, although testing that is the
>> documented way of telling whether server is running.
>
> Or maybe server-start signals an error, and then the code which shows
> an error message and shuts down Emacs doesn't get run?

Yes, that's exactly what happens.

So should we wrap a condition-case around server-start, I suppose?




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

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


Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 17:18:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 12:18:40 2024
Received: from localhost ([127.0.0.1]:33339 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUVHL-0004ko-On
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:18:40 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44370)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rUVHK-0004ka-FC
 for 68799 <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:18:39 -0500
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 1rUVH6-0002HO-J8; Mon, 29 Jan 2024 12:18:24 -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=1cKu53qXw3tk29FjOs5rRyxjZhS/Ly8auKf8U9OGe9k=; b=Ka1WJy8fcFoY
 NrAJvuaobp59dlWgm+pkwRkkbpJsQyPsQnQGT5xHxckK3Y83Sw6FZ4xzQhT0cOSkYoUSPRrtM5qHr
 6pnSGo06TaDg3ZVVszX+MMZXt8ngXBoUopEGft8AswN4Z3CgeT9sE3dLIFH+2XSjB379kGV2ys98l
 nZvGJ5U5B5uW5VZHb1AJSHz7fL3EXY1fl6/gIp7jcnME1OQFGsOZ0AT60Vf0julTyUIC2PzUORajo
 Ft7v01U2kcmmEHWpNIdHwL7xsC6QUAXKWCGFTR2octZsa+6661/9WjvK667CAazx8au0dC4vgTPZV
 kx4XRvE61y5ik+REDp/jrA==;
Date: Mon, 29 Jan 2024 19:18:22 +0200
Message-Id: <86wmrs2h41.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: sbaugh@HIDDEN
In-Reply-To: <86y1c82hfb.fsf@HIDDEN> (message from Eli Zaretskii on Mon, 29
 Jan 2024 19:11:36 +0200)
Subject: Re: bug#68799: 30.0.50;
 emacs --fg-daemon fails silently if server-start fails
References: <iersf2gjd1e.fsf@HIDDEN>
 <86y1c82hfb.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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 (---)

> Cc: 68799 <at> debbugs.gnu.org
> Date: Mon, 29 Jan 2024 19:11:36 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> Have some faith in Emacs: we already do that.  From startup.el:
> 
>   (let ((dn (daemonp)))
>     (when dn
>       (when (stringp dn) (setq server-name dn))
>       (server-start)
>       (if server-process
> 	  (daemon-initialized)
> 	(if (stringp dn)
> 	    (message
> 	     "Unable to start daemon: Emacs server named %S already running"
> 	     server-name)
> 	  (message "Unable to start the daemon.\nAnother instance of Emacs is running the server, either as daemon or interactively.\nYou can use emacsclient to connect to that Emacs process."))
> 	(kill-emacs 1))))
> 
> So the problem seems to be that somehow server-start succeeds to leave
> a non-nil server-process variable behind, although testing that is the
> documented way of telling whether server is running.

Or maybe server-start signals an error, and then the code which shows
an error message and shuts down Emacs doesn't get run?




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

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


Received: (at 68799) by debbugs.gnu.org; 29 Jan 2024 17:11:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 12:11:58 2024
Received: from localhost ([127.0.0.1]:33331 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUVAs-0004aI-HK
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:11:58 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58598)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rUVAp-0004a2-AK
 for 68799 <at> debbugs.gnu.org; Mon, 29 Jan 2024 12:11:57 -0500
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 1rUVAb-00016U-4D; Mon, 29 Jan 2024 12:11:41 -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=XnP6TQWH9mTiSQHets5xna0QnUum0grAv0fjKUuo3+4=; b=Zvl1oXZqvKyM
 3oYfcrCyWSgaehGQeqkcojDvcEU5cJ3Nk1sqhZOHKJCXwtArjC3moF7mswyw94uw5g53549ZU16f6
 AhGnUdpianXr+vaPphT0Q7tGVBct3N7HFK6DBbKtwBq4qGE12gXWUnCs1IgW9weOjk0gX7XxI5I0a
 2bTFpsk2BRV+MMkfL4nf/DaglKwfGb9aFhyFYS8BktV2qPNr0ZpLahClyaTBhe+hrK5HX7bDo1hc1
 cCIlk/6uZtagsVRx4ywXsHD9FI5OyzxsLAj1vEk1Wjn5rWE0iL7CJ7aSc33KDOVj80DDX4tOJ1QaP
 jMEt8SaJisHA4RRmXvk/fA==;
Date: Mon, 29 Jan 2024 19:11:36 +0200
Message-Id: <86y1c82hfb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <iersf2gjd1e.fsf@HIDDEN>
 (message from Spencer Baugh on Mon, 29 Jan 2024 11:54:21 -0500)
Subject: Re: bug#68799: 30.0.50;
 emacs --fg-daemon fails silently if server-start fails
References: <iersf2gjd1e.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68799
Cc: 68799 <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: Spencer Baugh <sbaugh@HIDDEN>
> Date: Mon, 29 Jan 2024 11:54:21 -0500
> 
> 
> 1. emacs -Q --fg-daemon=/nonexistent/dir/sock
> 2. Emacs prints "Starting Emacs daemon." and sits in foreground.
> 3. emacsclient -c -s /nonexistent/dir/sock
> 4. emacsclient prints and exits:
> emacsclient: can't find socket; have you started the server?
> emacsclient: To start the server in Emacs, type "M-x server-start".
> emacsclient: error accessing socket "/nonexistent/dir/sock"
> 
> This is because in step 1, the server actually failed to start, but
> Emacs did not log that at all.  In fact, it's impossible to access the
> Emacs started in 1 now, since it's not actually running a server and it
> has no frames.
> 
> The same thing happens with --bg-daemon, although it's slightly more
> obvious that something is wrong in that case, because --bg-daemon is not
> supposed to sit in foreground.
> 
> Emacs with --fg-daemon should instead print an error and exit if it
> fails to start the server.

Have some faith in Emacs: we already do that.  From startup.el:

  (let ((dn (daemonp)))
    (when dn
      (when (stringp dn) (setq server-name dn))
      (server-start)
      (if server-process
	  (daemon-initialized)
	(if (stringp dn)
	    (message
	     "Unable to start daemon: Emacs server named %S already running"
	     server-name)
	  (message "Unable to start the daemon.\nAnother instance of Emacs is running the server, either as daemon or interactively.\nYou can use emacsclient to connect to that Emacs process."))
	(kill-emacs 1))))

So the problem seems to be that somehow server-start succeeds to leave
a non-nil server-process variable behind, although testing that is the
documented way of telling whether server is running.

So what is the value of server-process in your scenario?




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

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


Received: (at submit) by debbugs.gnu.org; 29 Jan 2024 16:54:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 11:54:47 2024
Received: from localhost ([127.0.0.1]:33323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUUuE-0004A7-IP
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 11:54:47 -0500
Received: from lists.gnu.org ([2001:470:142::17]:42770)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1rUUuC-00049p-Jx
 for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 11:54:45 -0500
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 <sbaugh@HIDDEN>)
 id 1rUUtu-0003jW-Pr
 for bug-gnu-emacs@HIDDEN; Mon, 29 Jan 2024 11:54:28 -0500
Received: from mxout5.mail.janestreet.com ([64.215.233.18])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <sbaugh@HIDDEN>)
 id 1rUUts-0005tl-Lm
 for bug-gnu-emacs@HIDDEN; Mon, 29 Jan 2024 11:54:26 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; emacs --fg-daemon fails silently if server-start fails
X-Debbugs-Cc: 
Date: Mon, 29 Jan 2024 11:54:21 -0500
Message-ID: <iersf2gjd1e.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1706547262;
 bh=bEfkIvBh6QOyvSbF8An0Ndy8QCCQSUZDyCw81DyIAFQ=;
 h=From:To:Subject:Date;
 b=vKZXsv19lhq9mgFg3XZR4uUnUHv0o1kSV1vGA9pdg2j8FrMD0cOd/ikjOjSd+3yly
 xevVb1CROjJhTmD5yXDdptYG4M7pavHjX2gKa+KNm84aqvrktI+dNHVedlpzYFzLy5
 SfUZvCjj2/fW81VryZUEYK1WK6xyfQ2AcDZaoruI0d1gP7T8r7ELuhc+/K6dts7unW
 BTQdoHvni9wn9AJgmCyifr9E92jaDHt/ZJahCRNJLuG1DLZmj3Yi3yhNvpJ5blju5E
 dX8SO3vxi4xli/ZhwW+kuQ+TnDWVgnYPz1a2ilcvqixLi2spwbNJRJztBRFanCwmW1
 95Af7pDH1t6Xw==
Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@HIDDEN;
 helo=mxout5.mail.janestreet.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, 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-Spam-Score: 0.9 (/)
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.1 (/)


1. emacs -Q --fg-daemon=/nonexistent/dir/sock
2. Emacs prints "Starting Emacs daemon." and sits in foreground.
3. emacsclient -c -s /nonexistent/dir/sock
4. emacsclient prints and exits:
emacsclient: can't find socket; have you started the server?
emacsclient: To start the server in Emacs, type "M-x server-start".
emacsclient: error accessing socket "/nonexistent/dir/sock"

This is because in step 1, the server actually failed to start, but
Emacs did not log that at all.  In fact, it's impossible to access the
Emacs started in 1 now, since it's not actually running a server and it
has no frames.

The same thing happens with --bg-daemon, although it's slightly more
obvious that something is wrong in that case, because --bg-daemon is not
supposed to sit in foreground.

Emacs with --fg-daemon should instead print an error and exit if it
fails to start the server.


In GNU Emacs 30.0.50 (build 22, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.15.12, Xaw scroll bars) of 2024-01-29 built on
 igm-qws-u22796a
Repository revision: cbc8bdc1386a4bc9c420d8ab06b844c6f6928c35
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Rocky Linux 8.9 (Green Obsidian)

Configured using:
 'configure -C 'CFLAGS=-O0 -g3' --with-gif=ifavailable
 --with-x-toolkit=lucid'

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

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  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
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: 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:
None found.

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 x-toolkit
xinput2 x multi-tty move-toolbar make-network-process emacs)

Memory information:
((conses 16 64886 10659) (symbols 48 9545 0) (strings 32 22761 1636)
 (string-bytes 1 676280) (vectors 16 9262)
 (vector-slots 8 111310 9095) (floats 8 40 17) (intervals 56 262 0)
 (buffers 976 10))




Acknowledgement sent to Spencer Baugh <sbaugh@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#68799; 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: Sat, 10 Feb 2024 20:15:01 UTC

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