Received: (at 82032) by debbugs.gnu.org; 2 Nov 2026 12:15:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 02 07:15:17 2026 Received: from localhost ([127.0.0.1]:39526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xNqwW-0005q9-S0 for submit <at> debbugs.gnu.org; Mon, 02 Nov 2026 07:15:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47792) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xNqwU-0005o9-IF for 82032 <at> debbugs.gnu.org; Mon, 02 Nov 2026 07:15:15 -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 1xNqwN-0000OG-6q; Mon, 02 Nov 2026 07:15:08 -0500 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=x4YlfbTj9FDFTHBUgc9Uh1BjpkxHqW+P5myudFFolWE=; b=c4JLmexWdjg0VK96Gmoe k1pB9DXruUqraBNVrA6Z+mC5zbU+8dmDEk+eXQ66K6FVkJ3IVw/cek1t3l7Ttj/6azCYIcTr6imhc creE1wSA8ZQdEe9jrcVK9I57z1w5aY9Ajc7aLZx9kvLDFfD2n/3r4WTkUdyAIO004bSLNTYk0hZ85 uaSwmp0lwtqw45pmP/Gf5dbSFh1uqg939E47Z9r2I/pz9gyF5BMSPLMVbF6GuvL5AtgISqXPZwbFi V/96QDbQDjyEn98K+9c1aMSvQT7dxmaW273f8ZPxbPoPCpU2d51L9I+ECSObbGqUjwpdVHP1rcX5M umlyHcByww44zQ==; Date: Mon, 02 Nov 2026 14:14:55 +0200 Message-Id: <86bj87qvk0.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Stefano Pacifico <github@HIDDEN> In-Reply-To: <F54A595B-6F49-404E-B015-DFE5FADADE6A@HIDDEN> (message from Stefano Pacifico on Sun, 1 Nov 2026 21:30:16 -0500) Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> <CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN> <57A401CE-363F-4D7C-BA01-A3406D34D733@HIDDEN> <CAN+1HbquL+UMX=Dm1KZLLaUE6CLMda32LSVQO9yAV_P=pZe7Zw@HIDDEN> <CAN+1Hbo+sHxehgXFKOuMKq76mhCP0AkVAwn001c7o5vsdV5OSQ@HIDDEN> <861p9i717t.fsf@HIDDEN> <F54A595B-6F49-404E-B015-DFE5FADADE6A@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: 82032 Cc: alan@HIDDEN, shipmints@HIDDEN, 82032 <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: Stefano Pacifico <github@HIDDEN> > Date: Sun, 1 Nov 2026 21:30:16 -0500 > Cc: Stéphane Marks <shipmints@HIDDEN>, > alan@HIDDEN, > 82032 <at> debbugs.gnu.org > > > > > On Oct 22, 2026, at 1:28 AM, Eli Zaretskii <eliz@HIDDEN> wrote: > > > >> From: Stéphane Marks <shipmints@HIDDEN> > >> Date: Wed, 21 Oct 2026 17:40:49 -0400 > >> Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <at> debbugs.gnu.org > >> > >> --- a/etc/PROBLEMS > >> +++ b/etc/PROBLEMS > >> @@ -3659,6 +3659,20 @@ The usual reason for this is that the color file, > >> ~/Library/Colors/Emacs.clr, is stale or corrupted. The solution is to > >> delete that file and restart Emacs. > >> > >> +** Warning about NSColorList 'Emacs' not editable when starting on macOS > >> + > >> +When starting Emacs, you may see a warning in the system log or console: > >> + > >> + Warning: NSColorList 'Emacs' is not editable > >> + > >> +This happens when ~/Library/Colors/Emacs.clr cannot be modified, > >> +for example when running under a restricted sandbox, container, or > >> +in environments like Nix or Guix where user library paths are read-only. > >> + > >> +While Emacs will start without crashing, named colors will fail to > >> +resolve, causing faces and frames to display with fallback or altered > >> +colors. > > > > This PROBLEMS entry is less helpful than it could be, because (unlike > > the other entries) it doesn't tell how to solve or work around the > > problem. Describing solutions and workarounds, not just the problems, > > is the raison d'être of etc/PROBLEMS, so please let's reword or amend > > this entry to make it more useful. > > > > Thanks. > > > Good point, thank you. Here is an updated version of the etc/PROBLEMS > entry that explains how to resolve or work around the issue depending on > whether it is caused by file permissions or a read-only sandbox. Is this acceptable? Yes, this version LGTM, thanks.
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 2 Nov 2026 02:30:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 01 21:30:39 2026
Received: from localhost ([127.0.0.1]:47633 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xNhok-0007Z6-1M
for submit <at> debbugs.gnu.org; Sun, 01 Nov 2026 21:30:39 -0500
Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]:33253)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <github@HIDDEN>)
id 1xNhoe-0007XY-Vj
for 82032 <at> debbugs.gnu.org; Sun, 01 Nov 2026 21:30:36 -0500
Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
by mailfout.phl.internal (Postfix) with ESMTP id BFD48EC0252
for <82032 <at> debbugs.gnu.org>; Sun, 1 Nov 2026 21:30:27 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
by phl-compute-02.internal (MEProxy); Sun, 01 Nov 2026 21:30:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h=
cc:cc:content-transfer-encoding:content-type:content-type:date
:date:from:from:in-reply-to:in-reply-to:message-id:mime-version
:references:reply-to:subject:subject:to:to; s=fm1; t=1793586627;
x=1793673027; bh=SS4umnWidYUk0g313pKKidwFR/q3P+6uNP8K6tMniew=; b=
khyXJQIEf9NPTEYWpyXcaNljj/F0+LpytDytiHbdj/udO48o7H+ORpFY1hVR/4E8
va7os0w1YmGV2FaKYdbDVNWbMVWwNRoe5TIYWDgxX43qgQtD7082Rd9GbLtdSdEX
N9vaTprH9QEaDiE3lISjKxg+P7CZtT4aflfySPC9qprxOwmDfLJkYEIeMgJfDBRM
MA0udiOwpkF6EEHzTa05OdBhUtoxzYlyz62ZBKaSyL8pNiGkdjrATg856w85ON7I
iaXrO8etCwZjbf9Jr5jM/m1EmzNeZnKiV1cZRbAle1AnQQejSPZQeVBuPesh48BE
6CJ6zyRqBKb/gxWqqJY0/Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-transfer-encoding
:content-type:content-type:date:date:feedback-id:feedback-id
:from:from:in-reply-to:in-reply-to:message-id:mime-version
:references:reply-to:subject:subject:to:to:x-me-proxy
:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1793586627; x=
1793673027; bh=SS4umnWidYUk0g313pKKidwFR/q3P+6uNP8K6tMniew=; b=n
qzglVTLFpgN6FibLbN6a27uz5RnFjoy2TYEhblaFJCZEY2UOADJDEk8isQ3+vSFd
7b90H1mm1IpmmeHXiGQ0C2CEfiICAHtZuhhxekUB2PzNCrg+YE+D6GxsDi4e/LKF
T9MO4AlqbcJHI4s2otjbavAGGdGcSpPFSsoprXCTEg911YsM862dIV3Sk4Eqwfip
Win7UTnhms/Qr90LLhyfTO27c3qw1s5LJ+HtNju34B9s7n24j5f5V9FxBzDbJ1u8
i4Qe3YXnPNTff2Fzu7ODJoqJ7heC7heedkNV+X4yBIDoc5Mvrrew15+zfIgSMUiV
dpeZvQGi9W7XK6xEobG/A==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08;
repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox;
action=sign d=pacifico.cc a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1793586627; d=pacifico.cc;
mf=PGdpdGh1YkBwYWNpZmljby5jYz4=;
rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=;
s=fm1:rsa-sha256:jkFw23JxFQ9iLUkQ+VNryEhCxen2r2I7NuS1m50EbcbHdKi
Ld0ZYzgNWnCRkCHo2K8EXXSfBSt4kpxywlf8ByNogNdNHM2P2vKKT01FlZwTexSA
rPQuEIha63RVnq7j4tIHaZ//+n0bTDghFh4nviCmXaEUgRJiRECehflN8RJDHuJa
dV+EKn9IJpsvQa0mAmRgeqPgGR8ZhGPmp+UQEJJXOT26I10r7qDcCmdDKTo4MKyW
WOe/Bm/xWWdXyRYfhpnc+d550Rp0o61kIIaCxEb4nbcmXTtHwagNOZeMlAkF5hM/
Wd7qPaaaJNIRRX+slpFE2IcCQrc5Ed4WPZMzKtA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08;
repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox;
action=mi-m=1; hc=12;
hn=cc,content-transfer-encoding,content-type,date,feedback-id,
from,in-reply-to,message-id,mime-version,references,subject,to;
Message-Instance: m=1;
h=sha256:QcdFi73+0rbIGx3UD269JBI+m44aJ3qkoiDZciJUT/M=:v2oZhqorPCS5LIG7+sGBdl4YslHO/zb4ultKaebuNQ8=;
X-ME-Sender: <xms:w_Xnai5kQliiphPvaDplfEY-NzUz1_MIbBA5sLNMvnRwrhn09HxEPQ>
<xme:w_Xnai683Nu9y7OcSPbBltiX1z9299CTIieV20-dZkPochLo5ebMCKXnIIzUmab0-
APGOfF4-zQuA3briQ0yDT_GPM1u3zUk1Jz7rfHoiPCXTsnpkb-7GFc>
X-ME-Received: <xmr:w_XnameBX7qaA23RaUcqbTx7xh7OfanLeQm8C-qlwZVz68-QIdmNSPd9WrXU5FbK3b-j_0ch86tdwrOIczUc-OZcihDl_HOqdvn2rNVuC4a-VutkoOJezARkSQ>
X-ME-Proxy-Cause: dmFkZTGW3Epxs0g2Ln/MJap7BQWFbt+WHqpkl5m8uIactopY5f5e0QABLtQj6nzSd2ent8
u6+nd1LJZsG43cf1uqOiV+jclorP7rFd1mqfq2ciS9rhe3h7h5mEHLnwnEwlTjKQEE3xze
rz8xdD6C1wYJ8jivX8Qq0nf8cxyA5JY9z9HgbdlwXluhUy3Q8cF/SKMa1IcgeIywI/+q28
E/0wDso/mL4QQkGXn1vE1Uf60sMjQWWWRuwtW/ARf2yHtn2nq+oyVo2GG0aOQa5m7k/zE+
Dny9PTIhisIabqBmZavf11TNymk/YjykaMkM6k0fKwNaVfWLEU6FD3ILJqH0HWy3th5gA6
Ki/XHwU2YkSurslpqRfHMtd1MsPfz0Klmj0CCs0MXDWNGSUAxe9rb/CEETsZKZHurVYSPZ
ubSPoUAJDrV0DDJ+na7idySUMwUN6ROdcoA4qnCuTNvqWAb9wvnQNtCshZi6RsvrGGpQPE
h/IU5vEj4aoNwzOOq1BbAawyTrLamuZOOZhcRvQscFhM3QGk0BE6NASQdcZGJOhM7nFN0u
wCZckZRwVmX7e48DWnxnoitKxKbUdBkjEMQ8mUlOeaBV50U82msw2RfkVHvkmCrkczU425
upTtWgllIIKLiExJ1GaS2hVeYVEPpLVEmIw1/sBm1vFskQ8RXkbMgmphaRZg
X-ME-Proxy: <xmx:w_XnauCwAJ95Vj8ehmoeE3jzMQ_DPijIJYeSBIW90TWdMdn4DPkm1w>
<xmx:w_Xnah_F9U1p-ZeFAG0LBltvNUcdL_YEhOOY3H2pPBt6qQLL8Z6HOQ>
<xmx:w_XnahIW6enInk4wE_-8y2whGri0L41sy8WNylB3Xr3DuwJpPTHvug>
<xmx:w_XnaiillX55BcPjEATAYmtAvmFMQQbDn6Y_SIsMMfxIcuP_Onnz8A>
<xmx:w_XnatpQlAuj1lxvg5zXYHfXZm5IxA3TPYu2UdYqiKZ9_kblU1K7Vgeq>
Feedback-ID: ie93843ea:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
1 Nov 2026 21:30:26 -0500 (EST)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.200.71.1.16\))
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
From: Stefano Pacifico <github@HIDDEN>
In-Reply-To: <861p9i717t.fsf@HIDDEN>
Date: Sun, 1 Nov 2026 21:30:16 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <F54A595B-6F49-404E-B015-DFE5FADADE6A@HIDDEN>
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
<CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
<16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
<CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN>
<CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN>
<03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN>
<CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN>
<B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN>
<CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN>
<53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN>
<CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN>
<78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN>
<CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN>
<57A401CE-363F-4D7C-BA01-A3406D34D733@HIDDEN>
<CAN+1HbquL+UMX=Dm1KZLLaUE6CLMda32LSVQO9yAV_P=pZe7Zw@HIDDEN>
<CAN+1Hbo+sHxehgXFKOuMKq76mhCP0AkVAwn001c7o5vsdV5OSQ@HIDDEN>
<861p9i717t.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3901.200.71.1.16)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 82032
Cc: alan@HIDDEN, =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>,
82032 <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 (-)
> On Oct 22, 2026, at 1:28=E2=80=AFAM, Eli Zaretskii <eliz@HIDDEN> =
wrote:
>=20
>> From: St=C3=A9phane Marks <shipmints@HIDDEN>
>> Date: Wed, 21 Oct 2026 17:40:49 -0400
>> Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, =
82032 <at> debbugs.gnu.org
>>=20
>> --- a/etc/PROBLEMS
>> +++ b/etc/PROBLEMS
>> @@ -3659,6 +3659,20 @@ The usual reason for this is that the color =
file,
>> ~/Library/Colors/Emacs.clr, is stale or corrupted. The solution is =
to
>> delete that file and restart Emacs.
>>=20
>> +** Warning about NSColorList 'Emacs' not editable when starting on =
macOS
>> +
>> +When starting Emacs, you may see a warning in the system log or =
console:
>> +
>> + Warning: NSColorList 'Emacs' is not editable
>> +
>> +This happens when ~/Library/Colors/Emacs.clr cannot be modified,
>> +for example when running under a restricted sandbox, container, or
>> +in environments like Nix or Guix where user library paths are =
read-only.
>> +
>> +While Emacs will start without crashing, named colors will fail to
>> +resolve, causing faces and frames to display with fallback or =
altered
>> +colors.
>=20
> This PROBLEMS entry is less helpful than it could be, because (unlike
> the other entries) it doesn't tell how to solve or work around the
> problem. Describing solutions and workarounds, not just the problems,
> is the raison d'=C3=AAtre of etc/PROBLEMS, so please let's reword or =
amend
> this entry to make it more useful.
>=20
> Thanks.
Good point, thank you. Here is an updated version of the etc/PROBLEMS
entry that explains how to resolve or work around the issue depending on
whether it is caused by file permissions or a read-only sandbox. Is this =
acceptable?=20
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -3659,6 +3659,34 @@ The usual reason for this is that the color =
file,
~/Library/Colors/Emacs.clr, is stale or corrupted. The solution is =
to
delete that file and restart Emacs.
+** Warning about NSColorList 'Emacs' not editable when starting on =
macOS
+
+When starting Emacs, you may see a warning in the system log or =
console:
+
+ Warning: NSColorList 'Emacs' is not editable
+
+This happens when ~/Library/Colors/Emacs.clr is missing or =
incomplete
+and cannot be created or modified, for example when the directory =
or
+file permissions are read-only, or when running under a restricted
+sandbox, container, or in environments like Nix or Guix where user
+library paths are read-only.
+
+While Emacs will start without crashing, named colors from rgb.txt
+will fail to resolve unless a valid Emacs.clr file is present, =
causing
+faces and frames to display with fallback or altered colors.
+
+To solve or work around this problem:
+
+- Check the permissions of ~/Library/Colors and
+ ~/Library/Colors/Emacs.clr, and restore write access (e.g., via
+ "chmod u+w") if they were made read-only inadvertently, then =
restart
+ Emacs so it can regenerate the file.
+
+- If Emacs is running inside a restricted sandbox or container =
where
+ ~/Library/Colors cannot be made writable, generate a valid
+ ~/Library/Colors/Emacs.clr by starting Emacs once outside the
+ sandbox, and make that file (or /Library/Colors/Emacs.clr) =
readable
+ inside the sandboxed environment.
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 22 Oct 2026 05:29:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 22 01:29:08 2026 Received: from localhost ([127.0.0.1]:38414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xJlMR-0001tK-F0 for submit <at> debbugs.gnu.org; Thu, 22 Oct 2026 01:29:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34000) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xJlMN-0001qQ-QL for 82032 <at> debbugs.gnu.org; Thu, 22 Oct 2026 01:29:05 -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 1xJlMH-000533-Uh; Thu, 22 Oct 2026 01:28:57 -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=0oaFthlz4LL3ZpOeT3VgiBlyLVSVsf9Fm+U0vgJNRs0=; b=SrmoojiUvPT6dXjmjcFY rJr/aMfozYpw7ELszDfyrlrs5WMoGnF2UzbcPVzWKKuR9Fmmp7nIwUlcWziOYmKqVpQblqOaaR2Gh vqly8BsXf5aAkOb8MtFCxqLrnY01egkAulEMpP9ud/bBXHuY+egJ5FJqJ1sWu0N+br0vCklai/svP wRe3sWgGC6pXbMqtQ9Bu3c7gxLLlGvC2fIsPRREHRJ9umAGwu/BAthy44F0JEcHyRjASdPFINKNqH yG1Yy0GcuU5Jph7L5FUouatXnh95SdXnnKPqDdTnFrzA+paJJE2AmujkPoyWLa4bCZVSycxaDMPcc F4vHgGSNRi/lWA==; Date: Thu, 22 Oct 2026 08:28:54 +0300 Message-Id: <861p9i717t.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?Q?St=C3=A9phane?= Marks <shipmints@HIDDEN> In-Reply-To: <CAN+1Hbo+sHxehgXFKOuMKq76mhCP0AkVAwn001c7o5vsdV5OSQ@HIDDEN> (message from =?utf-8?Q?St=C3=A9phane?= Marks on Wed, 21 Oct 2026 17:40:49 -0400) Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> <CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN> <57A401CE-363F-4D7C-BA01-A3406D34D733@HIDDEN> <CAN+1HbquL+UMX=Dm1KZLLaUE6CLMda32LSVQO9yAV_P=pZe7Zw@HIDDEN> <CAN+1Hbo+sHxehgXFKOuMKq76mhCP0AkVAwn001c7o5vsdV5OSQ@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: 82032 Cc: alan@HIDDEN, 82032 <at> debbugs.gnu.org, github@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: Stéphane Marks <shipmints@HIDDEN> > Date: Wed, 21 Oct 2026 17:40:49 -0400 > Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <at> debbugs.gnu.org > > --- a/etc/PROBLEMS > +++ b/etc/PROBLEMS > @@ -3659,6 +3659,20 @@ The usual reason for this is that the color file, > ~/Library/Colors/Emacs.clr, is stale or corrupted. The solution is to > delete that file and restart Emacs. > > +** Warning about NSColorList 'Emacs' not editable when starting on macOS > + > +When starting Emacs, you may see a warning in the system log or console: > + > + Warning: NSColorList 'Emacs' is not editable > + > +This happens when ~/Library/Colors/Emacs.clr cannot be modified, > +for example when running under a restricted sandbox, container, or > +in environments like Nix or Guix where user library paths are read-only. > + > +While Emacs will start without crashing, named colors will fail to > +resolve, causing faces and frames to display with fallback or altered > +colors. This PROBLEMS entry is less helpful than it could be, because (unlike the other entries) it doesn't tell how to solve or work around the problem. Describing solutions and workarounds, not just the problems, is the raison d'être of etc/PROBLEMS, so please let's reword or amend this entry to make it more useful. Thanks.
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 21 Oct 2026 21:41:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 21 17:41:18 2026 Received: from localhost ([127.0.0.1]:38743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xJe3e-0006tZ-1h for submit <at> debbugs.gnu.org; Wed, 21 Oct 2026 17:41:18 -0400 Received: from mail-ua1-x92c.google.com ([2607:f8b0:4864:20::92c]:59502) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1xJe3W-0006r6-80 for 82032 <at> debbugs.gnu.org; Wed, 21 Oct 2026 17:41:10 -0400 Received: by mail-ua1-x92c.google.com with SMTP id a1e0cc1a2514c-99059bdcdeaso315648241.2 for <82032 <at> debbugs.gnu.org>; Wed, 21 Oct 2026 14:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792618860; cv=none; d=google.com; s=arc-20260327; b=lHqQtLpM32rUyf06SGCv08+ik4li9g8DnvqGxjwq8hVE3SKydZ8vfohfFOph5g8sRL J6lG2/+xLy0KS297HJNNtc7kDTqIrUCAP6k+zZ6hEl5LYV4y/RI2uj8v3FaLzr/sLqIJ PDAqX4HD+lUk5b+uO1Rr04BbZsrwiKJRE+MUGDHALQZcXriiT7bbwuKEILKGfksuhB5J YcedxCNXP5poUPzdPYnfhDnA3rjbkBnQe9Wd4uSaJh7PK89izKohklXlL43nO7uHdSNs a2BR6WNN5yjie79QfjOzne1tLBH4JHCDUKt3BV4KGNdh/qJmVkeUi0lkwALxllVrtXNO 7SMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=INtDGHBqdNntjexfrThY606Pz8jGUMlMuWCETbO+v54=; fh=2jHsCLHuDDIXfRP8etcE93HfLwcG7E13kVVj3j8Lp9o=; b=WuoprKr8waA+AUZgkVtKsz7koPNTtJKuPYJGiQY0d0SWwiJrD6HYJ/S9g0LtMEa6fr pQmStbJL0atWZ24bfDShrSORK8v5OVgfJewIqzHg2WfOFgizsnoKPxc3OXPg3mzMaxaX vegVbBPrzDqYXVtM9dUwSRqPmUJw4eo9HQgDqmD+kAyWC5lx7tu6hbaeZ58HID4Yo9SZ KzmnEQMgaYhW9TRwNjLX3x04OlUtk9oACWQ2OgnT9OQT7MYa8MDdC6J75cIiNkb2zFRL PVmb/ci6f2hsIBWMfvhmRu0BTZXvysAZfWscEelicQhOuQugeOdCrVoXia/iTLSPyZAY Sqvg==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792618860; x=1793223660; darn=debbugs.gnu.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=INtDGHBqdNntjexfrThY606Pz8jGUMlMuWCETbO+v54=; b=B1vSW3pLeUmxNaxlqpT6+VoXGQe5PfV4RWog961Lroj312I4hFhT4EiyWSDYYR9rQA 5+i3Nta+C2+Wo2orq3mAnlia2xwwOFMT7gWBXqzZ/e7Pg14E+Bfr1OnHUCmHkhUZPO27 ZIM9ukyywakOquOuxhZM0Q3F6Bpu+WUy9Htgj/7+n6sOFv6HbfCa4vX1i9lVWQChRJ1A zhUanIB9+Rn5UNXHsT4FW8U0NJ0BlJ7omP4jG/edk4SKfBeOYXRQ7uUY/H2b4ubj5xnk HoFPDhCRGAGobOog51IO1RsK/LYK1quuA8hKJSa23fZqEHxQF6ymGQIq1NnAL3TJihUP zy3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792618860; x=1793223660; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=INtDGHBqdNntjexfrThY606Pz8jGUMlMuWCETbO+v54=; b=uom1OenXjoQKlsclm4MYnbLeaIVWwTkOqoXJQbc43WrRXAueX9W4Nkgbqp2tPVh2sr /MCH3mAMFOqWSNNSjYcJ/3yq9bmfcNT678donhawsw8SwzsfFUGwNt58sgGhuFkCX204 qJfSaMrEc+fBx8VQUyYX5eG5v54MzW6U38bivzROdhHuyQRzq2fSOHM24Y3ONtsdsx6Z 1C8XPKansyndE4s304EHqJuBmxo0vsjgl4RJNUxKt4hXmEwN09VGMHzx6rhLXSAjKLj4 dm2rN4nHya//VvekO+VyVBb1VaDrK5XzogV9cUUeSlkmukIb76Ao+Wcz3I/ICiWZ0fPj BC0Q== X-Forwarded-Encrypted: i=1; AKwUvBzU6TTA7KOWt497gPuz/tI6StzEO/IwddnNFBIzq9G/WSWonZiNHZzla3ibR9yw/M0qZj/a7w==@debbugs.gnu.org X-Gm-Message-State: AFq9FYJQN8oY7rRJb96I/qMdem+Jl8XRxg9gs6vXKcVBqGHLLCXbVJn8 NO2o1GSzO109joiWIBuTqugHjwoymjcF0EH5s4Bw2WuDW1hLct23CLcZXxjumTcu4Hj0H3KIrqV ONBqNLDGsdhwIyPXmsLgWfDJfPPU5FYw= X-Gm-Gg: AYBFou2Vw6nVUz6toySD7QYSKTM6hYF1YeKkExKbPDdQol5e6MuJ+SKDLrEyxTikPKu JqERE6XVww458a6SpIo3L8R+RZhrsYBeq9FL8SCaM2q3uEzwu7bBhz9VHyT6F0u8YDByVqqqww9 XdF0kp/XS00Luh4uk0QJpNi38NFOjdoUGBhmfi6y9Aiu9shuw/tgaQI6FbF/Z4ABV2iRytLEu2i xrLgN/VyYpXLMtb5Cy8eNIJJBEQBlTIi3zfiXpe+xr8R6rLtBlaJ4+BdbiSoIpzqJwgKLem7l69 E+XxQpknNZexKui5f8BUwUunBYvD5BeZIFm0lx177EIRTEHcZjoGhZv03B98QLQMFTX6lC8aeMK gI17alx1l7N7ZXDOMcX7u06pFHgxAgFcrJzLiABG0D0a8pWsApIqy6fjs6bv+HOiFD8O19AF+YN SJafsiESlIje8/VhsaiWfqBNNemPfeX0SKUQ8L1F2c71ROLBQL3xqzRKW0u2H1mwO8Ct6PoKTNj UBPx8ikBR3sXmspiTOCeRs+3gtT4Qx3rLNDs8Ci1cmEdvwTuwUO6nDWeIhQ5Sk= X-Received: by 2002:a05:6102:3709:b0:7c8:268:ecd7 with SMTP id ada2fe7eead31-7cc92739b17mr1052656137.23.1792618860356; Wed, 21 Oct 2026 14:41:00 -0700 (PDT) MIME-Version: 1.0 References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> <CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN> <57A401CE-363F-4D7C-BA01-A3406D34D733@HIDDEN> <CAN+1HbquL+UMX=Dm1KZLLaUE6CLMda32LSVQO9yAV_P=pZe7Zw@HIDDEN> In-Reply-To: <CAN+1HbquL+UMX=Dm1KZLLaUE6CLMda32LSVQO9yAV_P=pZe7Zw@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Wed, 21 Oct 2026 17:40:49 -0400 X-Gm-Features: AclHuK8Oj3oCTQgbRmb56PiwWZ80v40SBNvBm8acPKNojiVA_oNy_BNzTYEieyQ Message-ID: <CAN+1Hbo+sHxehgXFKOuMKq76mhCP0AkVAwn001c7o5vsdV5OSQ@HIDDEN> Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) To: Stefano Pacifico <github@HIDDEN> Content-Type: multipart/mixed; boundary="00000000000063cf72065e609a78" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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: 0.0 (/) --00000000000063cf72065e609a78 Content-Type: multipart/alternative; boundary="00000000000063cf6f065e609a76" --00000000000063cf6f065e609a76 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 14, 2026 at 6:22=E2=80=AFPM St=C3=A9phane Marks <shipmints@gmai= l.com> wrote: > On Wed, Oct 14, 2026 at 6:12=E2=80=AFPM Stefano Pacifico <github@pacifico= .cc> > wrote: > >> >> >> On Oct 14, 2026, at 5:54=E2=80=AFPM, St=C3=A9phane Marks <shipmints@gmai= l.com> wrote: >> >> On Wed, Oct 14, 2026 at 5:45=E2=80=AFPM Stefano Pacifico <github@pacific= o.cc> >> wrote: >> >>> >>> >>> On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gm= ail.com> >>> wrote: >>> >>> On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico <github@pacif= ico.cc> >>> wrote: >>> >>>> >>>> >>>> On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gm= ail.com> >>>> wrote: >>>> >>>> On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <github@paci= fico.cc> >>>> wrote: >>>> >>>>> >>>>> [=E2=80=A6] >>>>> >>>>> I think the attached patch should address your feedback. >>>>> >>>> >>>> Almost there. I'd move etc/PROBLEMS to the end of the changed file >>>> list as it's less important than the code changes. In the PROBLEMS te= xt, >>>> you write "Emacs continues to operate normally" but that is not the ca= se. >>>> I tested the code by making an emtpy Emacs.clr file unwritable and Ema= cs -Q >>>> GUI display appeared differently, so it was not "operating normally." = Are >>>> you assuming that in all cases a correctly populated Emacs.clr file wi= ll >>>> already exist? >>>> >>>> >>>> Stephane, >>>> >>>> Thanks. I think the attached should respond to your request for change >>>> and clarification. >>>> >>> >>> Do you think perhaps we should counsel seeding a pre-populated Emacs.cl= r >>> file for those that still want proper operation when the file is not >>> writable? >>> >>> >>> Hi St=C3=A9phane, >>> >>> My preference would be to fall back on an in-memory cache built from >>> `rgb.txt` . AFAICT generating and adding `Emacs.clr` to the App bundle= on >>> `make install` would create issues for those who do not run `make insta= ll` >>> or use the bundle, and it would add additional I/O constraints without >>> providing additional benefits, like OS integration. >>> >>> It=E2=80=99s my first contribution to the project, so I=E2=80=99m happy= to follow your >>> guidance. My instinct, would be resolve this bug with the existing patc= h, >>> and then work on improving the default behaviors. >>> >> >> What I meant was to counsel people to pre-install a populated Emacs.clr >> file in the distributions/trees/whatever that are read only in their >> circumstance. >> >> >> That=E2=80=99s fine but where should they install it? The locations are >> hard-coded in Appkit AFAIU and sandboxing may not give access to those. >> >> I could be completely missing how someone runs an Emacs session in a >> sandbox that's completely empty of everything they need to inherit about >> their operating environment to begin with. >> >> >> I don=E2=80=99t think that not having access to those locations (Appkit = colors >> configuration) is the same as =E2=80=9Ccompletely empty of everything th= ey need to >> inherit about their operating environment=E2=80=9D. Sandboxes are increa= singly >> adopted in the wild for many reasons, mostly due to lack of trust in the >> software (that=E2=80=99s how I stumbled upon the bug). >> >> In any event, I think the proposal of mapping the contents of `rgb.txt` >> in memory when `Emacs.clr` is useful independent from the previous >> statement. >> > > Okay let's go ahead with the patch then and if you separately want to wor= k > on the rgb.txt fallback, that would be great. > Alan, if you have time, would you review Stefano's patch (attached) and install it if you're okay with it? --00000000000063cf6f065e609a76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b= ackground-color:transparent">On Wed, Oct 14, 2026 at 6:22=E2=80=AFPM St=C3= =A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN">shipmints@HIDDEN= om</a>> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_c= ontainer"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8= ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr= "><div dir=3D"ltr"><div style=3D"font-family:monospace"><span style=3D"font= -family:Arial,Helvetica,sans-serif;background-color:transparent">On Wed, Oc= t 14, 2026 at 6:12=E2=80=AFPM Stefano Pacifico <<a href=3D"mailto:github= @pacifico.cc" target=3D"_blank">github@HIDDEN</a>> wrote:</span></d= iv></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div><br id=3D"m_8250495136926004160m_1849985563076890117lineBre= akAtBeginningOfMessage"><div><br><blockquote type=3D"cite"><div>On Oct 14, = 2026, at 5:54=E2=80=AFPM, St=C3=A9phane Marks <<a href=3D"mailto:shipmin= ts@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br= ><div><div dir=3D"ltr" style=3D"font-family:Helvetica;font-size:13px;font-s= tyle:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;= text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor= d-spacing:0px;text-decoration:none"><div dir=3D"ltr"><div style=3D"font-fam= ily:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;backgr= ound-color:transparent">On Wed, Oct 14, 2026 at 5:45=E2=80=AFPM Stefano Pac= ifico <<a href=3D"mailto:github@HIDDEN" target=3D"_blank">github@pa= cifico.cc</a>> wrote:</span></div></div><div class=3D"gmail_quote"><bloc= kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:= 1px solid rgb(204,204,204);padding-left:1ex"><br id=3D"m_825049513692600416= 0m_1849985563076890117m_-7317608433231813587lineBreakAtBeginningOfMessage">= <div><br><blockquote type=3D"cite"><div>On Oct 14, 2026, at 10:42=E2=80=AFA= M, St=C3=A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN" target=3D= "_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><div dir=3D"ltr" = style=3D"font-family:Helvetica;font-size:13px;font-style:normal;font-varian= t-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-i= ndent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-deco= ration:none"><div dir=3D"ltr"><div style=3D"font-family:monospace"><span st= yle=3D"font-family:Arial,Helvetica,sans-serif;background-color:transparent"= >On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico <<a href=3D"m= ailto:github@HIDDEN" target=3D"_blank">github@HIDDEN</a>> wrot= e:</span></div></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_= quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,= 204);padding-left:1ex"><div><br id=3D"m_8250495136926004160m_18499855630768= 90117m_-7317608433231813587m_-1570370350513088641lineBreakAtBeginningOfMess= age"><div><br><blockquote type=3D"cite"><div>On Oct 13, 2026, at 7:56=E2=80= =AFAM, St=C3=A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN" targe= t=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><div dir=3D"l= tr" style=3D"font-family:Helvetica;font-size:13px;font-style:normal;font-va= riant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;te= xt-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-= decoration:none"><div dir=3D"ltr"><div style=3D"font-family:monospace"><spa= n style=3D"font-family:Arial,Helvetica,sans-serif;background-color:transpar= ent">On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <<a href= =3D"mailto:github@HIDDEN" target=3D"_blank">github@HIDDEN</a>>= wrote:</span></div></div><div class=3D"gmail_quote"><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"><br id=3D"m_8250495136926004160m_18499855630768= 90117m_-7317608433231813587m_-1570370350513088641m_-3821932156779052237line= BreakAtBeginningOfMessage"><div>[=E2=80=A6]</div><div><br></div><div>I thin= k the attached patch should address your feedback.=C2=A0</div></blockquote>= <div><br></div><div style=3D"font-family:monospace">Almost there.=C2=A0 I&#= 39;d move etc/PROBLEMS to the end of the changed file list as it's less= important than the code changes.=C2=A0 In the PROBLEMS text, you write &qu= ot;Emacs continues to operate normally" but that is not the case.=C2= =A0 I tested the code by making an emtpy Emacs.clr file unwritable and Emac= s -Q GUI display appeared differently, so it was not "operating normal= ly."=C2=A0 Are you assuming that in all cases a correctly populated Em= acs.clr file will already exist?</div></div></div></div></blockquote></div>= <div><br></div>Stephane,=C2=A0<div><br></div><div>Thanks. I think the attac= hed should respond to your request for change and clarification.=C2=A0</div= ></div></blockquote><div><br></div><div style=3D"font-family:monospace">Do = you think perhaps we should counsel seeding a pre-populated Emacs.clr file = for those that still want proper operation when the file is not writable?</= div></div></div></div></blockquote><br></div><div>Hi St=C3=A9phane,=C2=A0</= div><div><br></div><div>My preference would be to fall back on an in-memory= cache built from `rgb.txt` . AFAICT =C2=A0generating and adding `Emacs.clr= ` to the App bundle on `make install` would create issues for those who do = not run `make install` or use the bundle, and it would add additional I/O c= onstraints without providing additional benefits, like OS integration.=C2= =A0</div><div><br></div><div>It=E2=80=99s my first contribution to the proj= ect, so I=E2=80=99m happy to follow your guidance. My instinct, would be re= solve this bug with the existing patch, and then work on improving the defa= ult behaviors.=C2=A0</div></blockquote><div><br></div><div style=3D"font-fa= mily:monospace">What I meant was to counsel people to pre-install a populat= ed Emacs.clr file in the distributions/trees/whatever that are read only in= their circumstance.=C2=A0</div></div></div></div></blockquote></div><br><d= iv>That=E2=80=99s fine but where should they install it? The locations are = hard-coded in Appkit AFAIU and sandboxing may not give access to those.=C2= =A0</div><div><br></div><div><blockquote type=3D"cite"><div dir=3D"ltr"><di= v class=3D"gmail_quote"><div style=3D"font-family:monospace">=C2=A0I could = be completely missing how someone runs an Emacs session in a sandbox that&#= 39;s completely empty of everything they need to inherit about their operat= ing environment to begin with.</div></div></div></blockquote><div><br></div= >I don=E2=80=99t think that not having access to those locations (Appkit co= lors configuration) is the same as =E2=80=9Ccompletely empty of everything = they need to inherit about their operating environment=E2=80=9D. Sandboxes = are increasingly adopted in the wild for many reasons, mostly due to lack o= f trust in the software (that=E2=80=99s how I stumbled upon the bug).=C2=A0= </div><div><br></div><div>In any event, I think the proposal of mapping the= contents of `rgb.txt` in memory when `Emacs.clr` is useful independent fro= m the previous statement.=C2=A0</div></div></blockquote><div><br></div><div= style=3D"font-family:monospace">Okay let's go ahead with the patch the= n and if you separately want to work on the rgb.txt fallback, that would be= great.</div></div></div></blockquote><div><br></div><div class=3D"gmail_de= fault" style=3D"font-family:monospace">Alan, if you have time, would you re= view Stefano's patch (attached) and install it if you're okay with = it?</div></div></div> --00000000000063cf6f065e609a76-- --00000000000063cf72065e609a78 Content-Type: application/octet-stream; name="0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch" Content-Disposition: attachment; filename="0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch" Content-Transfer-Encoding: base64 Content-ID: <f_mvimz6pw0> X-Attachment-Id: f_mvimz6pw0 RnJvbSBlZmNlMmI1NmYxYTE5YzNhZWEzNjE3NDdjYjJiNjhkZjkzYTYwMjNmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW5vIFBhY2lmaWNvIDxnaXRodWJAcGFjaWZpY28uY2M+ CkRhdGU6IFNhdCwgMTAgT2N0IDIwMjYgMTU6NDI6MTYgLTA0MDAKU3ViamVjdDogW1BBVENIXSBG aXggY3Jhc2ggaW4gbnNfaW5pdF9jb2xvcnMgd2l0aCBub24td3JpdGFibGUgTlNDb2xvckxpc3QK IChidWcjODIwMzIpCgoqIHNyYy9lbWFjcy5jIChtYWluKTogRG8gbm90IGNhbGwgbnNfaW5pdF9j b2xvcnMgaWYgbm9uaW50ZXJhY3RpdmUuCiogc3JjL25zZm5zLm0gKG5zX2luaXRfY29sb3JzKTog V2FybiBhbmQgcmV0dXJuIGVhcmx5IGlmIGNvbG9yIGxpc3QKaXMgbm90IGVkaXRhYmxlLgoqIGV0 Yy9QUk9CTEVNUyAoUnVudGltZSBwcm9ibGVtcyBzcGVjaWZpYyB0byBtYWNPUyk6IERvY3VtZW50 IHdhcm5pbmcKYW5kIGNvbG9yIHJlc29sdXRpb24gY2F2ZWF0cyB3aGVuIE5TQ29sb3JMaXN0IGlz IG5vdCBlZGl0YWJsZS4KLS0tCiBldGMvUFJPQkxFTVMgfCAxNCArKysrKysrKysrKysrKwogc3Jj L2VtYWNzLmMgIHwgIDIgKy0KIHNyYy9uc2Zucy5tICB8ICA1ICsrKysrCiAzIGZpbGVzIGNoYW5n ZWQsIDIwIGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9ldGMvUFJP QkxFTVMgYi9ldGMvUFJPQkxFTVMKaW5kZXggOTZiOWUzZGYxOGEuLmM1MTEyNjZlZjIyIDEwMDY0 NAotLS0gYS9ldGMvUFJPQkxFTVMKKysrIGIvZXRjL1BST0JMRU1TCkBAIC0zNjU5LDYgKzM2NTks MjAgQEAgVGhlIHVzdWFsIHJlYXNvbiBmb3IgdGhpcyBpcyB0aGF0IHRoZSBjb2xvciBmaWxlLAog fi9MaWJyYXJ5L0NvbG9ycy9FbWFjcy5jbHIsIGlzIHN0YWxlIG9yIGNvcnJ1cHRlZC4gIFRoZSBz b2x1dGlvbiBpcyB0bwogZGVsZXRlIHRoYXQgZmlsZSBhbmQgcmVzdGFydCBFbWFjcy4KIAorKiog V2FybmluZyBhYm91dCBOU0NvbG9yTGlzdCAnRW1hY3MnIG5vdCBlZGl0YWJsZSB3aGVuIHN0YXJ0 aW5nIG9uIG1hY09TCisKK1doZW4gc3RhcnRpbmcgRW1hY3MsIHlvdSBtYXkgc2VlIGEgd2Fybmlu ZyBpbiB0aGUgc3lzdGVtIGxvZyBvciBjb25zb2xlOgorCisgIFdhcm5pbmc6IE5TQ29sb3JMaXN0 ICdFbWFjcycgaXMgbm90IGVkaXRhYmxlCisKK1RoaXMgaGFwcGVucyB3aGVuIH4vTGlicmFyeS9D b2xvcnMvRW1hY3MuY2xyIGNhbm5vdCBiZSBtb2RpZmllZCwKK2ZvciBleGFtcGxlIHdoZW4gcnVu bmluZyB1bmRlciBhIHJlc3RyaWN0ZWQgc2FuZGJveCwgY29udGFpbmVyLCBvcgoraW4gZW52aXJv bm1lbnRzIGxpa2UgTml4IG9yIEd1aXggd2hlcmUgdXNlciBsaWJyYXJ5IHBhdGhzIGFyZSByZWFk LW9ubHkuCisKK1doaWxlIEVtYWNzIHdpbGwgc3RhcnQgd2l0aG91dCBjcmFzaGluZywgbmFtZWQg Y29sb3JzIHdpbGwgZmFpbCB0bworcmVzb2x2ZSwgY2F1c2luZyBmYWNlcyBhbmQgZnJhbWVzIHRv IGRpc3BsYXkgd2l0aCBmYWxsYmFjayBvciBhbHRlcmVkCitjb2xvcnMuCisKICoqIG1hY09TIGRv ZXNuJ3QgY29tZSB3aXRoIGxpYnhwbSwgc28gb25seSBYUE0zIGlzIHN1cHBvcnRlZC4KIAogTGli eHBtIGlzIGF2YWlsYWJsZSBmb3IgbWFjT1MgYXMgcGFydCBvZiB0aGUgWFF1YXJ0eiBwcm9qZWN0 LgpkaWZmIC0tZ2l0IGEvc3JjL2VtYWNzLmMgYi9zcmMvZW1hY3MuYwppbmRleCAxMWZlNTY3NzM3 YS4uYjhkNTc1OGVhZGEgMTAwNjQ0Ci0tLSBhL3NyYy9lbWFjcy5jCisrKyBiL3NyYy9lbWFjcy5j CkBAIC0yMjkyLDcgKzIyOTIsNyBAQCBhbmRyb2lkX2VtYWNzX2luaXQgKGludCBhcmdjLCBjaGFy ICoqYXJndiwgY2hhciAqZHVtcF9maWxlKQogI2lmZGVmIEhBVkVfTlMKICAgLyogRm9yIGVhcmx5 IGNhbGxzIHRvIG5zX2xpc3BfdG9fY29sb3Igb3IgRm5zX2xpc3RfY29sb3JzLgogICAgICBNdXN0 IGZvbGxvdyBpbml0X2NhbGxwcm9jIHdoaWNoIHNldHMgZGF0YS1kaXJlY3RvcnkuICAqLwotICBp ZiAoIWR1bXBfbW9kZSkKKyAgaWYgKCFkdW1wX21vZGUgJiYgIW5vbmludGVyYWN0aXZlKQogICAg IG5zX2luaXRfY29sb3JzICgpOwogI2VuZGlmCiAKZGlmZiAtLWdpdCBhL3NyYy9uc2Zucy5tIGIv c3JjL25zZm5zLm0KaW5kZXggMTQ4YmJjNzkyM2EuLjM2NzM1Mjk4NDAwIDEwMDY0NAotLS0gYS9z cmMvbnNmbnMubQorKysgYi9zcmMvbnNmbnMubQpAQCAtMjI1NCw2ICsyMjU0LDExIEBAIEZyYW1l cyBhcmUgbGlzdGVkIGZyb20gdG9wbW9zdCAoZmlyc3QpIHRvIGJvdHRvbW1vc3QgKGxhc3QpLiAg Ki8pCiAJZmF0YWwgKCJDb3VsZCBub3QgcmVhZCAlcy5cbiIsIFNEQVRBIChjb2xvcl9maWxlKSk7 CiAKICAgICAgIGNsID0gW1tOU0NvbG9yTGlzdCBhbGxvY10gaW5pdFdpdGhOYW1lOiBAIkVtYWNz Il07CisgICAgICBpZiAoIVtjbCBpc0VkaXRhYmxlXSkKKwl7CisJICBOU0xvZyAoQCJXYXJuaW5n OiBOU0NvbG9yTGlzdCAnJUAnIGlzIG5vdCBlZGl0YWJsZSIsIFtjbCBuYW1lXSk7CisJICByZXR1 cm47CisJfQogICAgICAgZm9yICggOyBDT05TUCAoY29sb3JfbWFwKTsgY29sb3JfbWFwID0gWENE UiAoY29sb3JfbWFwKSkKIAl7CiAJICBjb2xvciA9IFhDQVIgKGNvbG9yX21hcCk7Ci0tIAoyLjU2 LjAKCg== --00000000000063cf72065e609a78--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 14 Oct 2026 22:23:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 14 18:23:23 2026 Received: from localhost ([127.0.0.1]:36316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xH7NS-0002Nu-K7 for submit <at> debbugs.gnu.org; Wed, 14 Oct 2026 18:23:22 -0400 Received: from mail-ua1-x92b.google.com ([2607:f8b0:4864:20::92b]:50199) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1xH7NH-0002Mp-11 for 82032 <at> debbugs.gnu.org; Wed, 14 Oct 2026 18:23:11 -0400 Received: by mail-ua1-x92b.google.com with SMTP id a1e0cc1a2514c-9906870a9baso406280241.0 for <82032 <at> debbugs.gnu.org>; Wed, 14 Oct 2026 15:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792016577; cv=none; d=google.com; s=arc-20260327; b=dr2eTbmPsVRQTkgVIfdfVXuqcSUq6I0xk5h6Kg1Qz7rIWclyXQm0k7yw64nxMzBuH9 6+5PGZFZWJMEm7hbXwhBRNrQbwIm8pFVuhdgv39Ita95si1jFMlY/yNC0tOiQDJsE/y7 YPM/GIw76kyZiX3YptNEPpo00qBL0be36B2Esr2rTIEvSFFhd4lHbl5emQLogpfdGxll juN5AX5Y7yHceI22rOxdM2qAEIkTmZ3GFbRg7KxHOahhGr5v2/1qRgurn4iTXGjWdbW+ Jib7QpkzW1XOvJiDzCmbjW9Ir7cOQ1JpOcdmj7aSC6Fo8TygrhnL8R4hrlNemhpYXp+f Dr1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=zXKQVw0rjNX9R29HnYcbEO5nKwancNTPjc2WIh8eeLY=; fh=P/R/HoLEhOiAC61Xe16VfXv2f2IbPnpN0oV42e7dqQg=; b=dID5mdpXf6+CXgOS9RIRqWPSoMn0KkPHTvjSeryYwXcA7I6nHljGIEY+12DRxwjz8l M7pUgDJFSVdCdDjVHkGmfnO+7Dxlb8XqKh+xuLSGsYdK72xM064o46b7EX3eO1Gqy9P3 gKpShuy3sLHsT8/ReaHj4+7SGaLPpYEcfgvsPvkJnTasn8v7czTohuh0tqYWYbwCebpU QJNrz5+DmwTUaiOQQowF7k8xrANXfy3KSbv7IAHpex/8iGP16TAG0DrpXKbbDeJ1KFes O1avfHHuPYILKgsKy4cDTnh4s00Xx+teDkhiV6cpPsPfuZS2b90RYXQNQrtgVUt6F57e lTyQ==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792016577; x=1792621377; darn=debbugs.gnu.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zXKQVw0rjNX9R29HnYcbEO5nKwancNTPjc2WIh8eeLY=; b=Ph9vZKjUe+TfwUyKRHy4DvIGt95JU0jnwZmt7oBx0tN0zdrdWi3cRZU4UdYJ7EMnw4 VRdwGOFHN/RVcb4Cp56tkQ8j2a0rFH69DThaiyS2pj4qZsq3W72pC8hx5UbHO013T/R/ 9Bb05oDy/KzFqh6BcyQ9gI6O6T7s24s/cbLmwec+e6cS7P7W0Z6GxCN7XHmTZxooPBFs 4MVtYUp7AgZrC5rqQqVbpnFP/uR/O6MxAmrooUdprHr1zHcJoFNGn+rMd5rISjwAhCco 4LJiCO+IXGDX+Rd6H6+HVJDo1rM7+fRFAsikdWdcVL+w3zLIqcGMQNpelzLVn3c2jMfI 1u7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792016577; x=1792621377; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=zXKQVw0rjNX9R29HnYcbEO5nKwancNTPjc2WIh8eeLY=; b=cG8TBNHU5tS/sdbk6W3VBQmizgAIzq3QURekyRi30CbPJPN7MkSFF571V/mTP3bqhJ 95oFkc533jgPFS5BoIqyHtIcmFMJm78KtWE3b1LOg6vdA6FMDQ/fUNcloHGzBMsKlb+v 97rGrDu0GK74V6JeugQCiBoPQZ5xws3PI9w48wpcXurRSD4Yje1Jk12nR13TnK3AIN2l /A7qLvIt33JL1eoI5Lahs7cbF7m1Eneh8/0ZF3TxLAJbWpA0UR8nV3eR9xvRGa9cK0zs xJPGFLHUTzAsSAMAjI1oCaEXNfSNbfeBRxFHMs0nMmb8EEiILMFZXUISRk4WdLSKnpmz RiwQ== X-Forwarded-Encrypted: i=1; AKwUvByfVsWL8DhfZUrp+HpNWcuvdwCUKTIoXIj6yKvdnF4yXt0Ncky2Zr17S5mjjhQeeFoJ+VdoPA==@debbugs.gnu.org X-Gm-Message-State: AFq9FYLkJoKwjTTNGBUXN0S6Vz7BKMF1pCU6mCfKnJ/jsJQA31z+rrXO B0TuoUQc99vDC2TpKZuTwt2lrYGezaa7CCkTRI4pOkpbOOxS6yqEBwjf17TAigy0T+qRfCzv3cg CdHE1bJjccgIpw07lghKMApBbaSEMoyM= X-Gm-Gg: AYBFou1GIKlZr3md190OGYXuBCpgEkZ/ILYk8YNROENT3pGvHRJg+4Aa9hGsys9Fdzu 3U6ZULYCzSLHKt/DY13jIve+NCom8xdplpDwLJO5IM/A/sjv8wqi4YJIKTVhBYy5QC7i/f7Lmuy EUZkfUhafvk/Gfnz7Lydmjn46LqToxldZczboqo4r6jK/3B6cZZQuLxwrE1hgBQg8RBPj1gU4LK tWa78M9xoyhvsf7BhLgAVXtVMpVmIBV/iSqO20H17PlC8ti5cvk8osyahTJnmQlud2yb5NZDEh6 lmBfjkNaJyo7cMyjUgRZWNTXJaI7YGkV36sObifE/09jle9StbsvJ5weOYyNHl4qByJ9vOdtcDG JaIXMl/UOVORXmfOC2TMlaXUkQXPdh2VMimaeLAWXnoYei8qHSkYRv7af9AIz4BJ9DPBdRhH5Km Jfac+sbT6sXYVr8iCr5zK+EqsjwgI15Q3HinxfQqDZhaysSHGTpS7AET09J8MgVaJ9UO1NAggRv pr8Yg== X-Received: by 2002:a05:6102:5717:b0:7be:3606:2248 with SMTP id ada2fe7eead31-7cb377fa291mr5551923137.34.1792016576965; Wed, 14 Oct 2026 15:22:56 -0700 (PDT) MIME-Version: 1.0 References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> <CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN> <57A401CE-363F-4D7C-BA01-A3406D34D733@HIDDEN> In-Reply-To: <57A401CE-363F-4D7C-BA01-A3406D34D733@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Wed, 14 Oct 2026 18:22:45 -0400 X-Gm-Features: AclHuK9Lesc9oeN7YA6TOI_6qA7v1ppDwg4cIwFkhrJQPWOfkXZ2zrx6Sv0n-qM Message-ID: <CAN+1HbquL+UMX=Dm1KZLLaUE6CLMda32LSVQO9yAV_P=pZe7Zw@HIDDEN> Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) To: Stefano Pacifico <github@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000806faf065dd45f4a" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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: 0.0 (/) --000000000000806faf065dd45f4a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 14, 2026 at 6:12=E2=80=AFPM Stefano Pacifico <github@HIDDEN= c> wrote: > > > On Oct 14, 2026, at 5:54=E2=80=AFPM, St=C3=A9phane Marks <shipmints@gmail= .com> wrote: > > On Wed, Oct 14, 2026 at 5:45=E2=80=AFPM Stefano Pacifico <github@pacifico= .cc> > wrote: > >> >> >> On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gma= il.com> wrote: >> >> On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico <github@pacifi= co.cc> >> wrote: >> >>> >>> >>> On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gma= il.com> wrote: >>> >>> On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <github@pacif= ico.cc> >>> wrote: >>> >>>> >>>> [=E2=80=A6] >>>> >>>> I think the attached patch should address your feedback. >>>> >>> >>> Almost there. I'd move etc/PROBLEMS to the end of the changed file lis= t >>> as it's less important than the code changes. In the PROBLEMS text, yo= u >>> write "Emacs continues to operate normally" but that is not the case. = I >>> tested the code by making an emtpy Emacs.clr file unwritable and Emacs = -Q >>> GUI display appeared differently, so it was not "operating normally." = Are >>> you assuming that in all cases a correctly populated Emacs.clr file wil= l >>> already exist? >>> >>> >>> Stephane, >>> >>> Thanks. I think the attached should respond to your request for change >>> and clarification. >>> >> >> Do you think perhaps we should counsel seeding a pre-populated Emacs.clr >> file for those that still want proper operation when the file is not >> writable? >> >> >> Hi St=C3=A9phane, >> >> My preference would be to fall back on an in-memory cache built from >> `rgb.txt` . AFAICT generating and adding `Emacs.clr` to the App bundle = on >> `make install` would create issues for those who do not run `make instal= l` >> or use the bundle, and it would add additional I/O constraints without >> providing additional benefits, like OS integration. >> >> It=E2=80=99s my first contribution to the project, so I=E2=80=99m happy = to follow your >> guidance. My instinct, would be resolve this bug with the existing patch= , >> and then work on improving the default behaviors. >> > > What I meant was to counsel people to pre-install a populated Emacs.clr > file in the distributions/trees/whatever that are read only in their > circumstance. > > > That=E2=80=99s fine but where should they install it? The locations are h= ard-coded > in Appkit AFAIU and sandboxing may not give access to those. > > I could be completely missing how someone runs an Emacs session in a > sandbox that's completely empty of everything they need to inherit about > their operating environment to begin with. > > > I don=E2=80=99t think that not having access to those locations (Appkit c= olors > configuration) is the same as =E2=80=9Ccompletely empty of everything the= y need to > inherit about their operating environment=E2=80=9D. Sandboxes are increas= ingly > adopted in the wild for many reasons, mostly due to lack of trust in the > software (that=E2=80=99s how I stumbled upon the bug). > > In any event, I think the proposal of mapping the contents of `rgb.txt` i= n > memory when `Emacs.clr` is useful independent from the previous statement= . > Okay let's go ahead with the patch then and if you separately want to work on the rgb.txt fallback, that would be great. --000000000000806faf065dd45f4a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b= ackground-color:transparent">On Wed, Oct 14, 2026 at 6:12=E2=80=AFPM Stefan= o Pacifico <<a href=3D"mailto:github@HIDDEN">github@HIDDEN</a>= > wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_contain= er"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor= der-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br id=3D"m_1849= 985563076890117lineBreakAtBeginningOfMessage"><div><br><blockquote type=3D"= cite"><div>On Oct 14, 2026, at 5:54=E2=80=AFPM, St=C3=A9phane Marks <<a = href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</= a>> wrote:</div><br><div><div dir=3D"ltr" style=3D"font-family:Helvetica= ;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:400;= letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;= white-space:normal;word-spacing:0px;text-decoration:none"><div dir=3D"ltr">= <div style=3D"font-family:monospace"><span style=3D"font-family:Arial,Helve= tica,sans-serif;background-color:transparent">On Wed, Oct 14, 2026 at 5:45= =E2=80=AFPM Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" targ= et=3D"_blank">github@HIDDEN</a>> wrote:</span></div></div><div clas= s=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px= 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br id= =3D"m_1849985563076890117m_-7317608433231813587lineBreakAtBeginningOfMessag= e"><div><br><blockquote type=3D"cite"><div>On Oct 14, 2026, at 10:42=E2=80= =AFAM, St=C3=A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN" targe= t=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><div dir=3D"l= tr" style=3D"font-family:Helvetica;font-size:13px;font-style:normal;font-va= riant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;te= xt-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-= decoration:none"><div dir=3D"ltr"><div style=3D"font-family:monospace"><spa= n style=3D"font-family:Arial,Helvetica,sans-serif;background-color:transpar= ent">On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico <<a href= =3D"mailto:github@HIDDEN" target=3D"_blank">github@HIDDEN</a>>= wrote:</span></div></div><div class=3D"gmail_quote"><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><br id=3D"m_1849985563076890117m_-73176084= 33231813587m_-1570370350513088641lineBreakAtBeginningOfMessage"><div><br><b= lockquote type=3D"cite"><div>On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9p= hane Marks <<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shi= pmints@HIDDEN</a>> wrote:</div><br><div><div dir=3D"ltr" style=3D"fon= t-family:Helvetica;font-size:13px;font-style:normal;font-variant-caps:norma= l;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;te= xt-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"= ><div dir=3D"ltr"><div style=3D"font-family:monospace"><span style=3D"font-= family:Arial,Helvetica,sans-serif;background-color:transparent">On Mon, Oct= 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <<a href=3D"mailto:github= @pacifico.cc" target=3D"_blank">github@HIDDEN</a>> wrote:</span></d= iv></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><br id=3D"m_1849985563076890117m_-7317608433231813587m_-15703703= 50513088641m_-3821932156779052237lineBreakAtBeginningOfMessage"><div>[=E2= =80=A6]</div><div><br></div><div>I think the attached patch should address = your feedback.=C2=A0</div></blockquote><div><br></div><div style=3D"font-fa= mily:monospace">Almost there.=C2=A0 I'd move etc/PROBLEMS to the end of= the changed file list as it's less important than the code changes.=C2= =A0 In the PROBLEMS text, you write "Emacs continues to operate normal= ly" but that is not the case.=C2=A0 I tested the code by making an emt= py Emacs.clr file unwritable and Emacs -Q GUI display appeared differently,= so it was not "operating normally."=C2=A0 Are you assuming that = in all cases a correctly populated Emacs.clr file will already exist?</div>= </div></div></div></blockquote></div><div><br></div>Stephane,=C2=A0<div><br= ></div><div>Thanks. I think the attached should respond to your request for= change and clarification.=C2=A0</div></div></blockquote><div><br></div><di= v style=3D"font-family:monospace">Do you think perhaps we should counsel se= eding a pre-populated Emacs.clr file for those that still want proper opera= tion when the file is not writable?</div></div></div></div></blockquote><br= ></div><div>Hi St=C3=A9phane,=C2=A0</div><div><br></div><div>My preference = would be to fall back on an in-memory cache built from `rgb.txt` . AFAICT = =C2=A0generating and adding `Emacs.clr` to the App bundle on `make install`= would create issues for those who do not run `make install` or use the bun= dle, and it would add additional I/O constraints without providing addition= al benefits, like OS integration.=C2=A0</div><div><br></div><div>It=E2=80= =99s my first contribution to the project, so I=E2=80=99m happy to follow y= our guidance. My instinct, would be resolve this bug with the existing patc= h, and then work on improving the default behaviors.=C2=A0</div></blockquot= e><div><br></div><div style=3D"font-family:monospace">What I meant was to c= ounsel people to pre-install a populated Emacs.clr file in the distribution= s/trees/whatever that are read only in their circumstance.=C2=A0</div></div= ></div></div></blockquote></div><br><div>That=E2=80=99s fine but where shou= ld they install it? The locations are hard-coded in Appkit AFAIU and sandbo= xing may not give access to those.=C2=A0</div><div><br></div><div><blockquo= te type=3D"cite"><div dir=3D"ltr"><div class=3D"gmail_quote"><div style=3D"= font-family:monospace">=C2=A0I could be completely missing how someone runs= an Emacs session in a sandbox that's completely empty of everything th= ey need to inherit about their operating environment to begin with.</div></= div></div></blockquote><div><br></div>I don=E2=80=99t think that not having= access to those locations (Appkit colors configuration) is the same as =E2= =80=9Ccompletely empty of everything they need to inherit about their opera= ting environment=E2=80=9D. Sandboxes are increasingly adopted in the wild f= or many reasons, mostly due to lack of trust in the software (that=E2=80=99= s how I stumbled upon the bug).=C2=A0</div><div><br></div><div>In any event= , I think the proposal of mapping the contents of `rgb.txt` in memory when = `Emacs.clr` is useful independent from the previous statement.=C2=A0</div><= /div></blockquote><div><br></div><div class=3D"gmail_default" style=3D"font= -family:monospace">Okay let's go ahead with the patch then and if you s= eparately want to work on the rgb.txt fallback, that would be great.</div><= /div></div> --000000000000806faf065dd45f4a--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 14 Oct 2026 22:12:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 14 18:12:32 2026 Received: from localhost ([127.0.0.1]:34530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xH7Cw-0001d3-Qh for submit <at> debbugs.gnu.org; Wed, 14 Oct 2026 18:12:31 -0400 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]:53471) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <github@HIDDEN>) id 1xH7Ck-0001c7-9S for 82032 <at> debbugs.gnu.org; Wed, 14 Oct 2026 18:12:19 -0400 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id ABABCEC01F0 for <82032 <at> debbugs.gnu.org>; Wed, 14 Oct 2026 18:12:04 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Wed, 14 Oct 2026 18:12:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1792015924; x=1792102324; bh=iDAHgAdl6Q TNFImeLcybTslmN5gNmatCaJcx8/0vakU=; b=o5W/O1UNLEtUDkcBUEU+jbWRe6 WY3VIqEGCjGemFofVHFriiQ7zzSkjF+ZEE26XRoHzlJIcay+/gM1wK1p2GBLBlFh VXpS/k7PPhHpMe1PEXmp3HdK5GcAlIySUm58bqj2mTWOZHM9p1lQEyw5IQGlgYaN xpOTm2m+wUkqpq6l5iQTFcxnp+/R9R2+bh7Vkhmn8IvxKnm2a9F+vsqQQkXtuTMV RNk/H/xJmHvGGLzOKXpfY+jg6lTw8O0L1SOKYORzvAvNL67OAY6rYs1FvPV94yBP m1zmDZpPheRBoeGGcKt0SV+o/KH1lGLwIzArjmmWQ9L2UZx4caKgOmB41dGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1792015924; x=1792102324; bh=iDAHgAdl6QTNFImeLcybTslmN5gNmatCaJc x8/0vakU=; b=wYqAekaxGFH7uBq6PpaCHfjCGDWHmFQHx1RWXCGykTJ8y4hgCEC PUfI/SmX/XwA81bKJxiOaljaO8EYHefNBFfGRRCNAYl9LZdCm+T10/ntTurDpKj7 alxdB+6Fwf51ZDeovxdubdpKTVoL5N7WlJLXHllQwAptr1pevqwhcfa+25gzGUCA nTfndhVPQzcBuf0aHuIM2Km8Deo5GCaDu2sQXq9atnYGl8XsiKm9OtGO8gem2fHP yOYxhTRZ7h/0bzEl1As9XM8jxKPzYCjRMnJvboTyNJdIeY1pTjM/kdwbZOWR/1/i O3YFsESSO+lnMkXUfOhoiq9BCmFrWdagvSg== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox; action=sign d=pacifico.cc a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1792015924; d=pacifico.cc; mf=PGdpdGh1YkBwYWNpZmljby5jYz4=; rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=; s=fm1:rsa-sha256:bwx0yRTXNvfwWdbE9goYoS4nVozgsnqY+xau8l9a1/OLunV hA5jEaRcmR6mXO7AK5pv4WTMkOgyxO6XHOQgWz5JUD4We710oca6CSlHILfeRmS8 Sqnmkm6tMxr/vEoCm1SUYk7yg6qmQWpWAXTnrChPXtxT9pbgppQ96YgtRNl0rMEi imlIQdMoZbvnHpu/wLmIcqrAkFSv6/vkeQY5azAPltI4iOtHAEC53zVvmjh+gLl4 Mci+9LT+REJu2bcWxo58E5sdnOEd2GIHkI/vV4gb/kniESgRu8/x+WsqspLcq7/b upjz3IK/JLCfgEHC0kRRl0Oy/D99MlLqhlXQrHw==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox; action=mi-m=1; hc=11; hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id, mime-version,references,subject,to; Message-Instance: m=1; h=sha256:6+JsWj+7b12ux94ED8n0qhwOvj3tVhDA4crEojHnwzA=:u7ufAmw8YZ2Z+P4HKzfp8T4K5ofe0hhfUEZUJCBEQk4=; X-ME-Sender: <xms:NP7PasQ-xLBjgl1kZDyZnNCqFF2LBe0gvCQerAsOkKPbgklXRhHmFA> <xme:NP7PagyS0cvgSCGMS_6tow4LUTXHtZlxJxNU7Q92O90voPc-s0AeYxaOWU64i8GWK bnhtjlOnYnLRtnMYpaoGTOkJmaNAXM2Vlxp4obukxVduVTRVq8amQ> X-ME-Received: <xmr:NP7Pau0EbIrjS0EEe8CZ2QzyUzPoeGD26gztyoYWQhu29wP6mc6Pg8KQUV-v_YA4SHI3fXU7p00L3cZzOgbfZ6UrGGPfbXu4g-U5pGghTkEv-o6oEruVIbaiCQ> X-ME-Proxy-Cause: dmFkZTEA+ABDtTfb0/19U6g3GKklD9R81vFrI1P9FkmHSM9hyarUnOI20RNc31Xcuv6piO xa5/E0FFIP21zekf7HXbwPq3bRxf+ENIH4uPzR54mSeJhxumV11s/ki3wVHj+8dEF2eqbs 3FknZCKDYU8+ZcsCWGQ9PqtkuJWB3/hS9IKNDydseSwVrLVRwWG9rlO6yUq6p4IOQr76aW n/cMv1oiV1VIfCRe2C5wDs/x59sbKXHZgcYBbpggKHdh6aRiW5rdgesb+j7ZcOCcNQzukU Csut3WV7N1Fiw/PLo9LyMZFgxq3/mKi5MRqou3XEqpkOgfyjWskdTJX3DfZF4A/c/sXAR/ 6tPc5TfKhJJN3tXkwdIoMwfnw19cW0ZUHOxHY7bpOkOTPdgi6jn22RzfQo9IU8auIhh9tB KiN94X35miuUVS9ID96vtTykxMRKnwO08kgKxAzTwrKm5135GCYrUPQG8egA6tYtNQeAze Q2UfUJbfDHrsrw5HPG3Ie9P+eMjlA4XVEuZfinGmoJrOZ+spo2ROzh9Qp10ZNScz6NwHgX U55mI6jWH4FGywhvLjZSarRrduwUCBMKKamU18Qw4J6FGYzjoRnT5Zxy1l/4/XNQocS8Yu qyjDeJyuF1LW7KooLskHDPfxBqvKoJdXg+QIa7EJtGcAnkCIX8oDUB14S+Zg X-ME-Proxy: <xmx:NP7Pau4UB-aTWIcadLJ8kp3nKaMIx0sZax-brQvLERbDLjg6uOmerg> <xmx:NP7PahXzeqpCzRenjCzu5dpsWEFbZ1tNPovqSSCHMqkYAWhpfzlVww> <xmx:NP7PatCrsKi_aHBscY30J8I_rhsUNfpjNnKZ43u9CNAjccfx2ge5sA> <xmx:NP7Pag4bQdn8tiCuVv7JLzsRvaFtMStuySBxaxqkiZdC9kIMYkHwfg> <xmx:NP7PahBH5oqNrMvb3BizethdImTKtupXdesPW6wvSR9Q0zPLgtcKHxVP> Feedback-ID: ie93843ea:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Oct 2026 18:12:03 -0400 (EDT) From: Stefano Pacifico <github@HIDDEN> Message-Id: <57A401CE-363F-4D7C-BA01-A3406D34D733@HIDDEN> Content-Type: multipart/alternative; boundary="Apple-Mail=_641C4DB1-5414-4E81-B929-7D67CA87D9FC" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\)) Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) Date: Wed, 14 Oct 2026 18:11:53 -0400 In-Reply-To: <CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN> To: =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> <CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN> X-Mailer: Apple Mail (2.3901.100.1.1.12) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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 (-) --Apple-Mail=_641C4DB1-5414-4E81-B929-7D67CA87D9FC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 14, 2026, at 5:54=E2=80=AFPM, St=C3=A9phane Marks = <shipmints@HIDDEN> wrote: >=20 > On Wed, Oct 14, 2026 at 5:45=E2=80=AFPM Stefano Pacifico = <github@HIDDEN <mailto:github@HIDDEN>> wrote: >>=20 >>=20 >>> On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9phane Marks = <shipmints@HIDDEN <mailto:shipmints@HIDDEN>> wrote: >>>=20 >>> On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico = <github@HIDDEN <mailto:github@HIDDEN>> wrote: >>>>=20 >>>>=20 >>>>> On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks = <shipmints@HIDDEN <mailto:shipmints@HIDDEN>> wrote: >>>>>=20 >>>>> On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico = <github@HIDDEN <mailto:github@HIDDEN>> wrote: >>>>>>=20 >>>>>> [=E2=80=A6] >>>>>>=20 >>>>>> I think the attached patch should address your feedback.=20 >>>>>=20 >>>>> Almost there. I'd move etc/PROBLEMS to the end of the changed = file list as it's less important than the code changes. In the PROBLEMS = text, you write "Emacs continues to operate normally" but that is not = the case. I tested the code by making an emtpy Emacs.clr file = unwritable and Emacs -Q GUI display appeared differently, so it was not = "operating normally." Are you assuming that in all cases a correctly = populated Emacs.clr file will already exist? >>>>=20 >>>>=20 >>>> Stephane,=20 >>>>=20 >>>> Thanks. I think the attached should respond to your request for = change and clarification.=20 >>>=20 >>> Do you think perhaps we should counsel seeding a pre-populated = Emacs.clr file for those that still want proper operation when the file = is not writable? >>=20 >> Hi St=C3=A9phane,=20 >>=20 >> My preference would be to fall back on an in-memory cache built from = `rgb.txt` . AFAICT generating and adding `Emacs.clr` to the App bundle = on `make install` would create issues for those who do not run `make = install` or use the bundle, and it would add additional I/O constraints = without providing additional benefits, like OS integration.=20 >>=20 >> It=E2=80=99s my first contribution to the project, so I=E2=80=99m = happy to follow your guidance. My instinct, would be resolve this bug = with the existing patch, and then work on improving the default = behaviors.=20 >=20 > What I meant was to counsel people to pre-install a populated = Emacs.clr file in the distributions/trees/whatever that are read only in = their circumstance.=20 That=E2=80=99s fine but where should they install it? The locations are = hard-coded in Appkit AFAIU and sandboxing may not give access to those.=20= > I could be completely missing how someone runs an Emacs session in a = sandbox that's completely empty of everything they need to inherit about = their operating environment to begin with. I don=E2=80=99t think that not having access to those locations (Appkit = colors configuration) is the same as =E2=80=9Ccompletely empty of = everything they need to inherit about their operating environment=E2=80=9D= . Sandboxes are increasingly adopted in the wild for many reasons, = mostly due to lack of trust in the software (that=E2=80=99s how I = stumbled upon the bug).=20 In any event, I think the proposal of mapping the contents of `rgb.txt` = in memory when `Emacs.clr` is useful independent from the previous = statement.=20 --Apple-Mail=_641C4DB1-5414-4E81-B929-7D67CA87D9FC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><br = id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote = type=3D"cite"><div>On Oct 14, 2026, at 5:54=E2=80=AFPM, St=C3=A9phane = Marks <shipmints@HIDDEN> wrote:</div><br = class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><div = dir=3D"ltr" style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; = font-size: 13px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: 2; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:= monospace;"><span style=3D"font-family: Arial, Helvetica, sans-serif; = background-color: transparent;">On Wed, Oct 14, 2026 at 5:45=E2=80=AFPM = Stefano Pacifico <<a = href=3D"mailto:github@HIDDEN">github@HIDDEN</a>> = wrote:</span></div></div><div class=3D"gmail_quote = gmail_quote_container"><blockquote class=3D"gmail_quote" style=3D"margin: = 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); = padding-left: 1ex;"><br = id=3D"m_-7317608433231813587lineBreakAtBeginningOfMessage"><div><br><block= quote type=3D"cite"><div>On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9pha= ne Marks <<a href=3D"mailto:shipmints@HIDDEN" = target=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><div = dir=3D"ltr" style=3D"font-family: Helvetica; font-size: 13px; = font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = text-decoration: none;"><div dir=3D"ltr"><div style=3D"font-family: = monospace;"><span style=3D"font-family: Arial, Helvetica, sans-serif; = background-color: transparent;">On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM = Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" = target=3D"_blank">github@HIDDEN</a>> = wrote:</span></div></div><div class=3D"gmail_quote"><blockquote = class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; border-left: = 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br = id=3D"m_-7317608433231813587m_-1570370350513088641lineBreakAtBeginningOfMe= ssage"><div><br><blockquote type=3D"cite"><div>On Oct 13, 2026, at = 7:56=E2=80=AFAM, St=C3=A9phane Marks <<a = href=3D"mailto:shipmints@HIDDEN" = target=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><div = dir=3D"ltr" style=3D"font-family: Helvetica; font-size: 13px; = font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = text-decoration: none;"><div dir=3D"ltr"><div style=3D"font-family: = monospace;"><span style=3D"font-family: Arial, Helvetica, sans-serif; = background-color: transparent;">On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM = Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" = target=3D"_blank">github@HIDDEN</a>> = wrote:</span></div></div><div class=3D"gmail_quote"><blockquote = class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; border-left: = 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br = id=3D"m_-7317608433231813587m_-1570370350513088641m_-3821932156779052237li= neBreakAtBeginningOfMessage"><div>[=E2=80=A6]</div><div><br></div><div>I = think the attached patch should address your = feedback. </div></blockquote><div><br></div><div = style=3D"font-family: monospace;">Almost there. I'd move = etc/PROBLEMS to the end of the changed file list as it's less important = than the code changes. In the PROBLEMS text, you write "Emacs = continues to operate normally" but that is not the case. I tested = the code by making an emtpy Emacs.clr file unwritable and Emacs -Q GUI = display appeared differently, so it was not "operating normally." = Are you assuming that in all cases a correctly populated Emacs.clr file = will already = exist?</div></div></div></div></blockquote></div><div><br></div>Stephane,&= nbsp;<div><br></div><div>Thanks. I think the attached should respond to = your request for change and = clarification. </div></div></blockquote><div><br></div><div = style=3D"font-family: monospace;">Do you think perhaps we should counsel = seeding a pre-populated Emacs.clr file for those that still want proper = operation when the file is not = writable?</div></div></div></div></blockquote><br></div><div>Hi = St=C3=A9phane, </div><div><br></div><div>My preference would be to = fall back on an in-memory cache built from `rgb.txt` . AFAICT = generating and adding `Emacs.clr` to the App bundle on `make = install` would create issues for those who do not run `make install` or = use the bundle, and it would add additional I/O constraints without = providing additional benefits, like OS = integration. </div><div><br></div><div>It=E2=80=99s my first = contribution to the project, so I=E2=80=99m happy to follow your = guidance. My instinct, would be resolve this bug with the existing = patch, and then work on improving the default = behaviors. </div></blockquote><div><br></div><div = class=3D"gmail_default" style=3D"font-family: monospace;">What I meant = was to counsel people to pre-install a populated Emacs.clr file in the = distributions/trees/whatever that are read only in their = circumstance. </div></div></div></div></blockquote></div><br><div>Tha= t=E2=80=99s fine but where should they install it? The locations are = hard-coded in Appkit AFAIU and sandboxing may not give access to = those. </div><div><br></div><div><blockquote type=3D"cite"><div = dir=3D"ltr"><div class=3D"gmail_quote gmail_quote_container"><div = class=3D"gmail_default" style=3D"font-family: monospace;"> I could = be completely missing how someone runs an Emacs session in a sandbox = that's completely empty of everything they need to inherit about their = operating environment to begin = with.</div></div></div></blockquote><div><br></div>I don=E2=80=99t think = that not having access to those locations (Appkit colors configuration) = is the same as =E2=80=9Ccompletely empty of everything they need to = inherit about their operating environment=E2=80=9D. Sandboxes are = increasingly adopted in the wild for many reasons, mostly due to lack of = trust in the software (that=E2=80=99s how I stumbled upon the = bug). </div><div><br></div><div>In any event, I think the proposal = of mapping the contents of `rgb.txt` in memory when `Emacs.clr` is = useful independent from the previous = statement. </div><div><br></div><div><br></div><div><br></div><div><b= r></div><div><br></div><div><br></div></body></html>= --Apple-Mail=_641C4DB1-5414-4E81-B929-7D67CA87D9FC--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 14 Oct 2026 21:54:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 14 17:54:28 2026 Received: from localhost ([127.0.0.1]:59809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xH6vZ-0008AY-P2 for submit <at> debbugs.gnu.org; Wed, 14 Oct 2026 17:54:27 -0400 Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]:58412) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1xH6vW-00089k-87 for 82032 <at> debbugs.gnu.org; Wed, 14 Oct 2026 17:54:23 -0400 Received: by mail-vs1-xe35.google.com with SMTP id ada2fe7eead31-7c6e6822b11so302942137.0 for <82032 <at> debbugs.gnu.org>; Wed, 14 Oct 2026 14:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792014856; cv=none; d=google.com; s=arc-20260327; b=MzyGDtrgNm449Mpe+CrZi1pNv8bpiP2qO6l1eQWTRIgmwkDmPGWDatQeKFgOUNx/Yo I/xBwu3R9DmfdMXNAoLe4p2dEkzlBTq10kc59NTmimiPbAbZEWiDZ8arvRGyC0AOYWlN ElQIM94x2RzBM+k3YYzwAoZ2t4edTAiQ5+w1vKsfja7C0rvjbD5rCFleqP1Gf4EIvUxA ZBqIU/6tUPItsvN4uGDy88rsfkMVDbshZEEEhxmQzd0a4vsaQw0pQMsiXDfkZbXgCV/c W3Cdu9L6I6yq0yBZa5lNF+bnTaVBVm8IzNxozrhT41C8QB9M1/YSZkIq9ysXjTgX+Ly6 6aEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=AIDuzcYzcIw+iV57gvWh0bPuJBKOtcj7GQ2ka3EtFl0=; fh=kN6HmpfPpkOq88hnnGFxWpJHJTSC6TRQco3aplVeMOo=; b=C0TEEJaYUZlcwSqjahzoXHat4Gf88cKiSogXoI33n7/pS2cTo+Ja9UmyrKNcTqEOs3 BsEqTZtb5RWytr1Fkv9vaMKXF3thv/J70U6HCI+VF5egikakTAsktlcLTpUcchzsTpWk mmIj2eeKE//1JNqP16uLRhmzey7ibtTOc58N0p/XvQx8HgDF++OZKIjlrPuphZDBakhD m05V27oKT+iRnc0s3kpFdnnDtf/QuqUQD/1FHjGn4A/2+sWyJNnplzQH9sDwbQmcMWwJ lp4S16ehRIBtOPV5wjgzr4InWDncP/wewT2GV8KZW0GC6wJYbBpAgMadtCXt8NoJ3kRE vFag==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792014856; x=1792619656; darn=debbugs.gnu.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=AIDuzcYzcIw+iV57gvWh0bPuJBKOtcj7GQ2ka3EtFl0=; b=KGhiVQzoLDccThJzToXfXXJQ5rqnvYoV5EV57QYg4q5x+P/KYPlTQ5k0GBQ4OQN1Oe W1Jb/GJqdxqhMDX7EmZBx5AD28DeoNSqC+cfSd97v0VrtOeJAe9VwCILr1y7Apmu7Q07 wN2JoHooFsPhhrL0s4tGV3iT+J/7lg/FF80YxFk7KrGjWQyeM668d/0cYlbB87TCLEyi nsbaxaFEvW2cCnmWY2kielYxp0nZcpv8TOPSfSacc+ipBTDCItkvcSFd0aVn2uBs/DPh fR2CJVVXqnP7nghxunT9szvzD/MLH5DWFQyBhbQl6NZQr7mfijuDhr1fZWYFKdKDM7ei Bg9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792014856; x=1792619656; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=AIDuzcYzcIw+iV57gvWh0bPuJBKOtcj7GQ2ka3EtFl0=; b=wQN7LXmINnckzJcAeJx1hBA7hKFhR1qvk25xRmYT5lUub+Wx2UotRI4bT51t2w7rpo nUg/xSgg9fjiQHlHdDh53UcLQlGvscm+e8/y8Y88nkTqJxO3Tlg00CLEaRIMUYmwP3XN nksImLKu5s+aTqN/498bGZtBg/VbiJ9hEzzKz5LOc+oFePRvkr6tp4Vn+AeiFVbpmARC v0PX87Pwe9bkJvM2ZReC03lOV/dA+OwUlKhR2PjU+vjmFsT8YZevGVOTOqQb2zMNPJrU SoMgpFs7hOOMz+ID9V63wiw8UDguexjMUIUsl1pXhfgbFOHadgev8KXlXXppldDj2pRh wCfw== X-Forwarded-Encrypted: i=1; AKwUvBy83JqHwYMhoTGlj315bmaWLNvix4/IS07eiNQypN0AAjlF1fGZmqJpG058ePl6SmbeY1EqHg==@debbugs.gnu.org X-Gm-Message-State: AFq9FYKOTbRfO69flgiVXQ1DMGFVeVIACdNjW/z/QHDeazmqjwoAYVEP 3xY+Sa9OGuKjOrbtzuXVTx3anqroHPmRN50rI81sBuBWnfcDTpjrrER61wjMX0/BDY5vfkLH6l5 2ktgoVDuJwzmnkvOV9GifaAOCHgjZfK8= X-Gm-Gg: AYBFou1WMA/NOcMnZpfY+U1zQdQDpnjZmMHts4uGYsOzLxlzOM83FS/5Boxz6OrddUP poLGBd+h1NGZyqPcvxLYBippVtY1VEYJWP+MiYxcq8TnXZJLUr0qB4TP5xshkPPVq8QwYr36PGh iB6pRZ1Clh3a/irTdHBIffiqA1Fd4/s3vnv6Ff/VbSBXv9Yf3C2YE8SA9rP2FAVpU0NcCS0ixs/ 7TmzU4kWCcImo0sHh6wDq098N8yr9/WoRhf6/1cGBBTAqdrWrCmhIZCkRO5JiTRTZURekBAap1n tukrxA7SEr2+OOiIRhVvOhdCExE9zFs8Vyd9/jRsCVIceYH2AomUAqX3fRB107ctoihrxMmUZTZ 1xseAJA6/fyrfh5pqpJcshHI8V5Itp4sFI34qbQtkT7fh/+fuYDh/TzVFoDcbjQLKPRCzorm+Cw oceO0TcLy+F4lM0I6N9xdDP6+jN7UuUe1p1POJKVFAIXC2mJu1QbsRVYfUFpYwTzFAlM79ePwcr 8Ewug== X-Received: by 2002:a05:6102:4247:b0:7b5:7cd5:2a1b with SMTP id ada2fe7eead31-7cb372b0e80mr4089989137.10.1792014856377; Wed, 14 Oct 2026 14:54:16 -0700 (PDT) MIME-Version: 1.0 References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> In-Reply-To: <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Wed, 14 Oct 2026 17:54:04 -0400 X-Gm-Features: AclHuK-oAB9w_ytSY45HwPdjixyXKxBS-uixmFoZW5I0Ms743CO5fFrd_KBqeV4 Message-ID: <CAN+1Hbo_k2BGXNVNMzC_oqisJbpqC8=bM0iGxSLLTpw1p-5qmw@HIDDEN> Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) To: Stefano Pacifico <github@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000f25946065dd3f8d7" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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: 0.0 (/) --000000000000f25946065dd3f8d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 14, 2026 at 5:45=E2=80=AFPM Stefano Pacifico <github@HIDDEN= c> wrote: > > > On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gmai= l.com> wrote: > > On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico <github@pacific= o.cc> > wrote: > >> >> >> On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gmai= l.com> wrote: >> >> On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <github@pacifi= co.cc> >> wrote: >> >>> >>> [=E2=80=A6] >>> >>> I think the attached patch should address your feedback. >>> >> >> Almost there. I'd move etc/PROBLEMS to the end of the changed file list >> as it's less important than the code changes. In the PROBLEMS text, you >> write "Emacs continues to operate normally" but that is not the case. I >> tested the code by making an emtpy Emacs.clr file unwritable and Emacs -= Q >> GUI display appeared differently, so it was not "operating normally." A= re >> you assuming that in all cases a correctly populated Emacs.clr file will >> already exist? >> >> >> Stephane, >> >> Thanks. I think the attached should respond to your request for change >> and clarification. >> > > Do you think perhaps we should counsel seeding a pre-populated Emacs.clr > file for those that still want proper operation when the file is not > writable? > > > Hi St=C3=A9phane, > > My preference would be to fall back on an in-memory cache built from > `rgb.txt` . AFAICT generating and adding `Emacs.clr` to the App bundle o= n > `make install` would create issues for those who do not run `make install= ` > or use the bundle, and it would add additional I/O constraints without > providing additional benefits, like OS integration. > > It=E2=80=99s my first contribution to the project, so I=E2=80=99m happy t= o follow your > guidance. My instinct, would be resolve this bug with the existing patch, > and then work on improving the default behaviors. > What I meant was to counsel people to pre-install a populated Emacs.clr file in the distributions/trees/whatever that are read only in their circumstance. I could be completely missing how someone runs an Emacs session in a sandbox that's completely empty of everything they need to inherit about their operating environment to begin with. --000000000000f25946065dd3f8d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b= ackground-color:transparent">On Wed, Oct 14, 2026 at 5:45=E2=80=AFPM Stefan= o Pacifico <<a href=3D"mailto:github@HIDDEN">github@HIDDEN</a>= > wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_contain= er"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor= der-left:1px solid rgb(204,204,204);padding-left:1ex"><br id=3D"m_-73176084= 33231813587lineBreakAtBeginningOfMessage"><div><br><blockquote type=3D"cite= "><div>On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9phane Marks <<a hre= f=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>&= gt; wrote:</div><br><div><div dir=3D"ltr" style=3D"font-family:Helvetica;fo= nt-size:13px;font-style:normal;font-variant-caps:normal;font-weight:400;let= ter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;whi= te-space:normal;word-spacing:0px;text-decoration:none"><div dir=3D"ltr"><di= v style=3D"font-family:monospace"><span style=3D"font-family:Arial,Helvetic= a,sans-serif;background-color:transparent">On Tue, Oct 13, 2026 at 11:21=E2= =80=AFPM Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" target= =3D"_blank">github@HIDDEN</a>> wrote:</span></div></div><div class= =3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br= id=3D"m_-7317608433231813587m_-1570370350513088641lineBreakAtBeginningOfMe= ssage"><div><br><blockquote type=3D"cite"><div>On Oct 13, 2026, at 7:56=E2= =80=AFAM, St=C3=A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN" ta= rget=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><div dir= =3D"ltr" style=3D"font-family:Helvetica;font-size:13px;font-style:normal;fo= nt-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:sta= rt;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;= text-decoration:none"><div dir=3D"ltr"><div style=3D"font-family:monospace"= ><span style=3D"font-family:Arial,Helvetica,sans-serif;background-color:tra= nsparent">On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <<a = href=3D"mailto:github@HIDDEN" target=3D"_blank">github@HIDDEN</a>= > wrote:</span></div></div><div class=3D"gmail_quote"><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><br id=3D"m_-7317608433231813587m_-1570370= 350513088641m_-3821932156779052237lineBreakAtBeginningOfMessage"><div>[=E2= =80=A6]</div><div><br></div><div>I think the attached patch should address = your feedback.=C2=A0</div></blockquote><div><br></div><div style=3D"font-fa= mily:monospace">Almost there.=C2=A0 I'd move etc/PROBLEMS to the end of= the changed file list as it's less important than the code changes.=C2= =A0 In the PROBLEMS text, you write "Emacs continues to operate normal= ly" but that is not the case.=C2=A0 I tested the code by making an emt= py Emacs.clr file unwritable and Emacs -Q GUI display appeared differently,= so it was not "operating normally."=C2=A0 Are you assuming that = in all cases a correctly populated Emacs.clr file will already exist?</div>= </div></div></div></blockquote></div><div><br></div>Stephane,=C2=A0<div><br= ></div><div>Thanks. I think the attached should respond to your request for= change and clarification.=C2=A0</div></div></blockquote><div><br></div><di= v style=3D"font-family:monospace">Do you think perhaps we should counsel se= eding a pre-populated Emacs.clr file for those that still want proper opera= tion when the file is not writable?</div></div></div></div></blockquote><br= ></div><div>Hi St=C3=A9phane,=C2=A0</div><div><br></div><div>My preference = would be to fall back on an in-memory cache built from `rgb.txt` . AFAICT = =C2=A0generating and adding `Emacs.clr` to the App bundle on `make install`= would create issues for those who do not run `make install` or use the bun= dle, and it would add additional I/O constraints without providing addition= al benefits, like OS integration.=C2=A0</div><div><br></div><div>It=E2=80= =99s my first contribution to the project, so I=E2=80=99m happy to follow y= our guidance. My instinct, would be resolve this bug with the existing patc= h, and then work on improving the default behaviors.=C2=A0</div></blockquot= e><div><br></div><div class=3D"gmail_default" style=3D"font-family:monospac= e">What I meant was to counsel people to pre-install a populated Emacs.clr = file in the distributions/trees/whatever that are read only in their circum= stance.=C2=A0 I could be completely missing how someone runs an Emacs sessi= on in a sandbox that's completely empty of everything they need to inhe= rit about their operating environment to begin with.</div></div></div> --000000000000f25946065dd3f8d7--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 14 Oct 2026 21:46:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 14 17:46:01 2026 Received: from localhost ([127.0.0.1]:58686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xH6nK-0007U3-2g for submit <at> debbugs.gnu.org; Wed, 14 Oct 2026 17:46:00 -0400 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]:42363) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <github@HIDDEN>) id 1xH6nA-0007RJ-9z for 82032 <at> debbugs.gnu.org; Wed, 14 Oct 2026 17:45:50 -0400 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id A28BBEC0247 for <82032 <at> debbugs.gnu.org>; Wed, 14 Oct 2026 17:45:38 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Wed, 14 Oct 2026 17:45:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1792014338; x=1792100738; bh=nq1HprOwIS +xM75ZLd6I50PNrslVBllkIuJRX/MXZog=; b=FaIfk3Fu+1xMmegP5FPKhf6WBB DnM0eudtt6bjDCdsUuGjrXB+YSKcKDX7NCxOmC3bqf129+0DMxcNp9LgAHMnY3hT V2YHtm8FiWjwRlh50vQxthK6G964BH8J4znimIYXbLToAQLbLljKlzS2zweAmVyb 0BmQZKlyqx7J/bOrhfmevFyvfWEbqOdgDNDLiDZYrZzC25w6uqtbYsPPaPKO/zna OFr7wM5fqsR4znkFNuJThHy9BQrPorQ4ATT+DfN+ogcK+4KEQUk09s4RCRxEeraH /VW//P/vK05iN0Ey9YpWsz/e5+Kwdf2S/u3zMilUTU211d9eTBgE8cRtmEIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1792014338; x=1792100738; bh=nq1HprOwIS+xM75ZLd6I50PNrslVBllkIuJ RX/MXZog=; b=EgmlaENo2Sq7143EG4UxPaFJ/9QXiBBQedQvHKcTF6IKx19h6uO TcgtaB4RMLz5gBrwOpYUXLM27w5selHDhZnaIQvti8YucHe0j0W7144YaDL/wnJL 315MJYWOt+ehr7oJMqpZZMGuYRaZ2ZpbLv2EYlh0GFoOHmhWRV7tzZe+xHUcpL6D dd+eAZrUN7luvWW4MEGLtAG0vEq0kEguQ561BjKrJ4sIQGER9WaJJhD+gKZHFvqU rKct+1JiSZwMZRLfeDbLwwQzpWd8NOJGWK3RGZqQXcIoOHIMBUYMXbh7Pssd9rpD u7ve/bZft7ua/UqRRi3Wmea90IcxoGO7BbA== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox; action=sign d=pacifico.cc a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1792014338; d=pacifico.cc; mf=PGdpdGh1YkBwYWNpZmljby5jYz4=; rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=; s=fm1:rsa-sha256:QVlE7jmzMDoj/9HUyci8ly2ggHgDgfFCcEke+sGfXlX5ufv sczBGq9PyhkSLccXm0n469I4OIK+OTakvJPluovpOv4Mmq8WFQKrbeKePdCcKFO2 t5+HZrfQQLLYSOcAQEMVAHqzaPMmKA2Nk3x79gO8ukPRgsAXoXOlnZ9hI6zy8T5R cqgxS1IcMGsFVw11Uhip7igdWDbfg8cMwxUVQwTeL8LeYAtH1AuoMetGiXkvpaB0 ISWC4XHX7R8xOJ4Y8lbXIJbwXmpA4JZJOZeFiQS7rrkiXhHK6H3jrWXXwvA2zBhX lXUIDjJDTyGzAmoJ54SLfTyLgpEADGdOsW50zTw==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox; action=mi-m=1; hc=11; hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id, mime-version,references,subject,to; Message-Instance: m=1; h=sha256:8I9lLu0ZwJo3cxKmfVI2ySOQFuatTvWMYc6K8ow2Bog=:97/Q+mLDsKiR3omD89wWtyE2UUoQ1egyXq0B0w6YMAI=; X-ME-Sender: <xms:AvjPaoNt_-q-oBIxJkxBGsGl66YUkFJUfTXtQbBI0Wu5HKJlKmLedA> <xme:AvjPal8TGH2HD7i160B7AzO7NVlQeYch5sUcZg3F6ftbnLGPaQF7BW-Y9SnEN91p5 CnfxHsuuEgVeW-Oar89xjAR3XEvW3jhryeP7NLgglk74-ajmHFvgQ> X-ME-Received: <xmr:AvjPakSnJZDAoeb9qZf7IHOHEUkoBAOyjcQfb_Usn9Jr54-juWi62x730_Nr3l-gNB-ccjeUyVGXRiCNFjnYIiBldLEcSna_TLXMXQYEK4fx4y2B75GLQQv-BA> X-ME-Proxy-Cause: dmFkZTEJY0idhq9+VP6oy7baz+Ikr7HrV/YGP3u4Tfe4ozMWTjoWZuDvI5lQzj4OkbvUTh L4HDGaP0u52qSQrfCBc/rCPsYMRC53fXn4TMVsAYG6BcAPqUvEEhoUaHMelYAqToX/Kt+v U1oFE+m2PY3YsEY3DNQXOWzqG4j9xrP/ASBFlvhirsL0l9hT6pGi9LGuF9X9M7q9mLwNCI 0WuIz6g3ObmUs+opTfBd1isFPunVZac+S1jLG9vi5HkxJyEyMHAstueHrYyhl1C83Wk5Xm +vMtUumZeWdt4Y8zG6fNIuj+OgHo2mysUkPxZq6L7G2CPgIT+4JZVwRTmKN6itENh0IKXE tjipIXQE11piCOwagpKV/B1WqsoxhKCDYlL7Zm9HxaskAKlf3PrU23WvPGv5bnSJ9IZhsq cWxDmvREBu4Rh98zXtPLaWUdaod2WVygkOqznobdoAESTLE9VSNB7/LXZxZbWYIqy+1rjf s1fxLExLDDEoBmzRBRNxBu9OrAEDVlb/2PqEYY8yC0OA/cacEBeVNZcqPe4Fk0w2ajVjHF n7HlEB3L3GZifOOBFXy9BxOiKImMFD12LC6wBc90Zn21+DHYpN9XjKeJxzaN+8C7slA5LX o6BVvqeax8OHmnXMUtDHvUM3UdqvC3ldrZLextsnmeu/ijkYVNTPB84HjGSQ X-ME-Proxy: <xmx:AvjPavldHziU8Q14u9Uy_AUs-hdzV5MyyMPWLACaWECC3X-SZX6dzQ> <xmx:AvjPasTulVASPgrKLKH4tYD1SihiPP3ckw-YazstPBfzgkmFbocG4g> <xmx:AvjPalMPoWcXBHJYVT-UHv1DY6GYHCq53_QHHCXJgzGcNu-mrJ1qVQ> <xmx:AvjPatUrx3XexEJc7Lnc3jPiw_T7qa1hURFQLhLB278ME07r0toemQ> <xmx:AvjPal-SXeV1mkI0qW_gBT_M5AFyxgKr24boNr_DbaDfuJbyF6q_M_G4> Feedback-ID: ie93843ea:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Oct 2026 17:45:37 -0400 (EDT) From: Stefano Pacifico <github@HIDDEN> Message-Id: <78E95008-19E2-4131-B47D-3EBC9C931072@HIDDEN> Content-Type: multipart/alternative; boundary="Apple-Mail=_30B18D13-B98C-4DF4-B159-3557C0CFD020" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\)) Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) Date: Wed, 14 Oct 2026 17:45:27 -0400 In-Reply-To: <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> To: =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> X-Mailer: Apple Mail (2.3901.100.1.1.12) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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 (-) --Apple-Mail=_30B18D13-B98C-4DF4-B159-3557C0CFD020 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9phane Marks = <shipmints@HIDDEN> wrote: >=20 > On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico = <github@HIDDEN <mailto:github@HIDDEN>> wrote: >>=20 >>=20 >>> On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks = <shipmints@HIDDEN <mailto:shipmints@HIDDEN>> wrote: >>>=20 >>> On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico = <github@HIDDEN <mailto:github@HIDDEN>> wrote: >>>>=20 >>>> [=E2=80=A6] >>>>=20 >>>> I think the attached patch should address your feedback.=20 >>>=20 >>> Almost there. I'd move etc/PROBLEMS to the end of the changed file = list as it's less important than the code changes. In the PROBLEMS = text, you write "Emacs continues to operate normally" but that is not = the case. I tested the code by making an emtpy Emacs.clr file = unwritable and Emacs -Q GUI display appeared differently, so it was not = "operating normally." Are you assuming that in all cases a correctly = populated Emacs.clr file will already exist? >>=20 >>=20 >> Stephane,=20 >>=20 >> Thanks. I think the attached should respond to your request for = change and clarification.=20 >=20 > Do you think perhaps we should counsel seeding a pre-populated = Emacs.clr file for those that still want proper operation when the file = is not writable? Hi St=C3=A9phane,=20 My preference would be to fall back on an in-memory cache built from = `rgb.txt` . AFAICT generating and adding `Emacs.clr` to the App bundle = on `make install` would create issues for those who do not run `make = install` or use the bundle, and it would add additional I/O constraints = without providing additional benefits, like OS integration.=20 It=E2=80=99s my first contribution to the project, so I=E2=80=99m happy = to follow your guidance. My instinct, would be resolve this bug with the = existing patch, and then work on improving the default behaviors.=20 Best, Stefano= --Apple-Mail=_30B18D13-B98C-4DF4-B159-3557C0CFD020 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><br = id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote = type=3D"cite"><div>On Oct 14, 2026, at 10:42=E2=80=AFAM, St=C3=A9phane = Marks <shipmints@HIDDEN> wrote:</div><br = class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><div = dir=3D"ltr" style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; = font-size: 13px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: 2; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:= monospace;"><span style=3D"font-family: Arial, Helvetica, sans-serif; = background-color: transparent;">On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM = Stefano Pacifico <<a = href=3D"mailto:github@HIDDEN">github@HIDDEN</a>> = wrote:</span></div></div><div class=3D"gmail_quote = gmail_quote_container"><blockquote class=3D"gmail_quote" style=3D"margin: = 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); = padding-left: 1ex;"><div><br = id=3D"m_-1570370350513088641lineBreakAtBeginningOfMessage"><div><br><block= quote type=3D"cite"><div>On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phan= e Marks <<a href=3D"mailto:shipmints@HIDDEN" = target=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><div = dir=3D"ltr" style=3D"font-family: Helvetica; font-size: 13px; = font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = text-decoration: none;"><div dir=3D"ltr"><div style=3D"font-family: = monospace;"><span style=3D"font-family: Arial, Helvetica, sans-serif; = background-color: transparent;">On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM = Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" = target=3D"_blank">github@HIDDEN</a>> = wrote:</span></div></div><div class=3D"gmail_quote"><blockquote = class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; border-left: = 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br = id=3D"m_-1570370350513088641m_-3821932156779052237lineBreakAtBeginningOfMe= ssage"><div>[=E2=80=A6]</div><div><br></div><div>I think the attached = patch should address your = feedback. </div></blockquote><div><br></div><div = style=3D"font-family: monospace;">Almost there. I'd move = etc/PROBLEMS to the end of the changed file list as it's less important = than the code changes. In the PROBLEMS text, you write "Emacs = continues to operate normally" but that is not the case. I tested = the code by making an emtpy Emacs.clr file unwritable and Emacs -Q GUI = display appeared differently, so it was not "operating normally." = Are you assuming that in all cases a correctly populated Emacs.clr file = will already = exist?</div></div></div></div></blockquote></div><div><br></div>Stephane,&= nbsp;<div><br></div><div>Thanks. I think the attached should respond to = your request for change and = clarification. </div></div></blockquote><div><br></div><div = class=3D"gmail_default" style=3D"font-family: monospace;">Do you think = perhaps we should counsel seeding a pre-populated Emacs.clr file for = those that still want proper operation when the file is not = writable?</div></div></div></div></blockquote><br></div><div>Hi = St=C3=A9phane, </div><div><br></div><div>My preference would be to = fall back on an in-memory cache built from `rgb.txt` . AFAICT = generating and adding `Emacs.clr` to the App bundle on `make = install` would create issues for those who do not run `make install` or = use the bundle, and it would add additional I/O constraints without = providing additional benefits, like OS = integration. </div><div><br></div><div>It=E2=80=99s my first = contribution to the project, so I=E2=80=99m happy to follow your = guidance. My instinct, would be resolve this bug with the existing = patch, and then work on improving the default = behaviors. </div><div><br></div><div>Best,</div><div>Stefano</div></b= ody></html>= --Apple-Mail=_30B18D13-B98C-4DF4-B159-3557C0CFD020--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 14 Oct 2026 14:43:25 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 14 10:43:24 2026 Received: from localhost ([127.0.0.1]:40017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xH0CO-0004Iw-12 for submit <at> debbugs.gnu.org; Wed, 14 Oct 2026 10:43:24 -0400 Received: from mail-vk1-xa2d.google.com ([2607:f8b0:4864:20::a2d]:53682) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1xH0CG-0004IJ-Sp for 82032 <at> debbugs.gnu.org; Wed, 14 Oct 2026 10:43:17 -0400 Received: by mail-vk1-xa2d.google.com with SMTP id 71dfb90a1353d-5e9405fbc33so1756924e0c.3 for <82032 <at> debbugs.gnu.org>; Wed, 14 Oct 2026 07:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791988987; cv=none; d=google.com; s=arc-20260327; b=n09pxT8/jxno87QymsMAEdzxM2fZtdJC1GIRREDi4g6iiPF82iS68+CJYgSkEdN/Ct lVpV2Ps7YD7lrlPCW8kemIw8wOiyP6a/IvawCgtHmKzlbWS1Yb0ERfuqlJbQqU9Z/bW+ cZwCMUx/UT7W3Y+6dn70N8OfD3Set/NwfG16+nyZQNhXdAo24WaRmVib7n+2wx7Ebx3L FJKi+6LYwD3frSwWSxiQoLmK4dQ7PPGVulWTDIQGz5V0sdy5HNCc8Rq+UxR0nQB/cJoG 1EiBkKE+4YFlCpVW7vw+Ad8hFh9boinK2ii7x1wuQ24oDZwnw8cX+Y8I8zMo+yBbgfje UtVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=zbvdxyNoQcX9gx6Xwa8gF+AfG/O5c4LDtoMA08zOEPw=; fh=eqC34qLkbPVNaQnImG1YTmwWWC8Sbtsd8Yi6bbUJ1oQ=; b=bEF5SFzgK2dsvMxFVbectVt4wakXdmsphpjohbptCbTX9CLwCfaGocB7FFb7D9pn4l w3gOD+0R5tXJFHZwyFLyB+b6meNUvMPutRsmgDH6RQMSol9R2Moy95mm979hs4WHUwxk kzTj1SwxwObuUokBjUXn47xoUneHvZ58KY/ECUxEiHlHGCUUCM097P/4UWKjcUpfO2iH GpYUnzHJeAxo7E/KLLIt/q3biiamlPsgGoYw2HeuiqOC6Uz+QeOMvsxn/OKVzjwzO7w4 rfOFn1/kKG6NQFZORpZ65HwglsexQaXv+Cur5s7wQYIsoAIGR8LY95dI0H1e0KwQVXIu 9Y1A==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791988987; x=1792593787; darn=debbugs.gnu.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zbvdxyNoQcX9gx6Xwa8gF+AfG/O5c4LDtoMA08zOEPw=; b=dGqombPugK87lsfotyGq923BCMM1ZibYKGxlXGsMXhzeyU+ZvSoo5VeSHSxRPhZWgz Y5/XkYko7IUpz2wzvFzXfDn0vvNTRlGR989kFGnCGF4WBNy4MAEiCRMrOeJGUPU/HPQR +QXT+vm06leQY4VR7IhaCKb8HRco4+qr6kdzTZBXKXuskX6FJ2S7Hj5KkUxB+X7iNQbj TSZfhY9BVXA3vBPZO+nLIoxHJmkMCpHDNXzOWThA3E5aOX0O7UR765YguWcF5nIi6LMx fCZfdC4IfzDp3JBrL4Qw+83sSdBYtGtoAfi3+834aX/YCAjqWy0US2ssJ8BTVleJEpUh zyHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791988987; x=1792593787; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=zbvdxyNoQcX9gx6Xwa8gF+AfG/O5c4LDtoMA08zOEPw=; b=x+rZJxNNnsm2pPIV0ezl0QfCjDOYMNZ+maZ2y8vIkrhdzYLGdfooD1zF+sVZwSRgTW 38lbq1E/bFATeLX0AKM1FCMlLdr4Epl5u0oBKJOnzqhmsSHMQX+wXoAjLUxwbBIDNTJh gvlNdpGODiVZhQJMg6QyTtXWWq2tJ4FTnq+mDHSzWyuH8BjsAoOqJCHP7OBGa1QSBpq3 ahSOTvpDWsKvq55REVPg3XSlYYaxr4dyt3dpGactW1uCQ4aMS47rtMLlZJmucazfCmlD Iel+grdmyaLxx4Feh0bP3/S6IW9Tjv0PEpFn/fHnTF0hVj0M3EreG1ZN3laS8hXuh/ke bCzQ== X-Forwarded-Encrypted: i=1; AKwUvBw9g4pa4WSNKRbyFrt3CUCLO59frHnCBCEgYR/Q91+pmBLA4GqsoKcf94cKsszVCOX/qpmd+g==@debbugs.gnu.org X-Gm-Message-State: AFq9FYJDmPm920/QmRgSBaRS2iVf8OhE73D8P7K3N/RdeVghFZgv0f2T 1xTOI63rbQCcwpX55zewI5yaykMP28uc1eSqoNJ6JmK0kOEHR06lvEaWLqWOZLR51gCFMn4wZun UP31DKKKQSIs/K8nw1YwFbkBvKrrmOOlYLg== X-Gm-Gg: AYBFou1yp/o0wpuqo8CBZPY1zxJI1tobC1leAmtjvXXlNf0G2gZYuNU/g2cbqXht+gX WikD0CzX3ietwsJ3cqEGN7raJtNcvMsquHt5V0t+TEGABnhce6fFtjcPH66m49WdliCUtbzOxBW CNp6G7P4+YwhDrSl/q6evTrrDo2dxVK3EA3i27teIUH2hOsvXvzqSs9VuiO5x9YjPPNzblKF/5D V9b5QQdpfxic4cyVQRi4aEc4cUXj4s+HTC76bcNAeodpKJG8q4DxTlLD0dGSNnbxDOZqc78PJKv /3UWgVMJlZAkp4Z/L/s+74Mnrp226XpJRMVBJdz6yuSG0inTTNV/S6K9NdhBy7SIDl2Te5iixDB iiyXC/HVK0+pcjERWbPGTpFaY90EYE2H1T3+8csEcU7EGsiHXesT8axmqy/523O/gcI0rc82E3R Ur5ikzwyMJ9MVBTpmL6Wn/WFZEWQO7YWs1NE0TTXAmcailxqH1kvsZPdB+c5VPNYzuuJvns8xK4 tlxzQ== X-Received: by 2002:a05:6102:4b19:b0:7c3:a175:b3a4 with SMTP id ada2fe7eead31-7cb373eab9bmr3696393137.36.1791988986784; Wed, 14 Oct 2026 07:43:06 -0700 (PDT) MIME-Version: 1.0 References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> In-Reply-To: <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Wed, 14 Oct 2026 10:42:55 -0400 X-Gm-Features: AclHuK-_oY507xGs1YUTJeupBmoWaOzWMXEukhPi_BshN6UXom0C3MZyEnA7fsE Message-ID: <CAN+1Hbr16ZP3Dzsfb-W6JFgPZU=W711Vh6U=QVyZ7StyrN7OnQ@HIDDEN> Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) To: Stefano Pacifico <github@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000ffafa0065dcdf2d2" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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: 0.0 (/) --000000000000ffafa0065dcdf2d2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefano Pacifico <github@pacifico.= cc> wrote: > > > On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gmail= .com> wrote: > > On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <github@pacific= o.cc> > wrote: > >> >> [=E2=80=A6] >> >> I think the attached patch should address your feedback. >> > > Almost there. I'd move etc/PROBLEMS to the end of the changed file list > as it's less important than the code changes. In the PROBLEMS text, you > write "Emacs continues to operate normally" but that is not the case. I > tested the code by making an emtpy Emacs.clr file unwritable and Emacs -Q > GUI display appeared differently, so it was not "operating normally." Ar= e > you assuming that in all cases a correctly populated Emacs.clr file will > already exist? > > > Stephane, > > Thanks. I think the attached should respond to your request for change an= d > clarification. > Do you think perhaps we should counsel seeding a pre-populated Emacs.clr file for those that still want proper operation when the file is not writable? --000000000000ffafa0065dcdf2d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b= ackground-color:transparent">On Tue, Oct 13, 2026 at 11:21=E2=80=AFPM Stefa= no Pacifico <<a href=3D"mailto:github@HIDDEN">github@HIDDEN</a= >> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_contai= ner"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo= rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br id=3D"m_-15= 70370350513088641lineBreakAtBeginningOfMessage"><div><br><blockquote type= =3D"cite"><div>On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks <= ;<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN= om</a>> wrote:</div><br><div><div dir=3D"ltr" style=3D"font-family:Helve= tica;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:= 400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:n= one;white-space:normal;word-spacing:0px;text-decoration:none"><div dir=3D"l= tr"><div style=3D"font-family:monospace"><span style=3D"font-family:Arial,H= elvetica,sans-serif;background-color:transparent">On Mon, Oct 12, 2026 at 1= 0:46=E2=80=AFPM Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" = target=3D"_blank">github@HIDDEN</a>> wrote:</span></div></div><div = class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br= id=3D"m_-1570370350513088641m_-3821932156779052237lineBreakAtBeginningOfMe= ssage"><div>[=E2=80=A6]</div><div><br></div><div>I think the attached patch= should address your feedback.=C2=A0</div></blockquote><div><br></div><div = style=3D"font-family:monospace">Almost there.=C2=A0 I'd move etc/PROBLE= MS to the end of the changed file list as it's less important than the = code changes.=C2=A0 In the PROBLEMS text, you write "Emacs continues t= o operate normally" but that is not the case.=C2=A0 I tested the code = by making an emtpy Emacs.clr file unwritable and Emacs -Q GUI display appea= red differently, so it was not "operating normally."=C2=A0 Are yo= u assuming that in all cases a correctly populated Emacs.clr file will alre= ady exist?</div></div></div></div></blockquote></div><div><br></div>Stephan= e,=C2=A0<div><br></div><div>Thanks. I think the attached should respond to = your request for change and clarification.=C2=A0</div></div></blockquote><d= iv><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">D= o you think perhaps we should counsel seeding a pre-populated Emacs.clr fil= e for those that still want proper operation when the file is not writable?= </div></div></div> --000000000000ffafa0065dcdf2d2--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 14 Oct 2026 03:21:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 13 23:21:45 2026
Received: from localhost ([127.0.0.1]:45577 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xGpYi-0004AU-Ll
for submit <at> debbugs.gnu.org; Tue, 13 Oct 2026 23:21:45 -0400
Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]:35197)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <github@HIDDEN>)
id 1xGpYa-00049v-FD
for 82032 <at> debbugs.gnu.org; Tue, 13 Oct 2026 23:21:37 -0400
Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
by mailfhigh.phl.internal (Postfix) with ESMTP id 1586A140016A
for <82032 <at> debbugs.gnu.org>; Tue, 13 Oct 2026 23:21:27 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
by phl-compute-01.internal (MEProxy); Tue, 13 Oct 2026 23:21:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h=
cc:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm1; t=1791948087; x=1792034487; bh=4s76Q2N6gS
PoeC8cNm3i3Roq8NU6Db926V4j9prTv5Q=; b=bRYC7ou8rfc1b7p6A2wdK36MpK
XonxovR9PltiYubP5Ynav/6K6Ry4m5ALfRSQHX+WcPbs5eqGcasadJSaQE/b3U+u
IS5lHvhSHSZMa5Ae9QjPtYDWIbQtPuQz//xbJn0NnrL6Niv/CVn4f0nsuMPprMUp
6pQyJGrb2jAAkGKLuriVeoxZFy0jTf7NUUzUbEJ4whMv4YwtBvEtSezebm1m7Ogz
9D2tQDI6UvuZEu0eLDQQtXw2huByLNA28IPOhUPc6AjoUiMpa6LX6dC3Bqzioy8r
XOnzWMPBYs92WiuDP9UrO/hdcQkoe1ZE7P4FwIlHLFqa1uXYJDVTStFJkzlQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1791948087; x=1792034487; bh=4s76Q2N6gSPoeC8cNm3i3Roq8NU6Db926V4
j9prTv5Q=; b=Ux1VnK2yrsc5zgCnW/CSCgMsIcl5EiQ3mHVKFIp76UNbVOb2SoY
ETjpWxbZa7ZUhLY6Wb5tWPZ7GPBj2sT5rNEJ+Fe8Z2Bpo306tgTZ0A2HjmJmyxoY
I1CBM+t711zhG43vFs5PvC79ouyL4GCfPnlClOc8fM95pRa1yqTdQfazMUg7jyHL
FrCooq6RBpal6+9P88rKc/xGIvF7k9PTGwWlLXsXzjckss5jys9yht9TFtCtAPhj
olX7/A6fZ/ddDh+GFmhTqI9o93GfQoAgUf+t2Z67OjOVWehk6Nj6uzV+QxT+dQvV
VknfsQ5zJNotFF1W077hTr/n0+X2UaKjMhw==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=sign d=pacifico.cc a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791948087; d=pacifico.cc;
mf=PGdpdGh1YkBwYWNpZmljby5jYz4=;
rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=;
s=fm1:rsa-sha256:NOMwmlzoUtRa34JPn5zDy7i8TVsq1Mq6RGQbsULc4Kzz5k3
5tIdxwV2e73/OrJu+73Xwv3zVfCv9iSItGpvW4rA+nSYyxPdcLh2lRyp1XxiwSSN
LraSCH/5ARhKYPGKjUUlbUkVDCdXNgNspDa1tbIuHryTmZ4ibKeWKal4bGPlRdB4
rTrNpmaT1SUcQvNbpcKjsta2+zSw+Ul1D4ct7eBcYNrZML0XXlHMBwkgE3/9Ee/A
DEd+QKlhfT6ZaOABvFtxe6uxTdySBX2GJ66uBly4FV28oW98v0RurMKpT3X4BoTG
U2oRQUSWWFiyChrJPwMD36H4pEM7auhdjvGWFoA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=mi-m=1; hc=11;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to;
Message-Instance: m=1;
h=sha256:/+CU+bqqJb1NCYDVBPTijA7ID+bgnKCHteuZYd5B3AU=:i6rXwdAFvQ7kWLhGmxz5/r00R+xkwoOgZuQ1G8EONF4=;
X-ME-Sender: <xms:NvXOajdzBMt8l8kqiSBegXG5DpJo3AwJKceDqMqO_Vcwq1RIAP7axw>
<xme:NvXOagM5S7ywbaysKfpnfT-Io_fQkp8maUCLYC-efUU4q50waEaqN7SSfvbvn7hKO
_S7ZZn5eDH8laQZcgjWJLw7GBQy_mjxy_T61BOB6XJ2O8TWCKl->
X-ME-Received: <xmr:NvXOahgG7lf1KVedBGpbqb8cU-D2yG5ZVFR_aSiX_Gm5qieWLVoBTxp9IuMZQ5CW6B1lcHplSbpjSzzy6iWhB98nRtGYylDpsLGQjzaY8GOfLYduxtUnUUbX3g>
X-ME-Proxy-Cause: dmFkZTETjTYENiLNX9V2lFfIQc+KT5IcyzcyqcviZVsMP04Q+y3hfejt5oqysQ5V1UGL0v
m6MHCp5F2QFfBma/FK5R0P1K+M1YsmJHTklIPbwSY8kunWKTfP+HKUJr1qSuxBhbDwo/Yw
G3uiRMI8lMRIi6hlGf7Cj9E74vPihXHi5aoZqlgZzgy37cY4lBQoINBeSIqpGXZMnHiV68
Sr8D0hD5w9PDK+zq+vc6M1s6LK8QkhzD0s7bCGz2Kh9p+FdFZPBE7rTfg6460oQWaY+X2k
Kzl+OHpuHOZp6ZxQZqQW8EvLUA4WXFnpNwwZcX2S+br+CtXjF8NsQDdchlbYXw47wZjaC8
ysUi4ZGGv6miAXg1rbh10Mgz4H7M3BU65Cg2pKSYowUpdO1mGN3nXRG8k1kGg9grwKBZjp
SP3AJdl09EKVNvQjzcuqJx30Vhe3KOy7/uEnbKgl6IYK+jTD+tablPfkaKFihqKOalFzAd
9ZRfP2vSAisgJDPMyctNwZlb50ME3b3ttlNXoxTNf+8+XwWf/PvFCfwGgwS8TqOxEPi0yz
ZoE4zvmaGSfKBVv/h52tkLXkSV8tca5O5nSeaQnMyYbbkF9yzXBBfJO76k7kUJ/LiNCd8s
PNP6rjgoQivO7qhn5oVnEolxNf7+qWzCYiPHSgJpyPkJwbF1MWqVmrAYSc8g
X-ME-Proxy: <xmx:NvXOaj02EpE9JCnuCMcVK_6iK3IXjNZsqCwCqJrEohW9vFlzJCeXdg>
<xmx:NvXOargb-bQcptoqU0GlQawAg4I99zOhSDI1ABlA2U1o0ZSRsvKMaQ>
<xmx:NvXOajdrLkl1MtsJ0iQ_5IffZWQLsKUceOhpnIvq47Q2FBWU7q040g>
<xmx:NvXOaukjtu1yrYExq6Im1-soXgXrn6dF9DvKztbf3Wj4cq6LKxK65w>
<xmx:N_XOatNCbtuLnra-i7xc-JJoJINTBEbM8z_mW5I-2EvdvDP_WIm3WOzz>
Feedback-ID: ie93843ea:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
13 Oct 2026 23:21:26 -0400 (EDT)
From: Stefano Pacifico <github@HIDDEN>
Message-Id: <53519CAB-3EC3-4E07-BDDA-D19DF63F1097@HIDDEN>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_27A010F7-BC95-4E09-B79D-CF6418B05AE9"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
Date: Tue, 13 Oct 2026 23:21:15 -0400
In-Reply-To: <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN>
To: =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
<CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
<16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
<CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN>
<CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN>
<03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN>
<CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN>
<B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN>
<CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN>
X-Mailer: Apple Mail (2.3901.100.1.1.12)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 82032
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
82032 <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 (-)
--Apple-Mail=_27A010F7-BC95-4E09-B79D-CF6418B05AE9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
> On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane Marks =
<shipmints@HIDDEN> wrote:
>=20
> On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico =
<github@HIDDEN <mailto:github@HIDDEN>> wrote:
>>=20
>> [=E2=80=A6]
>>=20
>> I think the attached patch should address your feedback.=20
>=20
> Almost there. I'd move etc/PROBLEMS to the end of the changed file =
list as it's less important than the code changes. In the PROBLEMS =
text, you write "Emacs continues to operate normally" but that is not =
the case. I tested the code by making an emtpy Emacs.clr file =
unwritable and Emacs -Q GUI display appeared differently, so it was not =
"operating normally." Are you assuming that in all cases a correctly =
populated Emacs.clr file will already exist?
Stephane,=20
Thanks. I think the attached should respond to your request for change =
and clarification.=20
Best,=20
Stefano
=EF=BF=BC=
--Apple-Mail=_27A010F7-BC95-4E09-B79D-CF6418B05AE9
Content-Type: multipart/mixed;
boundary="Apple-Mail=_3171B1EF-541B-451C-9B83-AFCD06293BBF"
--Apple-Mail=_3171B1EF-541B-451C-9B83-AFCD06293BBF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On Oct 13, 2026, at 7:56=E2=80=AFAM, St=C3=A9phane =
Marks <shipmints@HIDDEN> wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><div =
dir=3D"ltr" style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 13px; font-style: normal; font-variant-caps: normal; =
font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:=
monospace;"><span style=3D"font-family: Arial, Helvetica, sans-serif; =
background-color: transparent;">On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM =
Stefano Pacifico <<a =
href=3D"mailto:github@HIDDEN">github@HIDDEN</a>> =
wrote:</span></div></div><div class=3D"gmail_quote =
gmail_quote_container"><blockquote class=3D"gmail_quote" style=3D"margin: =
0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); =
padding-left: 1ex;"><br =
id=3D"m_-3821932156779052237lineBreakAtBeginningOfMessage"><div>[=E2=80=A6=
]</div><div><br></div><div>I think the attached patch should address =
your feedback. </div></blockquote><div><br></div><div =
class=3D"gmail_default" style=3D"font-family: monospace;">Almost =
there. I'd move etc/PROBLEMS to the end of the changed file list =
as it's less important than the code changes. In the PROBLEMS =
text, you write "Emacs continues to operate normally" but that is not =
the case. I tested the code by making an emtpy Emacs.clr file =
unwritable and Emacs -Q GUI display appeared differently, so it was not =
"operating normally." Are you assuming that in all cases a =
correctly populated Emacs.clr file will already =
exist?</div></div></div></div></blockquote></div><div><br></div>Stephane,&=
nbsp;<div><br></div><div>Thanks. I think the attached should respond to =
your request for change and =
clarification. </div><div><br></div><div>Best, </div><div><br></=
div><div>Stefano<br><div></div></div></body></html>=
--Apple-Mail=_3171B1EF-541B-451C-9B83-AFCD06293BBF
Content-Disposition: attachment;
filename=0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch"
Content-Transfer-Encoding: quoted-printable
=46rom=20efce2b56f1a19c3aea361747cb2b68df93a6023f=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Stefano=20Pacifico=20<github@HIDDEN>=0A=
Date:=20Sat,=2010=20Oct=202026=2015:42:16=20-0400=0ASubject:=20[PATCH]=20=
Fix=20crash=20in=20ns_init_colors=20with=20non-writable=20NSColorList=0A=20=
(bug#82032)=0A=0A*=20src/emacs.c=20(main):=20Do=20not=20call=20=
ns_init_colors=20if=20noninteractive.=0A*=20src/nsfns.m=20=
(ns_init_colors):=20Warn=20and=20return=20early=20if=20color=20list=0Ais=20=
not=20editable.=0A*=20etc/PROBLEMS=20(Runtime=20problems=20specific=20to=20=
macOS):=20Document=20warning=0Aand=20color=20resolution=20caveats=20when=20=
NSColorList=20is=20not=20editable.=0A---=0A=20etc/PROBLEMS=20|=2014=20=
++++++++++++++=0A=20src/emacs.c=20=20|=20=202=20+-=0A=20src/nsfns.m=20=20=
|=20=205=20+++++=0A=203=20files=20changed,=2020=20insertions(+),=201=20=
deletion(-)=0A=0Adiff=20--git=20a/etc/PROBLEMS=20b/etc/PROBLEMS=0Aindex=20=
96b9e3df18a..c511266ef22=20100644=0A---=20a/etc/PROBLEMS=0A+++=20=
b/etc/PROBLEMS=0A@@=20-3659,6=20+3659,20=20@@=20The=20usual=20reason=20=
for=20this=20is=20that=20the=20color=20file,=0A=20=
~/Library/Colors/Emacs.clr,=20is=20stale=20or=20corrupted.=20=20The=20=
solution=20is=20to=0A=20delete=20that=20file=20and=20restart=20Emacs.=0A=20=
=0A+**=20Warning=20about=20NSColorList=20'Emacs'=20not=20editable=20when=20=
starting=20on=20macOS=0A+=0A+When=20starting=20Emacs,=20you=20may=20see=20=
a=20warning=20in=20the=20system=20log=20or=20console:=0A+=0A+=20=20=
Warning:=20NSColorList=20'Emacs'=20is=20not=20editable=0A+=0A+This=20=
happens=20when=20~/Library/Colors/Emacs.clr=20cannot=20be=20modified,=0A=
+for=20example=20when=20running=20under=20a=20restricted=20sandbox,=20=
container,=20or=0A+in=20environments=20like=20Nix=20or=20Guix=20where=20=
user=20library=20paths=20are=20read-only.=0A+=0A+While=20Emacs=20will=20=
start=20without=20crashing,=20named=20colors=20will=20fail=20to=0A=
+resolve,=20causing=20faces=20and=20frames=20to=20display=20with=20=
fallback=20or=20altered=0A+colors.=0A+=0A=20**=20macOS=20doesn't=20come=20=
with=20libxpm,=20so=20only=20XPM3=20is=20supported.=0A=20=0A=20Libxpm=20=
is=20available=20for=20macOS=20as=20part=20of=20the=20XQuartz=20project.=0A=
diff=20--git=20a/src/emacs.c=20b/src/emacs.c=0Aindex=20=
11fe567737a..b8d5758eada=20100644=0A---=20a/src/emacs.c=0A+++=20=
b/src/emacs.c=0A@@=20-2292,7=20+2292,7=20@@=20android_emacs_init=20(int=20=
argc,=20char=20**argv,=20char=20*dump_file)=0A=20#ifdef=20HAVE_NS=0A=20=20=
=20/*=20For=20early=20calls=20to=20ns_lisp_to_color=20or=20=
Fns_list_colors.=0A=20=20=20=20=20=20Must=20follow=20init_callproc=20=
which=20sets=20data-directory.=20=20*/=0A-=20=20if=20(!dump_mode)=0A+=20=20=
if=20(!dump_mode=20&&=20!noninteractive)=0A=20=20=20=20=20ns_init_colors=20=
();=0A=20#endif=0A=20=0Adiff=20--git=20a/src/nsfns.m=20b/src/nsfns.m=0A=
index=20148bbc7923a..36735298400=20100644=0A---=20a/src/nsfns.m=0A+++=20=
b/src/nsfns.m=0A@@=20-2254,6=20+2254,11=20@@=20Frames=20are=20listed=20=
from=20topmost=20(first)=20to=20bottommost=20(last).=20=20*/)=0A=20=09=
fatal=20("Could=20not=20read=20%s.\n",=20SDATA=20(color_file));=0A=20=0A=20=
=20=20=20=20=20=20cl=20=3D=20[[NSColorList=20alloc]=20initWithName:=20=
@"Emacs"];=0A+=20=20=20=20=20=20if=20(![cl=20isEditable])=0A+=09{=0A+=09=20=
=20NSLog=20(@"Warning:=20NSColorList=20'%@'=20is=20not=20editable",=20=
[cl=20name]);=0A+=09=20=20return;=0A+=09}=0A=20=20=20=20=20=20=20for=20(=20=
;=20CONSP=20(color_map);=20color_map=20=3D=20XCDR=20(color_map))=0A=20=09=
{=0A=20=09=20=20color=20=3D=20XCAR=20(color_map);=0A--=20=0A2.56.0=0A=0A=
--Apple-Mail=_3171B1EF-541B-451C-9B83-AFCD06293BBF
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><div></div></div></body></html>
--Apple-Mail=_3171B1EF-541B-451C-9B83-AFCD06293BBF--
--Apple-Mail=_27A010F7-BC95-4E09-B79D-CF6418B05AE9--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 13 Oct 2026 11:57:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 13 07:57:15 2026 Received: from localhost ([127.0.0.1]:54839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xGb86-00029N-I1 for submit <at> debbugs.gnu.org; Tue, 13 Oct 2026 07:57:15 -0400 Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]:52683) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1xGb83-00028d-Ct for 82032 <at> debbugs.gnu.org; Tue, 13 Oct 2026 07:57:12 -0400 Received: by mail-vk1-xa29.google.com with SMTP id 71dfb90a1353d-5e94120192dso1073754e0c.1 for <82032 <at> debbugs.gnu.org>; Tue, 13 Oct 2026 04:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791892625; cv=none; d=google.com; s=arc-20260327; b=kAyqUz9QGdmQ+wRRBNdD9l+RmxFnp9AGb/tWk1zqaBchZRWkfs27p92OLFSj9cyObw GaYR71F4Th069BmrcVFDVHqIti4H+mk54DQwryj89NwkI+E3Q2NpIQQzI+XqbHgS0X4N bBOhTFcL47BazRhb0CaFSJo84kSU17yTw+m+X4dvIreGF3dEZLYhFaMfw/XGamZj/cNd A9A4PKxu5aCaGTz7DN/YDVvZUPKTH4vOWQTOWKDumwjrmwk7RSETfdev6IHgYOrdU4Xr dI8ZjoEMc+lgHFnhIOKMqW7m+KDcamvaKggpAkxkFwwpbWgLFsSqhDPyBUeyy3BbnL2o iaSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=QmhUvk8XGluelBhm449W1ZZlAsasjkqYZ5+GjgBlGPg=; fh=15c8ROEJ2HNCeNLLoBlTYzFMyJfR2ptHpYzWzuA2BiM=; b=kefWeuP2pxPVXIBRUm50xuKdcLYDSlXcYKEW83cJeYZdGsdOwP+pGFbS6exG0Hrhss EW2RVFeSnuErUnIerWgAjZJUReoVqFcmCQd49M+g93OR9NPtMvzjJydBz5tjanixP6J8 GrifI6ZTmbqB8ahi8DO0Gtmqy0KDiYaXKd/RqJrYiwkuXuOAP+Qi6ck7hmfqpGiFsJm/ N1AaUrtGN4Xuumw/rAyBYZBwUmpySf3gCfawf27kBAED3OaGsKagi/XmL2Xb0wtgXb5x e0Sp5imd3ydd78bI2iW2XU1i9H7p0FLwqc/4BvExnRQDWmgaNkdGPTJMbwxsIcN47XxD Skog==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791892625; x=1792497425; darn=debbugs.gnu.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=QmhUvk8XGluelBhm449W1ZZlAsasjkqYZ5+GjgBlGPg=; b=awyqDE5gfx784/GETEroxx+NzcpaeIZVoX1Jx9f0ktikQ3lO8SYzQM5z8v/w/BIez/ 0Lhu25qcc7SKmAHuSXBQKthoirvrZO2x4Ev7xadNJQsB+zG4YY7585AU7r/NvTIiyxmt b0/X3shk1gDghphFaXu5dGnSAUkDJmL5cg/TqqnwEkA3PB9jsQC2odDi6H3O4J/h8t2j hFniTjSN/+RlJ7HBmUozafxQ7qWUJq/sLYdWu4lQbhW1sJTE6KSrX6rf7tp/L6Uk3dtE LDeZjVDe9aFzeGjEkioNaPjO1ZjVhc7z/zGG9tiZo6pWL54ux1NI+hSFRYZ0KsL7grlL EcxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791892625; x=1792497425; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=QmhUvk8XGluelBhm449W1ZZlAsasjkqYZ5+GjgBlGPg=; b=ngWoQ67OYOU8nEr5vWtakazvsysIEIaRHYLs9PMzCpJtwtolHCuu1vmr001Qj68cb9 qjtAif2cEGxLyje+5YX8pUBapiqaIcUqD2yguUNdNIN+g1e/pnO095IRnsZ1pY4/u2z5 q61P/SN+nmX9P1zxf1cOa4vfvsacUMIZBIITw7j8xdCNn0uwhhnQ+jPJTbD0OXczG/O4 8qANcPBiEf4bFTbK+PUwf6rCBwbx0Rn5E0UatGH/wFk8BIT5CtJl65+rwsht7PD4yw9R 0G0iUIVGhmfpO/GRwGBcAKPb/VrRIAE/MMRP0dOPmX+vRdO9/N2dr+LUjMH6DYuWeto7 JVTQ== X-Forwarded-Encrypted: i=1; AKwUvBzpgv6pM/k00tgN04Bmo6dVzOLpPKZUuq07jvBtn3AUIGKZr1azkltbK/D3v1Amd/nos3PDIw==@debbugs.gnu.org X-Gm-Message-State: AFq9FYKM07cVpHByttlhC4oGL4v3bCB+gQQXj+rDs+pRv8cYLn364ai+ tzb7PeqsjTaCobuzW/owMqQ79jTEavaVkIHkclpO2juNpLosgLPi4g87SF7i1AjAEp+7c/Ot5Fq QH2GIRyG+Schk6izH8TLiYGSxaF/RUOM= X-Gm-Gg: AYBFou1RI79pImWBrwBKt8Ss5DO1tMDDFxzIvLeHZVmrtXDY16fmYWGxGjW1AlYU0oH VSkGFjlNL8ymeLFZy8Is+Ai1RZo1EZqkfdKNfcLfaPIbJbo4aYyKMnAH075qD2qQXqJSiSRFm9d yuSLtJDQqNdWDPzF6tgaCvW3mAyluIP6alEELn27DjNIgrXHRt8O/GIxlqrR8LHxfW4jcPtDuTQ I8F4rY2FiQ/03wraqX8YH2BkZYOMnmSDQBqElDcReQLZL0IYMzdMkWgpSjhiUHXUH6o9MmTg6Ev BWWRhD3Day9hJanYeAfW9CflYpnLZgT4/EpmPF2VdG/Cc9Bl35M17xmiO3p95ejTtKs01ekUxBP qfad2WOUWTZCU4r9rC6tKqd8wGODVZWcWwdw0ITIsmO73mW8apxF/PMp82GoAKO0n3ByLMnI5Ii ATVWWCbYUOkeb4ND19HUE6+VAKl5eqp0ol04MSkda4Fl7h/k/F1ZkRH8YeomQ3pW7dm5Qq9q3+9 TpDSg== X-Received: by 2002:a05:6102:5cca:b0:7c3:2401:c4be with SMTP id ada2fe7eead31-7cb372b5e47mr2812886137.14.1791892625388; Tue, 13 Oct 2026 04:57:05 -0700 (PDT) MIME-Version: 1.0 References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> In-Reply-To: <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Tue, 13 Oct 2026 07:56:54 -0400 X-Gm-Features: AclHuK_zAG4SsfXRGyze3L2H2iwro1r8ARyAXh-D40RsBwk-Mx_b2yeewJDi8Gc Message-ID: <CAN+1HbphTzhwwZNJezWco6NM2bgTs+n1dKRyP+Fr0dmfpxzmKg@HIDDEN> Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) To: Stefano Pacifico <github@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000697bbe065db78305" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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: 0.0 (/) --000000000000697bbe065db78305 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefano Pacifico <github@pacifico.= cc> wrote: > > > On Oct 12, 2026, at 11:41=E2=80=AFAM, St=C3=A9phane Marks <shipmints@gmai= l.com> wrote: > > On Mon, Oct 12, 2026 at 11:23=E2=80=AFAM Stefano Pacifico <github@pacific= o.cc> > wrote: > >> >> >> On Oct 11, 2026, at 9:50=E2=80=AFPM, St=C3=A9phane Marks <shipmints@gmai= l.com> wrote: >> >> Also add the bug number to the commit message first line (see >> commit 9679bb1 for an example or just about any other commit). See the = ** >> Commit messages section of CONTRIBUTE in the root of the source tree for >> more stylistic conventions. >> >> >> Thanks see attached, and please let me know if more revisions are >> needed. >> > > Couple of stylistic tips. Use bug# not Bug#. Rather than repeat in the > description what is obvious from the diff, I think you can omit the > commentary. > > One other, I suppose optional, thing to consider is adding a note in the = "Runtime > problems specific to macOS" section of etc/PROBLEMS to explain the warnin= g > message and the conditions under which you think someone might encounter > it; e.g., using Nix or Guix or a sandbox. > > > I think the attached patch should address your feedback. > Almost there. I'd move etc/PROBLEMS to the end of the changed file list as it's less important than the code changes. In the PROBLEMS text, you write "Emacs continues to operate normally" but that is not the case. I tested the code by making an emtpy Emacs.clr file unwritable and Emacs -Q GUI display appeared differently, so it was not "operating normally." Are you assuming that in all cases a correctly populated Emacs.clr file will already exist? --000000000000697bbe065db78305 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b= ackground-color:transparent">On Mon, Oct 12, 2026 at 10:46=E2=80=AFPM Stefa= no Pacifico <<a href=3D"mailto:github@HIDDEN">github@HIDDEN</a= >> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_contai= ner"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo= rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br id=3D"m_-38= 21932156779052237lineBreakAtBeginningOfMessage"><div><br><blockquote type= =3D"cite"><div>On Oct 12, 2026, at 11:41=E2=80=AFAM, St=C3=A9phane Marks &l= t;<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@gmail.= com</a>> wrote:</div><br><div><div dir=3D"ltr"><div dir=3D"ltr"><div sty= le=3D"font-family:monospace"><span style=3D"font-family:Arial,Helvetica,san= s-serif;background-color:transparent">On Mon, Oct 12, 2026 at 11:23=E2=80= =AFAM Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" target=3D"= _blank">github@HIDDEN</a>> wrote:</span></div></div><div class=3D"g= mail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br id= =3D"m_-3821932156779052237m_2596372929447929901lineBreakAtBeginningOfMessag= e"><div><br><blockquote type=3D"cite"><div>On Oct 11, 2026, at 9:50=E2=80= =AFPM, St=C3=A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN" targe= t=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><span style= =3D"font-family:monospace;font-size:13px;font-style:normal;font-variant-cap= s:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent= :0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoratio= n:none;float:none;display:inline">Also add the bug number to the commit mes= sage first line (see commit=C2=A09679bb1 for an example or just about any o= ther commit).=C2=A0 See the=C2=A0** Commit messages section of CONTRIBUTE i= n the root of the source tree for more stylistic conventions.</span></div><= /blockquote><br></div><div>Thanks =C2=A0see attached, and please let me kno= w if more revisions are needed.=C2=A0</div></div></blockquote><div><font fa= ce=3D"monospace"><br></font></div><div><font face=3D"monospace">Couple of s= tylistic tips.=C2=A0 Use bug# not Bug#.=C2=A0 Rather than repeat in the des= cription what is obvious from the diff, I think you can omit the commentary= .</font></div><div><font face=3D"monospace"><br></font></div><div><font fac= e=3D"monospace">One other, I suppose optional, thing to consider is adding = a note in the "<span style=3D"background-color:transparent">Runtime pr= oblems specific to macOS" section of etc/PROBLEMS to explain the warni= ng message and the conditions under which you think someone might encounter= it; e.g., using Nix or Guix or a sandbox.</span></font></div></div></div> </div></blockquote></div><div><br></div><div>I think the attached patch sho= uld address your feedback.=C2=A0</div></div></blockquote><div><br></div><di= v class=3D"gmail_default" style=3D"font-family:monospace">Almost there.=C2= =A0 I'd move etc/PROBLEMS to the end of the changed file list as it'= ;s less important than the code changes.=C2=A0 In the PROBLEMS text, you wr= ite "Emacs continues to operate normally" but that is not the cas= e.=C2=A0 I tested the code by making an emtpy Emacs.clr file unwritable and= Emacs -Q GUI display appeared differently, so it was not "operating n= ormally."=C2=A0 Are you assuming that in all cases a correctly populat= ed Emacs.clr file will already exist?</div></div></div> --000000000000697bbe065db78305--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 13 Oct 2026 02:46:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 12 22:46:50 2026
Received: from localhost ([127.0.0.1]:47332 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xGSXR-0002lP-QU
for submit <at> debbugs.gnu.org; Mon, 12 Oct 2026 22:46:50 -0400
Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]:54339)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <github@HIDDEN>)
id 1xGSXP-0002kh-5E
for 82032 <at> debbugs.gnu.org; Mon, 12 Oct 2026 22:46:48 -0400
Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44])
by mailfhigh.stl.internal (Postfix) with ESMTP id A4B107A016D
for <82032 <at> debbugs.gnu.org>; Mon, 12 Oct 2026 22:46:41 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
by phl-compute-04.internal (MEProxy); Mon, 12 Oct 2026 22:46:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h=
cc:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm1; t=1791859601; x=1791946001; bh=XZgswApU20
ZpiCvJMwjEZsfmj67agzhorHv3pvtMDpU=; b=J4hHHFwD2V7aZB6QM18uGk3aSw
Xa596W46RKHt185fGxGeMD/3YzSYNFOPepl/6eNBbuB/mKdHlgEOdNypHUzwY06h
tJ9VIT/O+ZM225PutvSiv8KN2V3mp7gYPV/iggQ1gDAwa4oubR/Hd8BV19nbuAJe
ktWBb6qSbBjIFBIlzcfF8sY/wuxoxmmKdQZ8tnAH/iluRizqw267ee+AAL7yXFGm
qGxSmnzLDdD8BADjeGiLiDsIp9kCbEXWjZELy4wFzXXgjZihpJa3x9I256xwZFd3
2hZpQGYBBc6+2C9VuBZdGnLaXl2AH/792x3DIAnq6AE2QDAsEQxDaHK8r1jQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1791859601; x=1791946001; bh=XZgswApU20ZpiCvJMwjEZsfmj67agzhorHv
3pvtMDpU=; b=pCIkUFvhHD50k/MjFYEZZllV7wrnvC5pkpANwRaQKOhP1+eCPWO
Cf/gVHvjNf08ikap0mBpUP9/ybukhzkY3L97kY7/tl9S+6Y+2LXGo39TSjhGWWzv
SHsBjVs3L1CY2kLAnovwIps6d04kkgBnJtbMrcrylktwvKMYuXsE9+0de2yuBwO+
CkGhCU4opF65tbnypCF6CQTWc9OazusiWOY1vI0HkUqlH9Mce0Cg/lnu2zyL+6af
yxgcpmXYhB75ozok72HpKyGbAmsoP88lkcElig+Cnxk+V//+Vgd2ooM5oYili+Cr
EJm7pRq0pQVHQ11sz4TfFtS/y8WNFCEvkkQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=sign d=pacifico.cc a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791859601; d=pacifico.cc;
mf=PGdpdGh1YkBwYWNpZmljby5jYz4=;
rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=;
s=fm1:rsa-sha256:JLX52qrYeKPX8ab/erki2GZVwlupu7BrYhQqNtnD2o2PhEa
bwqcOj939oab91xVSt35u9U+RsUnTg3FUWzO7d/firZW+cueHCCp7XqB1Py51hrL
+9PxSbOm/VsZGQRQlE1Zj2e2VO8BwhwrxVQ9wEWg88a408syGkrh20kTSRM9CL9d
M+ED8IkbHXrZcYor0Twd+bqdR0AQ9gktG9UMwcTyL8V5AS5yupokOwgxExRuUHiD
PAfjwTOtSqhQET/XepCHilb6hwFVRloeXiGGzHKwYWWNtEfjwhvvTodDGIo7hv90
p1qQ7mznY/MI/6wZZ4ZmTC0Xm21uK978WFRKZAA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=mi-m=1; hc=11;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to;
Message-Instance: m=1;
h=sha256:bkLDZpYOrIoHB3oL/ZoM9tpnuD217jXnr+CyVY4YkY4=:NrhJbdUar/KUiCpALdqziCq+paHEoS91v9s8MRExgTQ=;
X-ME-Sender: <xms:kJvNat-ejtvG4roJRYC839iMtzLDVVA0swaZ3UQSviRFaIplsolZFA>
<xme:kJvNaou_ONkXLkfko1EHxERLK5LB9YBDtAPN-Ltdj02r9oAl2DK4DeTyPJBEgHp2j
6kdliUqv-hm-W7dkbjOxWjMzQDSOftAfzDudCy_-7xb00H_PUXG31w>
X-ME-Received: <xmr:kJvNagB-TgX2ljbNz_Lfs4Jfiyy8AG_8MN9Mw-L_FTd_3CWVy4-FTlvRKvPdA4yfKq-rcvCLauHLMV-Z3FJjYaPidwE__3zM9VSb30QqnXSegQJJGwCuVP4PJQ>
X-ME-Proxy-Cause: dmFkZTFJQiQLKTU8nS4OFUatXGUObDUmDdZsnv9yLYR2jjF9w9sf5E0uxH+1D2hijqWjc8
k4vQbPeSwv63m6q1TRe6vnYjKjF0G7JtF63zPryycCzFZO6wkgtVt8ZEzlJq+itusbAIL0
5YFQwVxuppOQqIjFZXqWD8TEI0orM1EFyfa76HVq/PlNi7zUg7kRiBewhEpNTS7Ed66iKL
AkKz7LPtfFFpRAtVGV1ghL2K1JMzQW7hzvltMyFjDR4xCl0Aqazg0KZf53fmSNAML2g72s
m9Xjs5ULlXVnVc3peeSfqxB9STr88jf4DAMO6CiSZwcfP/iiuc8vHNxeQPyWobQsOKDweS
jHddFKiR+hNjU4SIzGSfdLMoZhcxQRgSV4OeaKwPO3NonlSKconjuQ6lTqgjW1SNNwNiFI
prnZWUjgFNHXpn2eO7U75wAjRRmG1iUjWl/ncyGC6Fhrs1mw4sYVS16UiwTSEIhNsO5SPR
msw7rM55hWVm8uK2/+u3pH7YaSMU7xBmRHkZroSl/zWdAobXg9X0FrUSgetiwRt1Su2oja
s6ejvjl8y4UtRjinyM9vSD2cm5E1V0V2cQN+BRG5unf/DZXhb7gEnfqGx/sSb2kESpPtLh
GQdxXcfKYIAvI1nqLAmmQkxlJVLyz/4CFYEahXtbdB7k2vSVBzvyktgZzEXA
X-ME-Proxy: <xmx:kJvNagW0v8jDPapABGLn3s6Z2OvPNx9rWub9lK-2PldNpcRvwuCrbw>
<xmx:kJvNauBZOa1HPqfdwdJSveQY5h_vWn-rvVzHpkCArr2WfUkraFASfA>
<xmx:kJvNaj_SQLGpQUA-XALsK5E0CLS8FhHRSN7WwFK4TzQdD9PerPNx-A>
<xmx:kJvNalEyfbEfOOEubD5Xfd5eiLEUZ9H4zvJyj860BZo4SaP-8EV3Ng>
<xmx:kZvNavuf42GHycdbt9rjgpsev661X8_pw6aj02RA-KIwcWlEAnciumGD>
Feedback-ID: ie93843ea:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
12 Oct 2026 22:46:40 -0400 (EDT)
From: Stefano Pacifico <github@HIDDEN>
Message-Id: <B393FD33-3EB5-469F-A647-A32F34B9103A@HIDDEN>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_ED04C2D5-85DF-4EAC-8802-5EBA0567DFB4"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
Date: Mon, 12 Oct 2026 22:46:30 -0400
In-Reply-To: <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN>
To: =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
<CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
<16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
<CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN>
<CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN>
<03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN>
<CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN>
X-Mailer: Apple Mail (2.3901.100.1.1.12)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 82032
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
82032 <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.7 (-)
--Apple-Mail=_ED04C2D5-85DF-4EAC-8802-5EBA0567DFB4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
> On Oct 12, 2026, at 11:41=E2=80=AFAM, St=C3=A9phane Marks =
<shipmints@HIDDEN> wrote:
>=20
> On Mon, Oct 12, 2026 at 11:23=E2=80=AFAM Stefano Pacifico =
<github@HIDDEN <mailto:github@HIDDEN>> wrote:
>>=20
>>=20
>>> On Oct 11, 2026, at 9:50=E2=80=AFPM, St=C3=A9phane Marks =
<shipmints@HIDDEN <mailto:shipmints@HIDDEN>> wrote:
>>>=20
>>> Also add the bug number to the commit message first line (see commit =
9679bb1 for an example or just about any other commit). See the ** =
Commit messages section of CONTRIBUTE in the root of the source tree for =
more stylistic conventions.
>>=20
>> Thanks see attached, and please let me know if more revisions are =
needed.=20
>=20
> Couple of stylistic tips. Use bug# not Bug#. Rather than repeat in =
the description what is obvious from the diff, I think you can omit the =
commentary.
>=20
> One other, I suppose optional, thing to consider is adding a note in =
the "Runtime problems specific to macOS" section of etc/PROBLEMS to =
explain the warning message and the conditions under which you think =
someone might encounter it; e.g., using Nix or Guix or a sandbox.
I think the attached patch should address your feedback.=20
Cheers,
Stefano
=EF=BF=BC=
--Apple-Mail=_ED04C2D5-85DF-4EAC-8802-5EBA0567DFB4
Content-Type: multipart/mixed;
boundary="Apple-Mail=_44B50021-B905-4136-9BFD-CB97B4754343"
--Apple-Mail=_44B50021-B905-4136-9BFD-CB97B4754343
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On Oct 12, 2026, at 11:41=E2=80=AFAM, St=C3=A9phane =
Marks <shipmints@HIDDEN> wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div dir=3D"ltr"><div =
dir=3D"ltr"><div class=3D"gmail_default" =
style=3D"font-family:monospace"><span =
style=3D"font-family:Arial,Helvetica,sans-serif;background-color:transpare=
nt">On Mon, Oct 12, 2026 at 11:23=E2=80=AFAM Stefano Pacifico <<a =
href=3D"mailto:github@HIDDEN">github@HIDDEN</a>> =
wrote:</span></div></div><div class=3D"gmail_quote =
gmail_quote_container"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div><br =
id=3D"m_2596372929447929901lineBreakAtBeginningOfMessage"><div><br><blockq=
uote type=3D"cite"><div>On Oct 11, 2026, at 9:50=E2=80=AFPM, St=C3=A9phane=
Marks <<a href=3D"mailto:shipmints@HIDDEN" =
target=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><div><span =
style=3D"font-family:monospace;font-size:13px;font-style:normal;font-varia=
nt-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text=
-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-d=
ecoration:none;float:none;display:inline">Also add the bug number to the =
commit message first line (see commit 9679bb1 for an example or =
just about any other commit). See the ** Commit messages =
section of CONTRIBUTE in the root of the source tree for more stylistic =
conventions.</span></div></blockquote><br></div><div>Thanks see =
attached, and please let me know if more revisions are =
needed. </div></div></blockquote><div><font =
face=3D"monospace"><br></font></div><div class=3D"gmail_default" =
style=3D""><font face=3D"monospace">Couple of stylistic tips. Use =
bug# not Bug#. Rather than repeat in the description what is =
obvious from the diff, I think you can omit the =
commentary.</font></div><div class=3D"gmail_default" style=3D""><font =
face=3D"monospace"><br></font></div><div class=3D"gmail_default" =
style=3D""><font face=3D"monospace">One other, I suppose optional, thing =
to consider is adding a note in the "<span =
style=3D"background-color:transparent">Runtime problems specific to =
macOS" section of etc/PROBLEMS to explain the warning message and the =
conditions under which you think someone might encounter it; e.g., using =
Nix or Guix or a sandbox.</span></font></div></div></div>
</div></blockquote></div><div><br></div><div>I think the attached patch =
should address your =
feedback. </div><div><br></div><div>Cheers,</div><div>Stefano</div></=
body></html>=
--Apple-Mail=_44B50021-B905-4136-9BFD-CB97B4754343
Content-Disposition: attachment;
filename=0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch"
Content-Transfer-Encoding: quoted-printable
=46rom=2082fd07030a3df1faa961252632861171b56e215b=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Stefano=20Pacifico=20<github@HIDDEN>=0A=
Date:=20Sat,=2010=20Oct=202026=2015:42:16=20-0400=0ASubject:=20[PATCH]=20=
Fix=20crash=20in=20ns_init_colors=20with=20non-writable=20NSColorList=0A=20=
(bug#82032)=0A=0A*=20etc/PROBLEMS=20(Runtime=20problems=20specific=20to=20=
macOS):=20Document=20warning=0Awhen=20NSColorList=20is=20not=20editable.=0A=
*=20src/emacs.c=20(main):=20Do=20not=20call=20ns_init_colors=20if=20=
noninteractive.=0A*=20src/nsfns.m=20(ns_init_colors):=20Warn=20and=20=
return=20early=20if=20color=20list=0Ais=20not=20editable.=0A---=0A=20=
etc/PROBLEMS=20|=2012=20++++++++++++=0A=20src/emacs.c=20=20|=20=202=20+-=0A=
=20src/nsfns.m=20=20|=20=205=20+++++=0A=203=20files=20changed,=2018=20=
insertions(+),=201=20deletion(-)=0A=0Adiff=20--git=20a/etc/PROBLEMS=20=
b/etc/PROBLEMS=0Aindex=2096b9e3df18a..396070e22f0=20100644=0A---=20=
a/etc/PROBLEMS=0A+++=20b/etc/PROBLEMS=0A@@=20-3659,6=20+3659,18=20@@=20=
The=20usual=20reason=20for=20this=20is=20that=20the=20color=20file,=0A=20=
~/Library/Colors/Emacs.clr,=20is=20stale=20or=20corrupted.=20=20The=20=
solution=20is=20to=0A=20delete=20that=20file=20and=20restart=20Emacs.=0A=20=
=0A+**=20Warning=20about=20NSColorList=20'Emacs'=20not=20editable=20when=20=
starting=20on=20macOS=0A+=0A+When=20starting=20Emacs,=20you=20may=20see=20=
a=20warning=20in=20the=20system=20log=20or=20console:=0A+=0A+=20=20=
Warning:=20NSColorList=20'Emacs'=20is=20not=20editable=0A+=0A+This=20=
happens=20when=20~/Library/Colors/Emacs.clr=20cannot=20be=20modified,=0A=
+for=20example=20when=20running=20under=20a=20restricted=20sandbox,=20=
container,=20or=0A+in=20environments=20like=20Nix=20or=20Guix=20where=20=
library=20paths=20are=20read-only.=0A+Emacs=20continues=20to=20operate=20=
normally,=20but=20the=20named=20color=20list=20is=20not=0A+updated.=0A+=0A=
=20**=20macOS=20doesn't=20come=20with=20libxpm,=20so=20only=20XPM3=20is=20=
supported.=0A=20=0A=20Libxpm=20is=20available=20for=20macOS=20as=20part=20=
of=20the=20XQuartz=20project.=0Adiff=20--git=20a/src/emacs.c=20=
b/src/emacs.c=0Aindex=2011fe567737a..b8d5758eada=20100644=0A---=20=
a/src/emacs.c=0A+++=20b/src/emacs.c=0A@@=20-2292,7=20+2292,7=20@@=20=
android_emacs_init=20(int=20argc,=20char=20**argv,=20char=20*dump_file)=0A=
=20#ifdef=20HAVE_NS=0A=20=20=20/*=20For=20early=20calls=20to=20=
ns_lisp_to_color=20or=20Fns_list_colors.=0A=20=20=20=20=20=20Must=20=
follow=20init_callproc=20which=20sets=20data-directory.=20=20*/=0A-=20=20=
if=20(!dump_mode)=0A+=20=20if=20(!dump_mode=20&&=20!noninteractive)=0A=20=
=20=20=20=20ns_init_colors=20();=0A=20#endif=0A=20=0Adiff=20--git=20=
a/src/nsfns.m=20b/src/nsfns.m=0Aindex=20148bbc7923a..36735298400=20=
100644=0A---=20a/src/nsfns.m=0A+++=20b/src/nsfns.m=0A@@=20-2254,6=20=
+2254,11=20@@=20Frames=20are=20listed=20from=20topmost=20(first)=20to=20=
bottommost=20(last).=20=20*/)=0A=20=09fatal=20("Could=20not=20read=20=
%s.\n",=20SDATA=20(color_file));=0A=20=0A=20=20=20=20=20=20=20cl=20=3D=20=
[[NSColorList=20alloc]=20initWithName:=20@"Emacs"];=0A+=20=20=20=20=20=20=
if=20(![cl=20isEditable])=0A+=09{=0A+=09=20=20NSLog=20(@"Warning:=20=
NSColorList=20'%@'=20is=20not=20editable",=20[cl=20name]);=0A+=09=20=20=
return;=0A+=09}=0A=20=20=20=20=20=20=20for=20(=20;=20CONSP=20=
(color_map);=20color_map=20=3D=20XCDR=20(color_map))=0A=20=09{=0A=20=09=20=
=20color=20=3D=20XCAR=20(color_map);=0A--=20=0A2.56.0=0A=0A=
--Apple-Mail=_44B50021-B905-4136-9BFD-CB97B4754343
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"></body></html>
--Apple-Mail=_44B50021-B905-4136-9BFD-CB97B4754343--
--Apple-Mail=_ED04C2D5-85DF-4EAC-8802-5EBA0567DFB4--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 12 Oct 2026 15:41:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 12 11:41:41 2026 Received: from localhost ([127.0.0.1]:46839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xGI9k-0006NK-QJ for submit <at> debbugs.gnu.org; Mon, 12 Oct 2026 11:41:41 -0400 Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]:47274) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1xGI9g-0006ML-T7 for 82032 <at> debbugs.gnu.org; Mon, 12 Oct 2026 11:41:38 -0400 Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-7c19c6721a3so1344212137.2 for <82032 <at> debbugs.gnu.org>; Mon, 12 Oct 2026 08:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791819691; cv=none; d=google.com; s=arc-20260327; b=ekn4/AZWLeAv5oGN0UDMscrLcBGiXIsf7Z+98/yEx9lbMiCOvgzXds1wHIFB/n0kj1 NPdeR/rJQP1oNzJv3f9Nu1HQG5hUgQNs2cngRkb0j3EIwTu5Fs0Rj7/vXUlAJKnMrom/ zsiq7TJVGxtEPZSNLHCTlLZ7v4S0M/e0m0os9rdUWidYYy4/h6+NvyS8j2FTbA+qcXa6 EbijBgPIcwV8csHGyS017SxANuGT//dbAhN8rkAwpOvaCrfjcw5VBbKFLj7miw6phbw1 ts+iPRh2r0C4kyG7V66ne3TgGhOjCLJ0lpBRYbt1coxZ7AI3KBw5vRe5grtGni6yP74z XhcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=FaJvsIKLVBD0338/UYI2B6QnWmNJFKy01FCrkuWqFtc=; fh=bVOgsXiUnW8k7QvIcEoSaOIwNNatRYIGeHHXRgnbBN0=; b=gxp4U7k53xVHo59EdpuLMS/9VJ9w7E5NZr1+MYzlPIAHwlX7reJfZSCWX9ISfilAiy wcwp0T0TnP4N+Gw37K6jOjGGtWwBWCc/TmaOD24QSiODEeu0/q0btU3bES7TylMRvrGt Y0b885SV3Slgno03zxnnS7I4mCHR9+gbQz/Zkkh0fzrSwFYAnXMpTqE9o9Dzeu9T+AQw rOZ53yc/WdRU9I38gpNtDhw1TQMvBsoYg7TMkAKJn47Cf0fTevggYUY+dGGvksW7bJRP fwtZm7sj4Fnt0dzgoEc5HD51IGl9itpoSJ0O1+YO58rPBUWYf6YVJbxBnPJZoyAfDtae Y+ZQ==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791819691; x=1792424491; darn=debbugs.gnu.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FaJvsIKLVBD0338/UYI2B6QnWmNJFKy01FCrkuWqFtc=; b=KeUDUpi96NETur8hNzdsF2BzZiAgfB4DBSwEM1v3aJL6TZ+g6AWr47pntEKwrcEDUR hNsHiyfzsipaDw7MR24Fq2I7CsIRd/tRL2SuCOeyzhC0sW4tzVXxp1BpbN/rxdxLTWis AnRb4q6uqNZKd65UcuC9IcWUXa/FYG3jFQqq6yJn2fMvpwa6LGDB8kWbEIUFA7iEOZDH 3vCObrIJyqlFl1sWrOorBkPF0m/mw/h8t9ObjEwMQDuzDWmu8+gbiCsxV7Pc2nycP9X9 DLusahegRIQD4DI/DHKZsD63JjGCiqb7hqB4GYmXVuncHYgljF3wfp40boKVV0zbbnfi GSkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791819691; x=1792424491; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=FaJvsIKLVBD0338/UYI2B6QnWmNJFKy01FCrkuWqFtc=; b=vP6lxUroZ3tID/VJYsf8xvIf5IsW2paS7LwCIt0SQtLmHnlEPRZc3+2mlcOOFX+ruo va+I9cE6FslAz/yGl/emNHZBX1j3kU9IdE4TbjTl2E+nv7CcNR84anxcBzZR1Hfhcwiq Pc6NAy43DxXy9Bel7/VZBQetUwH0Vqq4J4SeE/hczvrbQVQ5MvhmnyGmaBE1iUFGn11/ libvGdufsl8ejEx7Lb5XBj98jfYWHoSOKuUgQOjn0VT6+73jAPdP0Z/Nq1d/tvwrMuIA /dLsr4TioIP61Kapgy+ztHnLWImoW8uv4N2FPnALg+EqIrXF7cN47gIySQAcrk7IM+kf WZ3Q== X-Forwarded-Encrypted: i=1; AKwUvByhBoyzLgTZFNZnC0dezvygh3+9AobyazY+3RjKAaZ/tjlefthfIAn23nMNJHA6a65l1TTa0g==@debbugs.gnu.org X-Gm-Message-State: AFq9FYKZ1j+q0hF2I4Dn8Fh3pg0KEbgAwaULgDv3i0vHqJjc0qFN073e 2Gmg4E6cy2g8cCRwqY7Ge+NcQI4w3pH9EIzEvHQRWCzu6QTXdk3fofRv5FpfY737bUu3mAQuGx2 /WS2UIqLuyEy5mbRgMoz06Jn89Ewk7tAQmHrv X-Gm-Gg: AYBFou2RW2kEAEryzBElCvo3wjMSHkZ0TRZMWVaD6FGomMfIHdvVvzN7J+3Da3SoPid 5NDlTZkWTZnZoM8n7W6KapUGFVK4QRrnVG3/dCCWzsTXsVLXxhiP49T/mG50V1mEhWzqNnf7P8P zKXN/9f/tTPH8KDbNY14eX7K8I3WBiIhPP/HslTuuyHDwskXhTvT2IvIuajxGsS5zYOHz0U4Tld 1kBMPHzuFQBkOW5MWGuPRp/IsYn8q9wVQfxU94LHux3vYSpkq/CpTgZiWDWs7KQGz2ODFSWVCnN fayWKAM70ddofZYcQFB071FyYKFm/Z3/IFRmMKiYWusLoor/lo80GhNpbKpKMYtmUJ74DJho2+e tAAqUkbr/PXrYC2Y+oafwZk360vTYXJgq1KU/mQI5H5655NzhFKuZ8WgEfHXoTGfkyVs123V3mI aq6ACCw02Gs8OQux22lTJGj3iwYlrWL32l7zGVWBrlYXAVsL5F5uVNRa9ftEdLGyQCKkT9JCT/7 LwRqQ== X-Received: by 2002:a05:6102:2909:b0:7bc:1de3:39b0 with SMTP id ada2fe7eead31-7cb3a15e9a1mr3356276137.32.1791819691072; Mon, 12 Oct 2026 08:41:31 -0700 (PDT) MIME-Version: 1.0 References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN> <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN> <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN> <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN> <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> In-Reply-To: <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Mon, 12 Oct 2026 11:41:19 -0400 X-Gm-Features: AclHuK8d4unociPOyb8Ziz4lt-7C9Ja3WcisxwDG45zOvAVNPqpy6zzc4ua5c88 Message-ID: <CAN+1HbpXgUB0y7w1SjSKdMPuzSZzsTo_6FDA+0n5Bhc2fn14cA@HIDDEN> Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) To: Stefano Pacifico <github@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000301fe7065da6889a" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 82032 Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>, 82032 <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: 0.0 (/) --000000000000301fe7065da6889a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 12, 2026 at 11:23=E2=80=AFAM Stefano Pacifico <github@pacifico.= cc> wrote: > > > On Oct 11, 2026, at 9:50=E2=80=AFPM, St=C3=A9phane Marks <shipmints@gmail= .com> wrote: > > Also add the bug number to the commit message first line (see > commit 9679bb1 for an example or just about any other commit). See the *= * > Commit messages section of CONTRIBUTE in the root of the source tree for > more stylistic conventions. > > > Thanks see attached, and please let me know if more revisions are needed= . > Couple of stylistic tips. Use bug# not Bug#. Rather than repeat in the description what is obvious from the diff, I think you can omit the commentary. One other, I suppose optional, thing to consider is adding a note in the "Runtime problems specific to macOS" section of etc/PROBLEMS to explain the warning message and the conditions under which you think someone might encounter it; e.g., using Nix or Guix or a sandbox. --000000000000301fe7065da6889a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b= ackground-color:transparent">On Mon, Oct 12, 2026 at 11:23=E2=80=AFAM Stefa= no Pacifico <<a href=3D"mailto:github@HIDDEN">github@HIDDEN</a= >> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_contai= ner"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo= rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br id=3D"m_259= 6372929447929901lineBreakAtBeginningOfMessage"><div><br><blockquote type=3D= "cite"><div>On Oct 11, 2026, at 9:50=E2=80=AFPM, St=C3=A9phane Marks <<a= href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN<= /a>> wrote:</div><br><div><span style=3D"font-family:monospace;font-size= :13px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spa= cing:normal;text-align:start;text-indent:0px;text-transform:none;white-spac= e:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">A= lso add the bug number to the commit message first line (see commit=C2=A096= 79bb1 for an example or just about any other commit).=C2=A0 See the=C2=A0**= Commit messages section of CONTRIBUTE in the root of the source tree for m= ore stylistic conventions.</span></div></blockquote><br></div><div>Thanks = =C2=A0see attached, and please let me know if more revisions are needed.=C2= =A0</div></div></blockquote><div><font face=3D"monospace"><br></font></div>= <div class=3D"gmail_default" style=3D""><font face=3D"monospace">Couple of = stylistic tips.=C2=A0 Use bug# not Bug#.=C2=A0 Rather than repeat in the de= scription what is obvious from the diff, I think you can omit the commentar= y.</font></div><div class=3D"gmail_default" style=3D""><font face=3D"monosp= ace"><br></font></div><div class=3D"gmail_default" style=3D""><font face=3D= "monospace">One other, I suppose optional, thing to consider is adding a no= te in the "<span style=3D"background-color:transparent">Runtime proble= ms specific to macOS" section of etc/PROBLEMS to explain the warning m= essage and the conditions under which you think someone might encounter it;= e.g., using Nix or Guix or a sandbox.</span></font></div></div></div> --000000000000301fe7065da6889a--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 12 Oct 2026 15:23:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 12 11:23:37 2026
Received: from localhost ([127.0.0.1]:44018 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xGHsH-0004Uy-1u
for submit <at> debbugs.gnu.org; Mon, 12 Oct 2026 11:23:37 -0400
Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]:46791)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <github@HIDDEN>)
id 1xGHsD-0004UR-Qa
for 82032 <at> debbugs.gnu.org; Mon, 12 Oct 2026 11:23:35 -0400
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
by mailfout.phl.internal (Postfix) with ESMTP id 2D53CEC084F
for <82032 <at> debbugs.gnu.org>; Mon, 12 Oct 2026 11:23:28 -0400 (EDT)
Received: from phl-frontend-04 ([10.202.2.163])
by phl-compute-05.internal (MEProxy); Mon, 12 Oct 2026 11:23:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h=
cc:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm1; t=1791818608; x=1791905008; bh=VKFMLy/7to
so+Q+dVfn4ekY/3zA8flQKntQsMyZCI+8=; b=DjPD1foImT0VFFpBuf3Fahm89g
El7sBjA3F8SJiIMscbK5qCFJdGLvI52DN+NJP7ZFFFhdpR4oSH9isAcozU94wrLz
7yYpdCF6TN8xoN+HeogbauxW0oJGX9rolMPuYfp15kyaxt1DoJhrKgHTqGtLGvQI
B4ZsxyRXP+KphaBVo+ipQBMYQKqosDiTDir6mX7f7n4TqyUvfAOpqPdCnhu+g0zs
78dLDliyToQ+Hdbvs+MCit8PciAy71vO9yWTqhIAhEahktvVXroUEimjP6rUNo/O
bB/e2BihjQCubCj61ugmvoTQNcNnhqIpuZAuvum0aOqcRC5Hd0Do0ixXUXkQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1791818608; x=1791905008; bh=VKFMLy/7toso+Q+dVfn4ekY/3zA8flQKntQ
sMyZCI+8=; b=KNXQWvSzbKAXDlAIwMzyu2U+eR97fzic64qjD0McL+dDluc7sd3
BPQlEqEGgyo/PkgLmY2PKHrrCwS0KBptEGGoI8DLN+JhcYtYR4MNVxqrxqx779S8
C2v7ltP8ornafzDL9MPHhPDcLdnR80w2HMudzmOY6BahO+7GGGWZWHmmcgeKlJZg
EdXyo+216amXj87uugyOp5UlTHAmrGHwVxjVNBNFQvW/JMzFcx/3ao62lxu5zQ6P
leY9WZCAquC9TeWcuQNb/fpQxHr1LEtSJhF83FRpdkjr3QU/9YBpilIn0MzBoltM
PMQpdeEPmebFjdiFg5asw7drI+iaKObmX0A==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=sign d=pacifico.cc a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791818608; d=pacifico.cc;
mf=PGdpdGh1YkBwYWNpZmljby5jYz4=;
rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=;
s=fm1:rsa-sha256:lrjtrZXBT0XisWZxJg77Qu507mpFUNyaIunmHOFGVFebp2t
N73ThnkZgVHGrOkPQczP+SbArqnKQsnJ9N3oQn7kcgL3Ot4oqbe1qoFsolIT5fY2
1Ksmhf9e9Sq8eQvHmBq9YwhximjrcSA1XkqG4ioacjmukfxlrF4me3i4UTPmETxk
QzaW5li1EoQ9dgVvcrcjWTMC0cOWqtmCY1EEy+Qx+7FoedDMhS6Kffqid6nrKsMk
HfRzZhLez8CAEh3j4Rj1/7SMRYE9OC1ZK7lnGxZFG7vPtlrYpsmv6lBebEPtAH6o
QL7z6UwQyoF0lMY/NBRgeGlA+3MYtQ43SmsaljA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=mi-m=1; hc=11;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to;
Message-Instance: m=1;
h=sha256:o3gnITfCnTBioa1YHLklcppoL1rnzHSrcICQrUfLIaQ=:2+NRVNESpyDxqksEgJDdiWxHEZJkNneCHi2kYgy9mEY=;
X-ME-Sender: <xms:b_vMamRbIEMh-A9roEW-URDSLsv1ATZeWmjSJpRFnyV3xJ4SKHidQA>
<xme:b_vMaiyCQQJ8KmtWfpky0CFapvEqEzrnAFNyH3re16WBVEW01ukowGtE95ipdNAtf
-Hgy7lRq5Ib_QpzfxyPWBvtQrFe5wOa87eL-aKiPrauPFFgoXUWWF8>
X-ME-Received: <xmr:b_vMao0CUmcfG482eTmUHtkyeXjm4y4kENCIQ3Onp2E2fQqh9aGe-OSdbAEJk7Ov3aWXTwYYvpc-RWLucaKXHT8vZAl31O0S8E6qH22OY8EX-jBFhzBZSZFIQA>
X-ME-Proxy-Cause: dmFkZTG22sDH93FSVz3fTuKJHJsreNUg8L+49zuBC3JL9Dxf2IOt74DgktJB4QQypc/m3O
JNlvzl6zER5zQKY9VhJda5tPQ7v207iHstPXpc9ZbIPY2txSYo7BCfOQvI7dx1ZuFNXiFV
1fYdN8OQMSMGwU5gWUZ1yI6WSM8q9Rfwtl2h7Xp+Rq4rxUVPCHxWdJeeE/Fv7sE6CHVk3L
ks54h+eXXaa47w8qk5ttSd/HwUdIyFc5ocRW8TiszSG2Wzmx4Huc2FQOv9QRUYTBgmuzGu
sOJz8MYBDFcK4Bdow5TKvAyIfqFmUOZ/CpuOupnkELwxRRf3JQ75H0prVfO9g0siL1UQgt
kIQZwKzHsMobZ3M2qJzdC7oXpxz6CV6GjH0OE3YnKyQwjkwCySwL7XpVKuJ72wSRZOMXba
qnE+ptXPZwPXIdGbSCEzchnHI2OTMjS/WoJe7A/7tuoBS3BCGdlPaVYLCbDIp83BmJdQGL
2ZG57ZVMpqQkGfWOIeMFOrGu+rfeqVMW17ON05bFmhHAHBQh8fnyW9B382y1VYo4ojSzQy
Iv5lx6kjbZPccExFxwwOJblmnftFxE0bKXPi8SgqJmgLKFsuoY0CnNXM5uOEp/vGtVHQwR
ybjsyOekSGRrQEV29BAj++tcv4DzBAcKAwslyqZ+mFqlUInE0qz+883BRoNg
X-ME-Proxy: <xmx:b_vMag7SUSXQcyrl2CUsGWxqDkXzjNmSZBfljJUd89f4HXejTkfJsQ>
<xmx:b_vMarU5uNxl_FM9R_arytYwow3_vCNB5fDHoqnqLQnkS8EEpfdUeQ>
<xmx:b_vMavB9u_W5dtCqyrmDR2t2GR73EpiZdDN-syqqYdfnWgq7WVVRaw>
<xmx:b_vMaq5SJdXcAbyLEVlOaNsqmzpU3rC71MV7HF5TihXMaQne2BMzXQ>
<xmx:cPvMarBJUTsF1lki1fvz0NrNn-LthLnUev5apEsJOCCy-9-HcpuCcDUB>
Feedback-ID: ie93843ea:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
12 Oct 2026 11:23:27 -0400 (EDT)
From: Stefano Pacifico <github@HIDDEN>
Message-Id: <03990E87-C019-4BC5-BE34-F3B1ABA70658@HIDDEN>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_7CBDDB5C-201E-4E54-9288-49D297C08E43"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
Date: Mon, 12 Oct 2026 11:23:17 -0400
In-Reply-To: <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN>
To: =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
<CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
<16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
<CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN>
<CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN>
X-Mailer: Apple Mail (2.3901.100.1.1.12)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 82032
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
82032 <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 (-)
--Apple-Mail=_7CBDDB5C-201E-4E54-9288-49D297C08E43
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
> On Oct 11, 2026, at 9:50=E2=80=AFPM, St=C3=A9phane Marks =
<shipmints@HIDDEN> wrote:
>=20
> Also add the bug number to the commit message first line (see commit =
9679bb1 for an example or just about any other commit). See the ** =
Commit messages section of CONTRIBUTE in the root of the source tree for =
more stylistic conventions.
Thanks see attached, and please let me know if more revisions are =
needed.=20
=EF=BF=BC=
--Apple-Mail=_7CBDDB5C-201E-4E54-9288-49D297C08E43
Content-Type: multipart/mixed;
boundary="Apple-Mail=_AA2CE215-25F4-4DDD-AF8B-72649EF00AD8"
--Apple-Mail=_AA2CE215-25F4-4DDD-AF8B-72649EF00AD8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On Oct 11, 2026, at 9:50=E2=80=AFPM, St=C3=A9phane =
Marks <shipmints@HIDDEN> wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: monospace; font-size: =
13px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;">Also add the bug number to the commit =
message first line (see commit 9679bb1 for an example or just about =
any other commit). See the ** Commit messages section of =
CONTRIBUTE in the root of the source tree for more stylistic =
conventions.</span></div></blockquote><br></div><div>Thanks see =
attached, and please let me know if more revisions are =
needed. </div></body></html>=
--Apple-Mail=_AA2CE215-25F4-4DDD-AF8B-72649EF00AD8
Content-Disposition: attachment;
filename=0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch"
Content-Transfer-Encoding: quoted-printable
=46rom=20ccfe43a5e6ffe8730198d16c2a0bfd2ec96fc33f=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Stefano=20Pacifico=20<github@HIDDEN>=0A=
Date:=20Sat,=2010=20Oct=202026=2015:42:16=20-0400=0ASubject:=20[PATCH]=20=
Fix=20crash=20in=20ns_init_colors=20with=20non-writable=20NSColorList=0A=20=
(Bug#82032)=0A=0ADo=20not=20initialize=20NS=20color=20lists=20when=20=
running=20noninteractively.=0AAlso=20verify=20that=20the=20color=20list=20=
is=20editable=20before=20attempting=0Ato=20populate=20it,=20preventing=20=
an=20uncaught=20NSColorListNotEditableException=0Awhen=20running=20in=20=
sandboxed=20or=20read-only=20environments.=0A=0A*=20src/emacs.c=20=
(main):=20Do=20not=20call=20ns_init_colors=20if=20noninteractive.=0A*=20=
src/nsfns.m=20(ns_init_colors):=20Warn=20and=20return=20early=20if=20the=0A=
color=20list=20is=20not=20editable.=0A---=0A=20src/emacs.c=20|=202=20+-=0A=
=20src/nsfns.m=20|=205=20+++++=0A=202=20files=20changed,=206=20=
insertions(+),=201=20deletion(-)=0A=0Adiff=20--git=20a/src/emacs.c=20=
b/src/emacs.c=0Aindex=2011fe567737a..b8d5758eada=20100644=0A---=20=
a/src/emacs.c=0A+++=20b/src/emacs.c=0A@@=20-2292,7=20+2292,7=20@@=20=
android_emacs_init=20(int=20argc,=20char=20**argv,=20char=20*dump_file)=0A=
=20#ifdef=20HAVE_NS=0A=20=20=20/*=20For=20early=20calls=20to=20=
ns_lisp_to_color=20or=20Fns_list_colors.=0A=20=20=20=20=20=20Must=20=
follow=20init_callproc=20which=20sets=20data-directory.=20=20*/=0A-=20=20=
if=20(!dump_mode)=0A+=20=20if=20(!dump_mode=20&&=20!noninteractive)=0A=20=
=20=20=20=20ns_init_colors=20();=0A=20#endif=0A=20=0Adiff=20--git=20=
a/src/nsfns.m=20b/src/nsfns.m=0Aindex=20148bbc7923a..36735298400=20=
100644=0A---=20a/src/nsfns.m=0A+++=20b/src/nsfns.m=0A@@=20-2254,6=20=
+2254,11=20@@=20Frames=20are=20listed=20from=20topmost=20(first)=20to=20=
bottommost=20(last).=20=20*/)=0A=20=09fatal=20("Could=20not=20read=20=
%s.\n",=20SDATA=20(color_file));=0A=20=0A=20=20=20=20=20=20=20cl=20=3D=20=
[[NSColorList=20alloc]=20initWithName:=20@"Emacs"];=0A+=20=20=20=20=20=20=
if=20(![cl=20isEditable])=0A+=09{=0A+=09=20=20NSLog=20(@"Warning:=20=
NSColorList=20'%@'=20is=20not=20editable",=20[cl=20name]);=0A+=09=20=20=
return;=0A+=09}=0A=20=20=20=20=20=20=20for=20(=20;=20CONSP=20=
(color_map);=20color_map=20=3D=20XCDR=20(color_map))=0A=20=09{=0A=20=09=20=
=20color=20=3D=20XCAR=20(color_map);=0A--=20=0A2.56.0=0A=0A=
--Apple-Mail=_AA2CE215-25F4-4DDD-AF8B-72649EF00AD8
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"></body></html>
--Apple-Mail=_AA2CE215-25F4-4DDD-AF8B-72649EF00AD8--
--Apple-Mail=_7CBDDB5C-201E-4E54-9288-49D297C08E43--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 12 Oct 2026 01:50:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 11 21:50:38 2026
Received: from localhost ([127.0.0.1]:53952 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xG5BW-00034y-90
for submit <at> debbugs.gnu.org; Sun, 11 Oct 2026 21:50:38 -0400
Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]:51402)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
id 1xG5BT-00034M-2T
for 82032 <at> debbugs.gnu.org; Sun, 11 Oct 2026 21:50:36 -0400
Received: by mail-vs1-xe31.google.com with SMTP id
ada2fe7eead31-7c337cd6614so807008137.2
for <82032 <at> debbugs.gnu.org>; Sun, 11 Oct 2026 18:50:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1791769829; cv=none;
d=google.com; s=arc-20260327;
b=NqIm1hXy2brxqFfR9i+J9ca+elcKUb1YBMHFAQUq8gczIrBB0JjUx1nnjWFCGd0ClZ
xWJVn3khK0O6LaYaL/NMts/0qTtOk5Y8KuxXMaxmfutJ4/C9X/0h+dL4eycO0AG0zp3E
jcKjwEUDLm0URkOXybXT9b2yIhrdpTklYG+EcpMwNVNNggSStXvJMuHZukY6eFmcLO/1
GoiEMpjXZ2dxiXpG08eeB0ZtjmficyTSATU4FyV1xJLDhmqiuCcNgltIpJ0NNAib63Y4
YC5YxjcrDZyTack4uxspDuyOa86Khp2/tUEro5U0eQUYON9RuyuN8WEVdFK/VaPWKyTy
Tmtg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=uVjJADfeCOR24pSLv921acv5pfy9iFw5td/326xKmhs=;
fh=Pj67p802oEJZ2f6TrKsOH8CHRq0pfdXHXZN+H+iQurY=;
b=Tq3x+qtAKn47mXQKnoOl3uCZKS+xlNBmS+5/Vmk2InMgJoK4kJIGmiIfjWUDC5GCgA
kLlUoFbf6uC8ySCR+YqrpgseUG4t1qF3x2HnMUgLJvdKtTuT0XiznhaCPPzU0kf9tUum
0L/Fey15L6nrxsLnYydeAPA1qo1JksC880rXQ7qMQczBuordFSoSUGA9SSoOjdxT8XYZ
Dn5r0aoUZi2mx6TZQjzEE0BwKs7hRi8G+UXjHsLdjRzfoDg0z8U4kw6dSrFDZDj5HS2e
cURaCCazh4cBI4pslgsn4zQPd9RR1/JWf+5e0QfKXcVd0iXDqePsdzz/RkDexUwwFcKu
E6WA==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791769829; x=1792374629; darn=debbugs.gnu.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type; bh=uVjJADfeCOR24pSLv921acv5pfy9iFw5td/326xKmhs=;
b=Cr4Q0Tjd7ad4np6Wq0+nZQK2E3yvQlKHS1FnKIO9EyD8dFXwy6z+lpxkMjN9eT/5Dl
qdSwqzp8q+LjPDd0XJ4RdplNoRG6sfobYnCbj4ASjy8ppVN9KBM5eKVWkglLVyD8KlHe
qpYFn9Ta4SJfo4EoTkJsnjCi/noM7ymfyGPAPPaJGm7R1X1gtWceA6FxHyiyVDGviLeq
W6GtlxCzHsEh1GGe/4Sa9QQKR1w0lvPLod06lINf70JWMVvJWIgjAAGq/UOCzDyZ0fWM
W6QdCBdl7Q4gkbBQtG306a0scbE6aVppEO1u5ihJEmFjLebt16PlMAalTKmxrYT3nBmC
Cmxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791769829; x=1792374629;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=uVjJADfeCOR24pSLv921acv5pfy9iFw5td/326xKmhs=;
b=Kn2fMeLULqCzU79BWTD2ySkQoLHfaNzEXIG7OG3partyO25e+m/8QU9uCu1Ap0DDcw
USGq3qnSbqAdz183kV4RWoJD+8uZRIkV3sknW3Ec7kUE7Ld09NPMS+vq7mule/mUsCBe
Bzts3V3qtA4dN3ypZ61JT7Hjc7p7GHY37lVo7Yv7xcMx3n76Ukf57I2AUfl9vpptUL4S
h1ozFWLQW0JmjbMmfe/cz76YxRaHVrqS+/lzdTqiuF82wDgq34uXyV31/Eyut6ivN+O9
nbLfoEfjN4hhfS8SHXExk7YOHXD7qdabEBPcIUfX7iCfzjv3rL6KAcZFQMne2jXeCbVo
FOjQ==
X-Forwarded-Encrypted: i=1;
AKwUvBy130h4KlB6vqeabfImoXYYGeHXB/mW3q0I1RXUHXTzGgvcuQjPhKaeqslwwb2gPNVUG+6Qbg==@debbugs.gnu.org
X-Gm-Message-State: AFq9FYI/J0en03/BYp6U/55nCHe8jeanfBNm0hWegSc8a5/SyaUdgljU
rhuY32sUR2TCz6fucmqSntGgryznjwxC2aJ+jumWQJJvkM3Rp4LPdOpVTaCVDwq2odhvfy0kNli
E4eYoJMXcUf169+rKZIWOu7PGIIShi8k=
X-Gm-Gg: AYBFou3xYR2NX7x2NuNku15VB80ECi6cnLF2a1DZfYSDdl6H5j7VAHpNFG11C1H5pnW
O8jafDX1QZiW63P4JXAMmGsWzTHbXaC941fkGGlkjgi4GGrJX/DkUIaYX4G+bQiTzMvfDAoD5d1
N+lRf9Tg5+W1fsChev9BcbC/G8aIRLVP4eIQeOkEXca7pXaaoIKKK+/1oquQPlfseN4IBxFD34P
wakhhLWFfmL8Nk0sRETJbiYkAE+5aSnOjt3hIMepFA6JkrAkUEvL/afaHzFiwUp63SzoKxEbBIS
r84lqgGIjZw6yhVmWSDisl/NLM0rAvv68Hj7SDNmpQOC/MPgmcgVmyj4K60nfI7x+pYd1t8VtHp
EcNNrjDtbnZ1upZvDM8rCOKsAFfH+VovCDLkB2UV5wH7PjeYS+o7ILgq0AqcXMwlhFkTmm0VNfi
3MrpWh1qRsbHQg36OQivs705NUr9bPRy6YuGRlkd9bXzjftOw/6rcQ4Woa94Z6sJH0DcSKZM2Q7
NBrUPe/urdg3pT8
X-Received: by 2002:a05:6102:3ca4:b0:7c7:f976:ea9c with SMTP id
ada2fe7eead31-7cb372a28fbmr2376350137.13.1791769829156; Sun, 11 Oct 2026
18:50:29 -0700 (PDT)
MIME-Version: 1.0
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
<CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
<16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
<CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN>
In-Reply-To: <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Sun, 11 Oct 2026 21:50:17 -0400
X-Gm-Features: AclHuK8f69s-IdaDiM9GtG2iUjgIWo71VK8cmIdBglUSEVhIHvAtlnZbfm7kog0
Message-ID: <CAN+1HbpLba33RcnEQeUu-ve8ORexLKHtMcu2PKYy-8hEBz3DVA@HIDDEN>
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
To: Stefano Pacifico <github@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000002fadfa065d9aec45"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82032
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
82032 <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: 0.0 (/)
--0000000000002fadfa065d9aec45
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, Oct 11, 2026 at 5:59=E2=80=AFPM St=C3=A9phane Marks <shipmints@gmai=
l.com> wrote:
> On Sun, Oct 11, 2026 at 5:55=E2=80=AFPM Stefano Pacifico <github@pacifico=
.cc>
> wrote:
>
>>
>> On Oct 11, 2026, at 3:31=E2=80=AFPM, St=C3=A9phane Marks <shipmints@gmai=
l.com> wrote:
>>
>> The proposed changes LGTM though I'd prefer not to fail silently.
>> Stefano, are you okay with below?
>>
>> diff --git a/src/nsfns.m b/src/nsfns.m
>> index f10297ed8d7..8f4bbb8a4e0 100644
>> --- a/src/nsfns.m
>> +++ b/src/nsfns.m
>> @@ -2254,6 +2254,11 @@ Frames are listed from topmost (first) to
>> bottommost (last). */)
>> fatal ("Could not read %s.\n", SDATA (color_file));
>>
>> cl =3D [[NSColorList alloc] initWithName: @"Emacs"];
>> + if (![cl isEditable])
>> + {
>> + NSLog (@"Warning: NSColorList '%@' is not editable", [cl name]);
>> + return;
>> + }
>> for ( ; CONSP (color_map); color_map =3D XCDR (color_map))
>> {
>> color =3D XCAR (color_map);
>>
>>
>> Looks great, thank you.
>>
>> Would you like for me to submit an updated patch, or is this message
>> enough?
>>
>
> An updated patch would be appreciated. When Alan or Eli agree, one of
> them can install it.
>
Also add the bug number to the commit message first line (see
commit 9679bb1 for an example or just about any other commit). See the **
Commit messages section of CONTRIBUTE in the root of the source tree for
more stylistic conventions.
--0000000000002fadfa065d9aec45
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b=
ackground-color:transparent">On Sun, Oct 11, 2026 at 5:59=E2=80=AFPM St=C3=
=A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN">shipmints@HIDDEN=
om</a>> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_c=
ontainer"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr=
"><div dir=3D"ltr"><div style=3D"font-family:monospace"><span style=3D"font=
-family:Arial,Helvetica,sans-serif;background-color:transparent">On Sun, Oc=
t 11, 2026 at 5:55=E2=80=AFPM Stefano Pacifico <<a href=3D"mailto:github=
@pacifico.cc" target=3D"_blank">github@HIDDEN</a>> wrote:</span></d=
iv></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div><div><br><div><blockquote type=3D"cite"><div>On Oct 11, 202=
6, at 3:31=E2=80=AFPM, St=C3=A9phane Marks <<a href=3D"mailto:shipmints@=
gmail.com" target=3D"_blank">shipmints@HIDDEN</a>> wrote:</div><br><d=
iv><div style=3D"font-size:13px;font-style:normal;font-variant-caps:normal;=
font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text=
-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;fo=
nt-family:monospace">The proposed changes LGTM though I'd prefer not to=
fail silently.=C2=A0 Stefano, are you okay with below?</div><div style=3D"=
font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:400;l=
etter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;w=
hite-space:normal;word-spacing:0px;text-decoration:none;font-family:monospa=
ce"><br></div><div style=3D"font-size:13px;font-style:normal;font-variant-c=
aps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-inde=
nt:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decorat=
ion:none;font-family:monospace">diff --git a/src/nsfns.m b/src/nsfns.m<br>i=
ndex f10297ed8d7..8f4bbb8a4e0 100644<br>--- a/src/nsfns.m<br>+++ b/src/nsfn=
s.m<br>@@ -2254,6 +2254,11 @@ Frames are listed from topmost (first) to bot=
tommost (last). =C2=A0*/)<br>=C2=A0 fatal ("Could not read %s.\n"=
, SDATA (color_file));<br>=C2=A0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0cl =3D [[NSC=
olorList alloc] initWithName: @"Emacs"];<br>+ =C2=A0 =C2=A0 =C2=
=A0if (![cl isEditable])<br>+ {<br>+ =C2=A0NSLog (@"Warning: NSColorLi=
st '%@' is not editable", [cl name]);<br>+ =C2=A0return;<br>+ =
}<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0for ( ; CONSP (color_map); color_map =3D XC=
DR (color_map))<br>=C2=A0 {<br>=C2=A0 =C2=A0color =3D XCAR (color_map);</di=
v></div></blockquote></div><br></div></div><div>Looks great, thank you.<div=
><br></div><div>Would you like for me to submit an updated patch, or is thi=
s message enough?</div></div></blockquote><div><br></div><div style=3D"font=
-family:monospace">An updated patch would be appreciated.=C2=A0 When Alan o=
r Eli agree, one of them can install it.</div></div></div></blockquote><div=
><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">Als=
o add the bug number to the commit message first line (see commit=C2=A09679=
bb1 for an example or just about any other commit).=C2=A0 See the=C2=A0** C=
ommit messages section of CONTRIBUTE in the root of the source tree for mor=
e stylistic conventions.</div></div></div>
--0000000000002fadfa065d9aec45--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 11 Oct 2026 21:59:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 11 17:59:34 2026
Received: from localhost ([127.0.0.1]:50475 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xG1Zs-0005jy-Jf
for submit <at> debbugs.gnu.org; Sun, 11 Oct 2026 17:59:34 -0400
Received: from mail-vk1-xa2d.google.com ([2607:f8b0:4864:20::a2d]:46099)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
id 1xG1Zp-0005jL-LC
for 82032 <at> debbugs.gnu.org; Sun, 11 Oct 2026 17:59:30 -0400
Received: by mail-vk1-xa2d.google.com with SMTP id
71dfb90a1353d-5e94120191cso718577e0c.0
for <82032 <at> debbugs.gnu.org>; Sun, 11 Oct 2026 14:59:29 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1791755964; cv=none;
d=google.com; s=arc-20260327;
b=Ce7wCi8atJMojaBM2fgLXIKcQn+xKiRIrEGJC3pGYqQ2hvosJT7njvaN2YXEk3kd9C
o0zm4KxGUKGU8fllXQIqAWoE1fT/5xJ2YSV08nApnDEU3eFmWdoBoyXrtzjMzfjLg0fC
nL/lJEDdJie26t3l3KAzU4PgYbBZH5Klf5dA8JO2OJ6uqevRvgzHVhwmP1gLW3E9hsJq
7JK+O4wjqBG9Wij2Zq3EQ68AISpNK4M//IwAA3p3wz1gmyXXLEKm2CiE6kNhjb4OeE/g
FQaAt1euBnuQoCZZw2pX6HUYUQrL5j0vIpjY5ov942ZDQFniwSjNyg1fRebTYrWJAVNM
ttkQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=0oR9dayr9xTPEh+O1b32laAVVwwUvXZmL2njdgkI3S4=;
fh=1o+dt0JUMbQx3CxWyTKLKGiegFRUcG5rz/O4wzuo+1U=;
b=a7elSb2limihONDggbnZirBXooh00rQ3BNZrImWC9T6fEeNd35GIJbfVdFezgrRHU6
41kT5D91XEE6idMkOSSJlfQYvNTRjgeXDGLZ8GvmuWR09SLv2d+f1mCxk1cCCE0b3YRy
urlHoAbe/rzWH5fPgw4Y62pgt3EkLGp3KbVwCwD0BbtTRB+3ocLNoATl1vXtSN/Mghcm
CvtyNn8AEzHJCcJNeoHQOBdqrxErCDLNLrz9qOZKDyCC91uSkf8aep/5Lw3ajduoXQ/V
2t0yMuA3mFmxZ2K1hO4DZwOsLgETtSQ+nYL2VbhqTznXrnbksgYhnUxC0FHLHODohsjD
03dA==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791755964; x=1792360764; darn=debbugs.gnu.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type; bh=0oR9dayr9xTPEh+O1b32laAVVwwUvXZmL2njdgkI3S4=;
b=Vm+h6dxI3wzTVC2/rDkMcWAjSRtRH+9wJvEPjlFo6UXDumnpqtYyfhWMbTSineoApF
oFyZZOj4zUqp4HqRZR4JIbNCS64V+OGDcLSByvyn0qns23AtFX3YRvcUEZgD6v0wfkCS
vI5tFzxw7ljAOSb4R4e1nwMZO5yz35aDrLEbBVxVV0PJYjQTAdy7k93ofRn6pbu78QS2
EWolQbnAT0KT4WlnbfpyChM/AU6MW6KayjM/UpMr8+ZEhM4YlsMVpsyPn9Gj4U684EEW
fcv+P6n7SF5oc2gTQtjbJ7OL1yc3HCLJcy2ahQ+7tzOzdcmImyXGCUgkIZ59LEsbRKlP
6kyQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791755964; x=1792360764;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=0oR9dayr9xTPEh+O1b32laAVVwwUvXZmL2njdgkI3S4=;
b=ufctAJAFw37IZ78dDX3DEPJwU6NlFqVvFoICDabJvx0eQPxOUrJDzme5FpFROEfj+4
KID7xHRcvpw4BYyyeEHFQfwzWX+R9UdrlfT3Wa3v+TEOpHImRy2WTtcbatQsv6ROrk/Q
53tomXWBbIK58QL+9KOsqCH7S5RbgbhjMbMJPzsikRptSpk9Qx80D9Y5hbIlt899ew/1
ASL4ktLQO5vNFK7PXItv/rWInX5LMvxCcxqNDJazhwiuQDSfJQGFllFyoLeAAzmqersY
8Qi94NUhEdscTekN8xju8uOh0Z7tKrpAZSNTQF9+RO+sTmEkIRJkKoa7d8N3E5hdSqI7
e+6w==
X-Forwarded-Encrypted: i=1;
AKwUvBwbmO6pemUnw6wJYFi6TL4rMb2y5HUL3/gTgf0pzo+yRJ5I1VV4epb/WHXTxfXkhSUERoLbCg==@debbugs.gnu.org
X-Gm-Message-State: AFq9FYKsTUFfiLLrfvv8Iizb3wfSECNeZSkQy8FPt3rtbLDeopL9x22j
Uc88fSkxoskPPANLDlDktjUubk1oLBtfVg24kqUfY+tppAUOZO0PkBRKrwwFYPlMaJ/iXt14UUZ
bZDxtb2jACWW94qFIfQ9TWSMfxnOKbpRWFQ==
X-Gm-Gg: AYBFou3i+xAlc+GFJYy/DV7CDf8nlBY7ReaDGot8pp1iIYJEhEB2B6iBcuRM9CrPXIN
utb/2R/MA/mKT1oQNwNP+iKNwblX1CvxQlg5/OiS1IB8uGm6sUfpVZSp0z0iTgmCMGWUkR9KqcR
Z87eHUk7ZsNJLYqpiNpw+4Qmv1aQer28yxBg6Gp4YgpmGkeV+MccwHvcgzWpoy4XDphB24Pojp0
0rTMvxK3lgVp5mSQ6Zsk277yq9zMMbwGjsaELFtC4wxLk3faF1JNIz+5gzyn4dXPyBD8933Lh3p
/DQo1gHmXqUBzfAX/r8f0Hk/wfOUVKi5chNKRr3Am2cbAWwma4UC4UWCChI8O7fCi5vjKfTHqcn
t+9oCdNETg8LYboVjsxetO6DZDZ9hGVm5MahYrNzuoklMQCdde2qW5fOb5bv8Oq9JoepLE8kwOr
r/xessmTALpwxWe9VP+9Gg2V4+TQrvEjiqbGr3/9qotLl6C6NTj0Rjjl3QpZje/JRUsXPwgeWVm
RKtJA==
X-Received: by 2002:a05:6102:149d:b0:7a1:f7d2:e82a with SMTP id
ada2fe7eead31-7cb3a1721e0mr2584470137.35.1791755963787; Sun, 11 Oct 2026
14:59:23 -0700 (PDT)
MIME-Version: 1.0
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
<CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
<16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
In-Reply-To: <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Sun, 11 Oct 2026 17:59:11 -0400
X-Gm-Features: AclHuK_M-heIeGP7sQJqS-kJF7Bp6J0nqNADeCKU9ip-anqBm-p1YQBcE_8AUlw
Message-ID: <CAN+1Hbo_wpgZD9oX=HX_8ggH571NGb3ooLmj7BYsZJO+PFSetA@HIDDEN>
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
To: Stefano Pacifico <github@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000beee98065d97b14d"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82032
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
82032 <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: 0.0 (/)
--000000000000beee98065d97b14d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, Oct 11, 2026 at 5:55=E2=80=AFPM Stefano Pacifico <github@HIDDEN=
c> wrote:
>
> On Oct 11, 2026, at 3:31=E2=80=AFPM, St=C3=A9phane Marks <shipmints@gmail=
.com> wrote:
>
> The proposed changes LGTM though I'd prefer not to fail silently.
> Stefano, are you okay with below?
>
> diff --git a/src/nsfns.m b/src/nsfns.m
> index f10297ed8d7..8f4bbb8a4e0 100644
> --- a/src/nsfns.m
> +++ b/src/nsfns.m
> @@ -2254,6 +2254,11 @@ Frames are listed from topmost (first) to
> bottommost (last). */)
> fatal ("Could not read %s.\n", SDATA (color_file));
>
> cl =3D [[NSColorList alloc] initWithName: @"Emacs"];
> + if (![cl isEditable])
> + {
> + NSLog (@"Warning: NSColorList '%@' is not editable", [cl name]);
> + return;
> + }
> for ( ; CONSP (color_map); color_map =3D XCDR (color_map))
> {
> color =3D XCAR (color_map);
>
>
> Looks great, thank you.
>
> Would you like for me to submit an updated patch, or is this message
> enough?
>
An updated patch would be appreciated. When Alan or Eli agree, one of them
can install it.
--000000000000beee98065d97b14d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b=
ackground-color:transparent">On Sun, Oct 11, 2026 at 5:55=E2=80=AFPM Stefan=
o Pacifico <<a href=3D"mailto:github@HIDDEN">github@HIDDEN</a>=
> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_contain=
er"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br><div><b=
lockquote type=3D"cite"><div>On Oct 11, 2026, at 3:31=E2=80=AFPM, St=C3=A9p=
hane Marks <<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shi=
pmints@HIDDEN</a>> wrote:</div><br><div><div style=3D"font-size:13px;=
font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:n=
ormal;text-align:start;text-indent:0px;text-transform:none;white-space:norm=
al;word-spacing:0px;text-decoration:none;font-family:monospace">The propose=
d changes LGTM though I'd prefer not to fail silently.=C2=A0 Stefano, a=
re you okay with below?</div><div style=3D"font-size:13px;font-style:normal=
;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:=
start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0=
px;text-decoration:none;font-family:monospace"><br></div><div style=3D"font=
-size:13px;font-style:normal;font-variant-caps:normal;font-weight:400;lette=
r-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white=
-space:normal;word-spacing:0px;text-decoration:none;font-family:monospace">=
diff --git a/src/nsfns.m b/src/nsfns.m<br>index f10297ed8d7..8f4bbb8a4e0 10=
0644<br>--- a/src/nsfns.m<br>+++ b/src/nsfns.m<br>@@ -2254,6 +2254,11 @@ Fr=
ames are listed from topmost (first) to bottommost (last). =C2=A0*/)<br>=C2=
=A0 fatal ("Could not read %s.\n", SDATA (color_file));<br>=C2=A0=
<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0cl =3D [[NSColorList alloc] initWithName: @&=
quot;Emacs"];<br>+ =C2=A0 =C2=A0 =C2=A0if (![cl isEditable])<br>+ {<br=
>+ =C2=A0NSLog (@"Warning: NSColorList '%@' is not editable&qu=
ot;, [cl name]);<br>+ =C2=A0return;<br>+ }<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0fo=
r ( ; CONSP (color_map); color_map =3D XCDR (color_map))<br>=C2=A0 {<br>=C2=
=A0 =C2=A0color =3D XCAR (color_map);</div></div></blockquote></div><br></d=
iv></div><div>Looks great, thank you.<div><br></div><div>Would you like for=
me to submit an updated patch, or is this message enough?</div></div></blo=
ckquote><div><br></div><div class=3D"gmail_default" style=3D"font-family:mo=
nospace">An updated patch would be appreciated.=C2=A0 When Alan or Eli agre=
e, one of them can install it.</div></div></div>
--000000000000beee98065d97b14d--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 11 Oct 2026 21:55:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 11 17:55:29 2026
Received: from localhost ([127.0.0.1]:49961 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xG1Vw-0005SC-Ob
for submit <at> debbugs.gnu.org; Sun, 11 Oct 2026 17:55:29 -0400
Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]:59357)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <github@HIDDEN>)
id 1xG1Vt-0005Qr-1q
for 82032 <at> debbugs.gnu.org; Sun, 11 Oct 2026 17:55:26 -0400
Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
by mailfout.stl.internal (Postfix) with ESMTP id 815BE1D00059
for <82032 <at> debbugs.gnu.org>; Sun, 11 Oct 2026 17:55:19 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
by phl-compute-01.internal (MEProxy); Sun, 11 Oct 2026 17:55:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h=
cc:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm1; t=1791755718; x=1791842118; bh=LGOGULRdl/
QsAYXjq3pCnaYsn22N+Iz2GVib68vr2Qw=; b=ViSYJ8hC/HCS2PqmWCDjGGyuPB
ID7R7FI84x8M6/8HRKdFnx7QGJj84zd0XYRr3k7ZpGguwRfgVu1QhiriPHWQMIAD
RBXVUo67SncAZvBNzrbYcR3pPUm2uJ22q3B6uFj5q7PnAC0C4yTKJSkS9bsyNumX
ygkiyEJxZZymDzBBUw0jiiOAFo64rmvZK3n97Lg4Tx3OLD+6JrVQuznAFayjh0az
ZN1w+mineiKBm8GIFB/LXNA83IVHF8lG233hPITCUITKLjqPykshN61z3NeoGyeL
ymDBPVZhLYObckxebrA+NYgqNQVGQ7eBszIeJxpEKXXYcVzOyXMet7YKCdVQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1791755718; x=1791842118; bh=LGOGULRdl/QsAYXjq3pCnaYsn22N+Iz2GVi
b68vr2Qw=; b=kPDwbpisDQwVIEBuZf2j481ccU/RDIvvq+/CNIghAps7W8cp/CA
d24htehqV5f4+LT/I8GC6I93vpBcm795XdOnTK1g224SuG304z2ysO3mRjv2JO5C
6cDjyynYez2U1s7wm226Cc/ZAIiQMdLMQjCHPf82nLLdMpDhsT8j//Nqlx8ERoS5
mTfAKOEo9FqXGs6S5dEXT36mZUxdWspvdSuXMvi2T4e7FuYSoN/EbUZXhu/KkY1f
YPIX0t9gzmK5JGPkU5hIvOmpHSPTwBbG2scMaXT2jXWpeO8xu8sTLaGVnWJp+5Gh
4Tm1NhoYJP1naW2kus9+0nN7szYqYKBx2uw==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=sign d=pacifico.cc a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791755718; d=pacifico.cc;
mf=PGdpdGh1YkBwYWNpZmljby5jYz4=;
rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=;
s=fm1:rsa-sha256:Ejm3Fyt+Db+zgvzkNEg69Su+cB/Uf7Qx2k01W8hQS+vebaX
IR6l0vuvYx2O+YTLNO2RV49wMno0IMVrm4AfLA6ABb52UgYfj5WpujqxBYmPdbl+
yh1LMMIa0TqFchoIoWCDokx+gpLpai8UNPvcYno6VafFpFsYXuwAGp6a9TBhuemo
FjnL5TscgjvVWf5xxYgKiIrb09N7XdFUmDJUPo3MFd6Ux4WVjxcd3YTg6aS+ZLer
hsl37OgT7tAlvp64WE06csnUDBC+dn/nYKbQJQjWeJl0R0dBrHaQg80Aki5V5QLn
snXMfQWO69FWwr5GHw05FUkYVw2/1ZJYG3wKGCA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=mi-m=1; hc=11;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to;
Message-Instance: m=1;
h=sha256:+JR7WCN+nzp9ylb0WapHWr828cJHCIPNONL5Epv+qC4=:1mGolnBTVLhmSn9OCqocPUtpfXyZLlQJBi2R8Af4sX0=;
X-ME-Sender: <xms:xgXMakYV7T_v2DotWF30pf9xWd1QFUZlf3dXFH2a2gW10bVuNIcMpA>
<xme:xgXMamazxewg7Xtan3RJr9K84JzOhXJdNwZIJ7Vya8wR4zpjHnl6RBu2a90SiBKKp
3LGjrH_XCKfQKLPyBvU3TcL6ar6OtypgS18I7X7s6EVYDXSZeNjalM>
X-ME-Received: <xmr:xgXMaj8UTbNBl52wr7qNJi3Oq5bzS9dtWzj970WvSC6p6EoPL-AhzGeo469giPDVCW_QsqyX08xh5-wdokb-qa-b3S-YwG98nK4JmoiTM6YofFwj8mfvZN_zPQ>
X-ME-Proxy-Cause: dmFkZTGAsOWwkrkWQW91hJS4No4rHZ1+LEbuOwsQiVi8/eafGGGGBtaZ6h1ksFepdkbEAb
7bvgS2Ebey5mSb5lfNJLIviCvxXoMylWbQve4TDPCPR8nRgpNdbhk5PBLqdUqCpoIWmO0J
d1e2mepDhWuxqaDf55OL/YrA1U2pCkIUgB/qbQ5oVG5idJSB6qTtd7+e3h2eX1B1X6UuEx
67YT7E4a7SFV7Qt0kvnYQ4jTelxAYVFHHca7AcFWoPAmzsJGtRySpqiPO5lE+BB/cy/1G/
kt/TQiW4Fprf7VpmmWsqb1NyKO5QffTNj68GYxU+FkupxuI4Nz9r0j201Cbl6YU8SPj4aA
P8Y8BIrsXShs3pnL9JIGEQEn5dbgXIWNDKPFfIGZ/b56xqe7pqJk8yhfI0OMWjHeP1ASSd
J65KJT9lrxlcW0fiuE6Sd1nbzwrsyayfkBzNB0wJbQ0nQH5vn/1QAlMWdJm3cGGl8mSxG8
P0nfVUveD5CKW0ymbi1g2VpUhb7brok4VzqEEUsslUObQ0/L83Cfl9OmGgGke2VcNSlXuM
qCBxWO1yszKJExAZolGH7EMqc7phtSUoJMjGDSGr/Cma38qas+YD0NylBWA5RxORdF2dV6
jZDQslUfas92vJVLnMCmIuVJu5rQpZonUmfiaef/6XRDswoRmGr2ltpJXQng
X-ME-Proxy: <xmx:xgXMathGNr2yBLQRCjSb3zORJ5xYkr5yP5esWn2PaGWe_ZyqgG5krw>
<xmx:xgXMardvI6DWPkg7UGzjcLeqnMirx-gnX9pFE_6lBpv7sBefdGqh7Q>
<xmx:xgXMaspIvwI6sKyZ9KZR1EwauVdaqtpybmyamHiAJMoRv8Qq5PGG9w>
<xmx:xgXMaoCN-tRhmI92gAywK_sUH1nONn8ckmRwdAmKY9_VlUdUiF3jLw>
<xmx:xgXManKk6VJ7Y39kz0XllSq-toMvFPPfOzO1X2nDvubzFoInuFlEE95d>
Feedback-ID: ie93843ea:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
11 Oct 2026 17:55:18 -0400 (EDT)
From: Stefano Pacifico <github@HIDDEN>
Message-Id: <16A3404F-8A52-4E9E-9ACD-74733E73B710@HIDDEN>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_7A512A8C-E7E1-4687-BA8F-FD5935276E97"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
Date: Sun, 11 Oct 2026 17:55:07 -0400
In-Reply-To: <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
To: =?utf-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
<CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
X-Mailer: Apple Mail (2.3901.100.1.1.12)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 82032
Cc: Eli Zaretskii <eliz@HIDDEN>, Alan Third <alan@HIDDEN>,
82032 <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.7 (-)
--Apple-Mail=_7A512A8C-E7E1-4687-BA8F-FD5935276E97
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
> On Oct 11, 2026, at 3:31=E2=80=AFPM, St=C3=A9phane Marks =
<shipmints@HIDDEN> wrote:
>=20
> The proposed changes LGTM though I'd prefer not to fail silently. =
Stefano, are you okay with below?
>=20
> diff --git a/src/nsfns.m b/src/nsfns.m
> index f10297ed8d7..8f4bbb8a4e0 100644
> --- a/src/nsfns.m
> +++ b/src/nsfns.m
> @@ -2254,6 +2254,11 @@ Frames are listed from topmost (first) to =
bottommost (last). */)
> fatal ("Could not read %s.\n", SDATA (color_file));
> =20
> cl =3D [[NSColorList alloc] initWithName: @"Emacs"];
> + if (![cl isEditable])
> + {
> + NSLog (@"Warning: NSColorList '%@' is not editable", [cl name]);
> + return;
> + }
> for ( ; CONSP (color_map); color_map =3D XCDR (color_map))
> {
> color =3D XCAR (color_map);
Looks great, thank you.
Would you like for me to submit an updated patch, or is this message =
enough?
Best,
Stefano=
--Apple-Mail=_7A512A8C-E7E1-4687-BA8F-FD5935276E97
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><div><div><br><div><blockquote =
type=3D"cite"><div>On Oct 11, 2026, at 3:31=E2=80=AFPM, St=C3=A9phane =
Marks <shipmints@HIDDEN> wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><div =
class=3D"gmail_default" style=3D"caret-color: rgb(0, 0, 0); font-size: =
13px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; font-family: =
monospace;">The proposed changes LGTM though I'd prefer not to fail =
silently. Stefano, are you okay with below?</div><div =
class=3D"gmail_default" style=3D"caret-color: rgb(0, 0, 0); font-size: =
13px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; font-family: =
monospace;"><br></div><div class=3D"gmail_default" style=3D"caret-color: =
rgb(0, 0, 0); font-size: 13px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: 2; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; font-family: monospace;">diff --git a/src/nsfns.m =
b/src/nsfns.m<br>index f10297ed8d7..8f4bbb8a4e0 100644<br>--- =
a/src/nsfns.m<br>+++ b/src/nsfns.m<br>@@ -2254,6 +2254,11 @@ Frames are =
listed from topmost (first) to bottommost (last). */)<br> =
fatal ("Could not read %s.\n", SDATA (color_file));<br> <br> =
cl =3D [[NSColorList alloc] initWithName: =
@"Emacs"];<br>+ if (![cl isEditable])<br>+ {<br>+ =
NSLog (@"Warning: NSColorList '%@' is not editable", [cl =
name]);<br>+ return;<br>+ }<br> for ( ; =
CONSP (color_map); color_map =3D XCDR (color_map))<br> {<br> =
color =3D XCAR =
(color_map);</div></div></blockquote></div><br></div></div><div>Looks =
great, thank you.<div><br></div><div>Would you like for me to submit an =
updated patch, or is this message =
enough?</div><div><br></div><div>Best,</div><div><div><br></div><div>Stefa=
no</div></div></div></body></html>=
--Apple-Mail=_7A512A8C-E7E1-4687-BA8F-FD5935276E97--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 11 Oct 2026 19:31:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 11 15:31:40 2026
Received: from localhost ([127.0.0.1]:57212 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xFzGl-0000Bd-QD
for submit <at> debbugs.gnu.org; Sun, 11 Oct 2026 15:31:40 -0400
Received: from mail-vs1-xe34.google.com ([2607:f8b0:4864:20::e34]:47227)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
id 1xFzGi-0000Ar-LW
for 82032 <at> debbugs.gnu.org; Sun, 11 Oct 2026 15:31:37 -0400
Received: by mail-vs1-xe34.google.com with SMTP id
ada2fe7eead31-7c19c6721a3so865809137.2
for <82032 <at> debbugs.gnu.org>; Sun, 11 Oct 2026 12:31:36 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1791747091; cv=none;
d=google.com; s=arc-20260327;
b=Q2BMXw/pmqd7ChWnqbEcxI7Gkr0m8po44H6VqEee7Rao/f+momK+YamPt+t5XSuJfP
ls+NsFTNWHDsikr4vp9sBYNHrsviYyW6zerjgKtuNIDXsDpfmK+jXExeuxOfqOesI6k7
ZMJFa91g9YR6M1MMsGCWGYUYKfDKhv99DMz7qzxY8YBDTKIP7y922Cgai6+NHzJZfNFs
3VBu0ZdjUEhi5iq5lAAmdIPh2Wz5CdErSoA72Z5MBzRKJUgTepzkxb+QOL41MvkCehcq
97cK25kDh/g7zreG90GQYRXJV32K/9XB1kC1lOziAf31QIaEPRamw/9iKMc0bTeZ6RpG
RCqw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=XnM0+EPZ4NqyTL16MVKPPDeiqR+UUfmXWAn4kwr3fLo=;
fh=f1pLA8UmCiDI29cecjX77J49/WK4FKw3nOHtHzTt3h8=;
b=mJXihii42SeVDghW1zJpZhnDq0Nz6gKOO3PFJpxnfMDf2q7tZN5jEuEU3bQ/MAcBXv
XVDoFRrP+cMpdczPlkfvL9b6wYRHpWd5gTiddZC3dKkc5eZRIv1PAarqdAVjX4iwePhm
s4H8vR+tojygpgZf4pL0C8OdjMAnawYX3cJy43raKNzbJ/GUlhDzL+Saek3eoctIX5TK
o0k56kKe2Z+pD1P2Q6RQ+oM+1I61KkTWw+CF2U/P1GKQdTNdd7vaSLxHWc19dL/xC5As
sMCsQN8pYNk3zA6W7hzy9mDM+3rJRUUqAp3fwjnCPime6florM6eTtOI2Kgn3m4cRuk7
Bcaw==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791747091; x=1792351891; darn=debbugs.gnu.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type; bh=XnM0+EPZ4NqyTL16MVKPPDeiqR+UUfmXWAn4kwr3fLo=;
b=DRxIXHfODXg8sCcp1mXa2dHuBNk+RMmAqGrkDb/2pnrbgfa+h5UZ7QUjqAKuyzdcl3
K0eeTFMY8yajR5Tn294HP9qv0h0tzsAxDP6ia9Tk1cP4kt0Isr2feBM9wf3aU4o2/J7n
9Nsig6QGpsdy6cd2V6CR489acQFThKB36SCEfN/cEYDCQ2YGhzXzj2zmi5/ks5nSTlqN
uyfNWr+KX97+5rhWpygPuRAY91p1mSMB0TWPWD+ZFzgvgGkbzj/5I2wcwBCYKDzX1OQg
c1kIewk/kxGJzN/jsFuv7F0QHPqxvN5eKdPkB202d05v31+o0UC2beswobX/v4yqbLYB
3b/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791747091; x=1792351891;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=XnM0+EPZ4NqyTL16MVKPPDeiqR+UUfmXWAn4kwr3fLo=;
b=gJ2/iSCGKh91FtkBqzJwCbeFBa25JSlbXwfCwqvu7hesJyLkeVcH/gd9tpEke+MqK5
YHf1F/HPQH6/iJXafoPfRQpVqqoCLCLIqEaB+QNEtBrFOodTFidFjUo2Hxz+cCKWfCNR
pheVVvM1ydsuXogdXQejV9B1q4lVoEjXC+I0LtCF9KJu46egdzw+pd0RO+QLEGMf6luq
hxVrJPF6XOnmEKq3PeR6HcFbo9Zt2u55aaCmOYCJ4xToDUnVhTEsncSkcb2w3YnnLvRM
SkqpX/L15t7wmrEiH9Mng5ZSxfjnzw8pLUApTvcr4e7jCy751cqAbswU6v6QGaHo0HgR
Nn+w==
X-Forwarded-Encrypted: i=1;
AKwUvBx0ARu9NvPPpy3KJyPpZSI2ff6c9/HnAIXICN6Td3qg9rtoKtx6xxbdPUwuAhwXF0nYW0VrLg==@debbugs.gnu.org
X-Gm-Message-State: AFq9FYI9M+vPEzakgMxzo9xw+hxBZ/WbML1i2/hFUr7BSlpUmID2gxiY
edEd5cD0TbyrGGER6hj5vcJR0Ylo+ddT29aMZ6jIEzaaSg2GIMXQzyWNMs6Qn9HoGNjstGmAl5z
nOYXbHIfDxN07ZuMVQIkPQK74DSLdBQI=
X-Gm-Gg: AYBFou3KcI6tmpcCHUF2DA9hwzSPj5mJxztr4ZJ4Sr9vE4ty9/IV9NQFQE6b0F9zIq5
Rhd7xRGRAGaFTziWQKDp3CqHZBD6MzJU4ORHC1g5nFMVKA2v6MeKXMPVxPpL7I+lqvph/p2jmaV
BDtWE2S1VXXF0K17bD7B9vJx1uLdbTuEGeOYStV2ieOkY2AdGF9SbcFA9zpZq4MOXNLjj9djUPH
JXcl+9SsMizGRynhRlFq8cVsxe+BA1vOZQnKFOUoXc21NwpIpCBa1XtoniX+WnqRLzhiBeUvXhf
8dvzdXbaGGCfPJI+EDLnsz9C50jgZcio/qXbqw3HFbizrbOvRg8+eybDCuQfa5lG9qch3PMHBoI
GHiSpeMg4T1bHABkyVBBoNwBkOb1pDAp1N1zw5p9uvWpOUlz/E+qcE927FJ5lwzqKYacHy82wYH
2zgofgK6xsEaYV2vdySQsniR9whmMWbBe0D4UTyBBuzE1PncgmGM4I/W8+QyqHRFaRxon/IZJL0
btqcQ==
X-Received: by 2002:a05:6102:c48:b0:7c3:7286:c28a with SMTP id
ada2fe7eead31-7cb3a06db3fmr2099242137.19.1791747090913; Sun, 11 Oct 2026
12:31:30 -0700 (PDT)
MIME-Version: 1.0
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<86tsmsiys2.fsf@HIDDEN>
<CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
In-Reply-To: <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Sun, 11 Oct 2026 15:31:19 -0400
X-Gm-Features: AclHuK8kJamC7fAZ1BXek4dtBTSCTuvY2RFkymsIhT2YXxdmsRPvexwX5YHkjww
Message-ID: <CAN+1HbqiZOTxvYXG4Bs+q8uvLWFAouTc0x3Nqx0+7Fw0xC6u8Q@HIDDEN>
Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when
NSColorList is not editable (batch mode / sandboxed)
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000e19dc5065d95a092"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82032
Cc: Alan Third <alan@HIDDEN>, 82032 <at> debbugs.gnu.org,
Stefano Pacifico <github@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.0 (/)
--000000000000e19dc5065d95a092
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, Oct 11, 2026 at 6:51=E2=80=AFAM St=C3=A9phane Marks <shipmints@gmai=
l.com> wrote:
> On Sun, Oct 11, 2026 at 1:37=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrot=
e:
>
>> > From: Stefano Pacifico <github@HIDDEN>
>> > Date: Sat, 10 Oct 2026 16:03:29 -0400
>> >
>> > Severity: normal
>> > Tags: patch
>> >
>> > When Emacs is built with NS support (--with-ns), starting Emacs in bat=
ch
>> > mode or within an environment where ~/Library/Colors/Emacs.clr is not
>> > writable (such as under a macOS sandbox profile or read-only filesyste=
m)
>> > causes an immediate crash on startup with:
>> >
>> > Fatal error 6: Abort trap: 6
>> >
>> > Under LLDB/debugger, the uncaught Objective-C exception is:
>> >
>> > *** Terminating app due to uncaught exception
>> 'NSColorListNotEditableException',
>> > reason: '-[NSColorList setColor:forKey:]: color list is not
>> editable'
>> > terminating with uncaught exception of type NSException
>> > abort() called
>> >
>> > ### Root Cause
>> >
>> > In commit 0183181ea8b (Bug#80377), `ns_init_colors()` was moved into
>> > `main()` in `src/emacs.c` unconditionally under `#ifdef HAVE_NS`
>> whenever
>> > `!dump_mode`:
>> >
>> > #ifdef HAVE_NS
>> > if (!dump_mode)
>> > ns_init_colors ();
>> > #endif
>> >
>> > This causes two issues:
>> > 1. `ns_init_colors` is invoked during batch execution (`emacs --batch`=
),
>> > attempting to create and populate GUI color palettes in headless
>> runs.
>> > 2. In `src/nsfns.m`, `ns_init_colors` creates or opens the "Emacs"
>> > NSColorList and iterates over the color map calling
>> > `[cl setColor:... forKey:...]` without verifying whether
>> `-[NSColorList isEditable]`
>> > is true. If the file cannot be written to, Cocoa raises an uncaught
>> > `NSColorListNotEditableException`, crashing Emacs.
>> >
>> > ### Steps to Reproduce
>> >
>> > 1. Make ~/Library/Colors/Emacs.clr read-only (or run inside a macOS
>> sandbox):
>> > touch ~/Library/Colors/Emacs.clr
>> > chmod 444 ~/Library/Colors/Emacs.clr
>> >
>> > 2. Invoke Emacs in batch mode:
>> > ./src/emacs -Q --batch --eval '(message "hello")'
>> >
>> > Observed:
>> > Fatal error 6: Abort trap: 6
>> > (Exit code 134)
>> >
>> > Expected:
>> > "hello" printed and clean exit (code 0).
>> >
>> > ### Proposed Fix
>> >
>> > 1. In `src/emacs.c`, guard `ns_init_colors()` with `!noninteractive` s=
o
>> > batch runs do not touch NS GUI color lists.
>> > 2. In `src/nsfns.m`, check `if (![cl isEditable]) return;` before the
>> > mutation loop so sandboxed or read-only runs return cleanly without
>> > crashing.
>> >
>> > The change is only 4 lines (paperwork-exempt). The git format-patch is
>> > attached below.
>>
>> Alan, any comments?
>>
>
> I think I worked on that, though Alan kindly committed. I will try to
> take a look today.
>
The proposed changes LGTM though I'd prefer not to fail silently. Stefano,
are you okay with below?
diff --git a/src/nsfns.m b/src/nsfns.m
index f10297ed8d7..8f4bbb8a4e0 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -2254,6 +2254,11 @@ Frames are listed from topmost (first) to bottommost
(last). */)
fatal ("Could not read %s.\n", SDATA (color_file));
cl =3D [[NSColorList alloc] initWithName: @"Emacs"];
+ if (![cl isEditable])
+ {
+ NSLog (@"Warning: NSColorList '%@' is not editable", [cl name]);
+ return;
+ }
for ( ; CONSP (color_map); color_map =3D XCDR (color_map))
{
color =3D XCAR (color_map);
--000000000000e19dc5065d95a092
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b=
ackground-color:transparent">On Sun, Oct 11, 2026 at 6:51=E2=80=AFAM St=C3=
=A9phane Marks <<a href=3D"mailto:shipmints@HIDDEN">shipmints@HIDDEN=
om</a>> wrote:</span></div></div><div class=3D"gmail_quote gmail_quote_c=
ontainer"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr=
"><div dir=3D"ltr"><div style=3D"font-family:monospace"><span style=3D"font=
-family:Arial,Helvetica,sans-serif;background-color:transparent">On Sun, Oc=
t 11, 2026 at 1:37=E2=80=AFAM Eli Zaretskii <<a href=3D"mailto:eliz@gnu.=
org" target=3D"_blank">eliz@HIDDEN</a>> wrote:</span></div></div><div c=
lass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>=
From: Stefano Pacifico <<a href=3D"mailto:github@HIDDEN" target=3D=
"_blank">github@HIDDEN</a>><br>
> Date: Sat, 10 Oct 2026 16:03:29 -0400<br>
> <br>
> Severity: normal<br>
> Tags: patch<br>
> <br>
> When Emacs is built with NS support (--with-ns), starting Emacs in bat=
ch<br>
> mode or within an environment where ~/Library/Colors/Emacs.clr is not<=
br>
> writable (such as under a macOS sandbox profile or read-only filesyste=
m)<br>
> causes an immediate crash on startup with:<br>
> <br>
>=C2=A0 =C2=A0 =C2=A0Fatal error 6: Abort trap: 6<br>
> <br>
> Under LLDB/debugger, the uncaught Objective-C exception is:<br>
> <br>
>=C2=A0 =C2=A0 =C2=A0*** Terminating app due to uncaught exception '=
NSColorListNotEditableException',<br>
>=C2=A0 =C2=A0 =C2=A0reason: '-[NSColorList setColor:forKey:]: color=
list is not editable'<br>
>=C2=A0 =C2=A0 =C2=A0terminating with uncaught exception of type NSExcep=
tion<br>
>=C2=A0 =C2=A0 =C2=A0abort() called<br>
> <br>
> ### Root Cause<br>
> <br>
> In commit 0183181ea8b (Bug#80377), `ns_init_colors()` was moved into<b=
r>
> `main()` in `src/emacs.c` unconditionally under `#ifdef HAVE_NS` whene=
ver<br>
> `!dump_mode`:<br>
> <br>
>=C2=A0 =C2=A0 =C2=A0#ifdef HAVE_NS<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!dump_mode)<br>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ns_init_colors ();<br>
>=C2=A0 =C2=A0 =C2=A0#endif<br>
> <br>
> This causes two issues:<br>
> 1. `ns_init_colors` is invoked during batch execution (`emacs --batch`=
),<br>
>=C2=A0 =C2=A0 attempting to create and populate GUI color palettes in h=
eadless runs.<br>
> 2. In `src/nsfns.m`, `ns_init_colors` creates or opens the "Emacs=
"<br>
>=C2=A0 =C2=A0 NSColorList and iterates over the color map calling<br>
>=C2=A0 =C2=A0 `[cl setColor:... forKey:...]` without verifying whether =
`-[NSColorList isEditable]`<br>
>=C2=A0 =C2=A0 is true. If the file cannot be written to, Cocoa raises a=
n uncaught<br>
>=C2=A0 =C2=A0 `NSColorListNotEditableException`, crashing Emacs.<br>
> <br>
> ### Steps to Reproduce<br>
> <br>
> 1. Make ~/Library/Colors/Emacs.clr read-only (or run inside a macOS sa=
ndbox):<br>
>=C2=A0 =C2=A0 =C2=A0 touch ~/Library/Colors/Emacs.clr<br>
>=C2=A0 =C2=A0 =C2=A0 chmod 444 ~/Library/Colors/Emacs.clr<br>
> <br>
> 2. Invoke Emacs in batch mode:<br>
>=C2=A0 =C2=A0 =C2=A0 ./src/emacs -Q --batch --eval '(message "=
hello")'<br>
> <br>
> Observed:<br>
>=C2=A0 =C2=A0 =C2=A0 Fatal error 6: Abort trap: 6<br>
>=C2=A0 =C2=A0 =C2=A0 (Exit code 134)<br>
> <br>
> Expected:<br>
>=C2=A0 =C2=A0 =C2=A0 "hello" printed and clean exit (code 0).=
<br>
> <br>
> ### Proposed Fix<br>
> <br>
> 1. In `src/emacs.c`, guard `ns_init_colors()` with `!noninteractive` s=
o<br>
>=C2=A0 =C2=A0 batch runs do not touch NS GUI color lists.<br>
> 2. In `src/nsfns.m`, check `if (![cl isEditable]) return;` before the<=
br>
>=C2=A0 =C2=A0 mutation loop so sandboxed or read-only runs return clean=
ly without<br>
>=C2=A0 =C2=A0 crashing.<br>
> <br>
> The change is only 4 lines (paperwork-exempt). The git format-patch is=
<br>
> attached below.<br>
<br>
Alan, any comments?<br></blockquote><div><br></div><div style=3D"font-famil=
y:monospace">I think I worked on that,=C2=A0though Alan kindly committed.=
=C2=A0 I will try to take a look today.</div></div></div></blockquote><div>=
<br></div><div class=3D"gmail_default" style=3D"font-family:monospace">The =
proposed changes LGTM though I'd prefer not to fail silently.=C2=A0 Ste=
fano, are you okay with below?</div><div class=3D"gmail_default" style=3D"f=
ont-family:monospace"><br></div><div class=3D"gmail_default" style=3D"font-=
family:monospace">diff --git a/src/nsfns.m b/src/nsfns.m<br>index f10297ed8=
d7..8f4bbb8a4e0 100644<br>--- a/src/nsfns.m<br>+++ b/src/nsfns.m<br>@@ -225=
4,6 +2254,11 @@ Frames are listed from topmost (first) to bottommost (last)=
. =C2=A0*/)<br>=C2=A0 fatal ("Could not read %s.\n", SDATA (color=
_file));<br>=C2=A0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0cl =3D [[NSColorList alloc=
] initWithName: @"Emacs"];<br>+ =C2=A0 =C2=A0 =C2=A0if (![cl isEd=
itable])<br>+ {<br>+ =C2=A0NSLog (@"Warning: NSColorList '%@'=
is not editable", [cl name]);<br>+ =C2=A0return;<br>+ }<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0for ( ; CONSP (color_map); color_map =3D XCDR (color_ma=
p))<br>=C2=A0 {<br>=C2=A0 =C2=A0color =3D XCAR (color_map);<br></div></div=
></div>
--000000000000e19dc5065d95a092--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 11 Oct 2026 10:51:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 11 06:51:53 2026 Received: from localhost ([127.0.0.1]:39095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xFr9k-0001eP-8b for submit <at> debbugs.gnu.org; Sun, 11 Oct 2026 06:51:53 -0400 Received: from mail-vk1-xa35.google.com ([2607:f8b0:4864:20::a35]:58522) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1xFr9h-0001dy-RJ for 82032 <at> debbugs.gnu.org; Sun, 11 Oct 2026 06:51:51 -0400 Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-5d8e5624261so407082e0c.0 for <82032 <at> debbugs.gnu.org>; Sun, 11 Oct 2026 03:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791715904; cv=none; d=google.com; s=arc-20260327; b=kT38riLlxkNVx3sKuR6lW/sYSk2egEgHbkSdJcmKbsGMaEPKu9hkpcM5CR9gSFNy5+ 5362maGayJKtmzvOH7Ju0H9VMdJxGh4WptL2vJvsYUrUKJbIGNaJ5QMHDTtNfHfm60p7 cdvTdaVrJzhVV+s91+gMoJD/dZHwh9WsnGbD8q4ueKqC13farPJCqB4KdHk0CF8Vzjwy uKUWY0WVWgVMUCLQ3mk61kcjZWXgTy0e8Ckb9QHHnvgCSTJyRaoRpuuWPOu5bopnDdKD xs/IM8ysToFVI6XD9c6V4EgKz1y56N6quikNp0E2G7EytmupoX60qjuIxIL2MBIqfqC8 PTqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=s9IOQt0mTtjcialCq+w4QcYBG4S9WcWGt22CC4ZoF8M=; fh=e8K3FAmFqJl3R1KaJC7w+BFWYBLjEhNw0YQhqUZ9kNs=; b=Ti0U183uU16m/QVpyIEIOFrZKrSoUe7G4QDOxjbX7gSbfG3qinb8ggvtAsa+fWiORa NSPWSiY1Vmzr8jKzYlATsE3pBYgzd1Y4bAN+qwK96lK50WiXSJnt4eD8RF3j7V0curNc 9YsNg2bj8gKBE9VAL1QFaSRZGZLm/6/1m45GxZ+dQIifGJz/2rR9UtryeQ78iQ1bTtXe Oltw1buvzlibaSxGNMuio3rOvDNHExIOXAv2qSpxmLFogtpNtjuou2CVwkJ6NX9Ga56p F5dG3ZQR/Z5HfRII4s4f3cNnFwbT2SlYcSchjgedGHrU1XJPB8zdRO/DRs2b2NoJiDmR BHJA==; darn=debbugs.gnu.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791715904; x=1792320704; darn=debbugs.gnu.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=s9IOQt0mTtjcialCq+w4QcYBG4S9WcWGt22CC4ZoF8M=; b=q3i/dhkzOy3LCEZEdxx9mWPLO2sXjqCA9842RmZB9xrZ5NZA1WtBPE9NmIVK9N3aj+ oM75y/nEsxxuShomOnSIYh9gya9JxaYH/t6mQGSXrblUj+meFpZ36tpHx8LqzfncyKra iAdhV51c1oQStjbifa+0Hi5kirhPuw3GFw8tLWBS42iclxs2qZZh9q3Pvydg6fHtu+xP LxEt6MU6ghERrUkcV/BNVCY0UD7KSFF988MrES+z0FxiyFRTv6Ow7eXbjEnPbtQ8gPjz rpxXgiTyb/sX0Zbb/1vk81y85kfHKVnU9h/mFUehuRRBJMhOesMA9wnvE646ohdZ0I+4 trSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791715904; x=1792320704; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=s9IOQt0mTtjcialCq+w4QcYBG4S9WcWGt22CC4ZoF8M=; b=IKOi6DWW85wDargozVNDj/TMsAyL+ZB9mtqyyUtC6GWI3kwHAMtJwtVv/Co6A2xEpY 16CP8XdsuMyuOc41u7MCFGRpVQMqfdazqMd5Msn7iGXim81MZS7i/OD094F/d6l9dVP8 Gccgkg6bgy0POzmbR0x+STwY4CXCTgyBarwdlxGQNB+G8wp+71DziYWLPNli2dAas9ST tggIDlVdh0urVQ1O08WJ0L3eaE9wakvgrQ+vX+8va2G3AIdThBPZ/KT6djLO6VR9F67j AsBYwgFXbgs0WAQtJkXKQpTWF4Lazozv8uPIbt2ZqnQKhGBSyWIaGZuAslHaEHZYDo7m ObKw== X-Forwarded-Encrypted: i=1; AKwUvBxnkwb+Ml4gXdnEvY9ago+SpMNf+YUnIBsfn0ksKbhTMm1G1Mj7VnEHz6rBvIqhbMq7Ux2U4Q==@debbugs.gnu.org X-Gm-Message-State: AFq9FYJCSHX2qQ0rcMLAySe1mgQormO+OvZyyBNYtha+ZxaTNHcCyxxw ojIO7KD9SCJQXSht5mOZGeeQfdZa9Cr9M0f4BVoF+woQKbbR8mQVT1l0oBFXQrNB6blQzKQach7 ghWNBgg9fL+Fiom4DfBjZFQ19Dg7Z9H0= X-Gm-Gg: AYBFou1uToTi++WHUKtRyJHWauXfgs+kqb4tKSqPtfogpCOgVre8vpQXT+9lmPk7g9d uo8ZNrU6h3CxzM+uAaoabU4tdxmYpXGeVydbG1lOghgiTdlmaedS10eBPS6TKVAHhS8CcE/l0Lx dO6hfpdj/yiGQrR52GswtKOwfu7bTkg7nqf7enwxMqhsUkARFyu2u79ok7/a5YK3cJrdb564nhm +KaDdiVJAxX2XQz1aEW4yKkZ9ziJJOjEllAJLwhqGvsSzSROzfGwpcRcBffQVH8FkvdkKznOOR2 tB0om3qV8txYXWSMEXjfk0jfA0GEcpj9ff14H/cmsIw2c5+bQyRNgfE7W1d7JdNTg+V0H3d5v2a CbUrXobpo+lHvjnnxjnSAWc9NNkgpRqOsbw3Xqz5kN7eoNyKOeqqPA+et2+cItOCWeoXR/LhGqo QmqUkZGNooF0toXQ+SKZ6K/VogQuBd+ndZu/6VQIS4/Eg5oeOrOxz+Oo7ekcBxV9dXbS8KGZcbz RChgg== X-Received: by 2002:a05:6102:e10:b0:7a7:3485:3386 with SMTP id ada2fe7eead31-7cb373b20f9mr1442382137.24.1791715904046; Sun, 11 Oct 2026 03:51:44 -0700 (PDT) MIME-Version: 1.0 References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> <86tsmsiys2.fsf@HIDDEN> In-Reply-To: <86tsmsiys2.fsf@HIDDEN> From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN> Date: Sun, 11 Oct 2026 06:51:32 -0400 X-Gm-Features: AclHuK8Z4FjKZduUsCwLsDTyN7MN-okkKuAGwBidFSRRvFNNZ5Ojx46lMtlLvFc Message-ID: <CAN+1HbouQMGtgg8p_kA2qxwQGoP602CP1eBdxNfvF9mCt4DLyA@HIDDEN> Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000ffcb21065d8e5d6f" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 82032 Cc: Alan Third <alan@HIDDEN>, 82032 <at> debbugs.gnu.org, Stefano Pacifico <github@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.0 (/) --000000000000ffcb21065d8e5d6f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Oct 11, 2026 at 1:37=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote: > > From: Stefano Pacifico <github@HIDDEN> > > Date: Sat, 10 Oct 2026 16:03:29 -0400 > > > > Severity: normal > > Tags: patch > > > > When Emacs is built with NS support (--with-ns), starting Emacs in batc= h > > mode or within an environment where ~/Library/Colors/Emacs.clr is not > > writable (such as under a macOS sandbox profile or read-only filesystem= ) > > causes an immediate crash on startup with: > > > > Fatal error 6: Abort trap: 6 > > > > Under LLDB/debugger, the uncaught Objective-C exception is: > > > > *** Terminating app due to uncaught exception > 'NSColorListNotEditableException', > > reason: '-[NSColorList setColor:forKey:]: color list is not editabl= e' > > terminating with uncaught exception of type NSException > > abort() called > > > > ### Root Cause > > > > In commit 0183181ea8b (Bug#80377), `ns_init_colors()` was moved into > > `main()` in `src/emacs.c` unconditionally under `#ifdef HAVE_NS` whenev= er > > `!dump_mode`: > > > > #ifdef HAVE_NS > > if (!dump_mode) > > ns_init_colors (); > > #endif > > > > This causes two issues: > > 1. `ns_init_colors` is invoked during batch execution (`emacs --batch`)= , > > attempting to create and populate GUI color palettes in headless run= s. > > 2. In `src/nsfns.m`, `ns_init_colors` creates or opens the "Emacs" > > NSColorList and iterates over the color map calling > > `[cl setColor:... forKey:...]` without verifying whether > `-[NSColorList isEditable]` > > is true. If the file cannot be written to, Cocoa raises an uncaught > > `NSColorListNotEditableException`, crashing Emacs. > > > > ### Steps to Reproduce > > > > 1. Make ~/Library/Colors/Emacs.clr read-only (or run inside a macOS > sandbox): > > touch ~/Library/Colors/Emacs.clr > > chmod 444 ~/Library/Colors/Emacs.clr > > > > 2. Invoke Emacs in batch mode: > > ./src/emacs -Q --batch --eval '(message "hello")' > > > > Observed: > > Fatal error 6: Abort trap: 6 > > (Exit code 134) > > > > Expected: > > "hello" printed and clean exit (code 0). > > > > ### Proposed Fix > > > > 1. In `src/emacs.c`, guard `ns_init_colors()` with `!noninteractive` so > > batch runs do not touch NS GUI color lists. > > 2. In `src/nsfns.m`, check `if (![cl isEditable]) return;` before the > > mutation loop so sandboxed or read-only runs return cleanly without > > crashing. > > > > The change is only 4 lines (paperwork-exempt). The git format-patch is > > attached below. > > Alan, any comments? > I think I worked on that, though Alan kindly committed. I will try to take a look today. --000000000000ffcb21065d8e5d6f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif;b= ackground-color:transparent">On Sun, Oct 11, 2026 at 1:37=E2=80=AFAM Eli Za= retskii <<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>> wrote:</sp= an></div></div><div class=3D"gmail_quote gmail_quote_container"><blockquote= class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so= lid rgb(204,204,204);padding-left:1ex">> From: Stefano Pacifico <<a h= ref=3D"mailto:github@HIDDEN" target=3D"_blank">github@HIDDEN</a>&= gt;<br> > Date: Sat, 10 Oct 2026 16:03:29 -0400<br> > <br> > Severity: normal<br> > Tags: patch<br> > <br> > When Emacs is built with NS support (--with-ns), starting Emacs in bat= ch<br> > mode or within an environment where ~/Library/Colors/Emacs.clr is not<= br> > writable (such as under a macOS sandbox profile or read-only filesyste= m)<br> > causes an immediate crash on startup with:<br> > <br> >=C2=A0 =C2=A0 =C2=A0Fatal error 6: Abort trap: 6<br> > <br> > Under LLDB/debugger, the uncaught Objective-C exception is:<br> > <br> >=C2=A0 =C2=A0 =C2=A0*** Terminating app due to uncaught exception '= NSColorListNotEditableException',<br> >=C2=A0 =C2=A0 =C2=A0reason: '-[NSColorList setColor:forKey:]: color= list is not editable'<br> >=C2=A0 =C2=A0 =C2=A0terminating with uncaught exception of type NSExcep= tion<br> >=C2=A0 =C2=A0 =C2=A0abort() called<br> > <br> > ### Root Cause<br> > <br> > In commit 0183181ea8b (Bug#80377), `ns_init_colors()` was moved into<b= r> > `main()` in `src/emacs.c` unconditionally under `#ifdef HAVE_NS` whene= ver<br> > `!dump_mode`:<br> > <br> >=C2=A0 =C2=A0 =C2=A0#ifdef HAVE_NS<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!dump_mode)<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ns_init_colors ();<br> >=C2=A0 =C2=A0 =C2=A0#endif<br> > <br> > This causes two issues:<br> > 1. `ns_init_colors` is invoked during batch execution (`emacs --batch`= ),<br> >=C2=A0 =C2=A0 attempting to create and populate GUI color palettes in h= eadless runs.<br> > 2. In `src/nsfns.m`, `ns_init_colors` creates or opens the "Emacs= "<br> >=C2=A0 =C2=A0 NSColorList and iterates over the color map calling<br> >=C2=A0 =C2=A0 `[cl setColor:... forKey:...]` without verifying whether = `-[NSColorList isEditable]`<br> >=C2=A0 =C2=A0 is true. If the file cannot be written to, Cocoa raises a= n uncaught<br> >=C2=A0 =C2=A0 `NSColorListNotEditableException`, crashing Emacs.<br> > <br> > ### Steps to Reproduce<br> > <br> > 1. Make ~/Library/Colors/Emacs.clr read-only (or run inside a macOS sa= ndbox):<br> >=C2=A0 =C2=A0 =C2=A0 touch ~/Library/Colors/Emacs.clr<br> >=C2=A0 =C2=A0 =C2=A0 chmod 444 ~/Library/Colors/Emacs.clr<br> > <br> > 2. Invoke Emacs in batch mode:<br> >=C2=A0 =C2=A0 =C2=A0 ./src/emacs -Q --batch --eval '(message "= hello")'<br> > <br> > Observed:<br> >=C2=A0 =C2=A0 =C2=A0 Fatal error 6: Abort trap: 6<br> >=C2=A0 =C2=A0 =C2=A0 (Exit code 134)<br> > <br> > Expected:<br> >=C2=A0 =C2=A0 =C2=A0 "hello" printed and clean exit (code 0).= <br> > <br> > ### Proposed Fix<br> > <br> > 1. In `src/emacs.c`, guard `ns_init_colors()` with `!noninteractive` s= o<br> >=C2=A0 =C2=A0 batch runs do not touch NS GUI color lists.<br> > 2. In `src/nsfns.m`, check `if (![cl isEditable]) return;` before the<= br> >=C2=A0 =C2=A0 mutation loop so sandboxed or read-only runs return clean= ly without<br> >=C2=A0 =C2=A0 crashing.<br> > <br> > The change is only 4 lines (paperwork-exempt). The git format-patch is= <br> > attached below.<br> <br> Alan, any comments?<br></blockquote><div><br></div><div class=3D"gmail_defa= ult" style=3D"font-family:monospace">I think I worked on that,=C2=A0though = Alan kindly committed.=C2=A0 I will try to take a look today.</div></div></= div> --000000000000ffcb21065d8e5d6f--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.Received: (at 82032) by debbugs.gnu.org; 11 Oct 2026 05:36:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 11 01:36:59 2026 Received: from localhost ([127.0.0.1]:54913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1xFmF0-0005tL-8J for submit <at> debbugs.gnu.org; Sun, 11 Oct 2026 01:36:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53524) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xFmEx-0005ss-4J for 82032 <at> debbugs.gnu.org; Sun, 11 Oct 2026 01:36:56 -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 1xFmEr-00029j-4Z; Sun, 11 Oct 2026 01:36:49 -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=wrCGaQnwRsKhRHiUjGeqKjtwUF0NWuyFj7YTj3JfNI4=; b=UbkB7f1nEM4M T4FTTL+dgwrNQRJtD5E3T27Kn4sybE5Zje5OXOWgg2o9tgTIsHpIawHGued3Rrpul23CuErb4zFwT RPb4c5Uxpv/HBxNlh/jt49/meOWbxQ8CfWKP2YnLUFIu6pJxmQ19Ug7XEG0SrqkbJxkkfsC3wIfLK tip+/3ojNcZpjJZSMdMfCWH9Mr0W2nQmDXg+M72WBWiSe11LKrccdFp6zagf3jt3PVsR+fnOBceuF D2F0bhYlK3NjHW6gnNdwjX7xb0Mp38zOo2KfPPoIHSL1Kc/6nAW70nveg/asvBd+BYZjlshsTxO9R 8GMAQQdS/3qTC0ZMs3EIGg==; Date: Sun, 11 Oct 2026 08:36:45 +0300 Message-Id: <86tsmsiys2.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Stefano Pacifico <github@HIDDEN>, Alan Third <alan@HIDDEN> In-Reply-To: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> (message from Stefano Pacifico on Sat, 10 Oct 2026 16:03:29 -0400) Subject: Re: bug#82032: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not editable (batch mode / sandboxed) References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 82032 Cc: 82032 <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: Stefano Pacifico <github@HIDDEN> > Date: Sat, 10 Oct 2026 16:03:29 -0400 > > Severity: normal > Tags: patch > > When Emacs is built with NS support (--with-ns), starting Emacs in batch > mode or within an environment where ~/Library/Colors/Emacs.clr is not > writable (such as under a macOS sandbox profile or read-only filesystem) > causes an immediate crash on startup with: > > Fatal error 6: Abort trap: 6 > > Under LLDB/debugger, the uncaught Objective-C exception is: > > *** Terminating app due to uncaught exception 'NSColorListNotEditableException', > reason: '-[NSColorList setColor:forKey:]: color list is not editable' > terminating with uncaught exception of type NSException > abort() called > > ### Root Cause > > In commit 0183181ea8b (Bug#80377), `ns_init_colors()` was moved into > `main()` in `src/emacs.c` unconditionally under `#ifdef HAVE_NS` whenever > `!dump_mode`: > > #ifdef HAVE_NS > if (!dump_mode) > ns_init_colors (); > #endif > > This causes two issues: > 1. `ns_init_colors` is invoked during batch execution (`emacs --batch`), > attempting to create and populate GUI color palettes in headless runs. > 2. In `src/nsfns.m`, `ns_init_colors` creates or opens the "Emacs" > NSColorList and iterates over the color map calling > `[cl setColor:... forKey:...]` without verifying whether `-[NSColorList isEditable]` > is true. If the file cannot be written to, Cocoa raises an uncaught > `NSColorListNotEditableException`, crashing Emacs. > > ### Steps to Reproduce > > 1. Make ~/Library/Colors/Emacs.clr read-only (or run inside a macOS sandbox): > touch ~/Library/Colors/Emacs.clr > chmod 444 ~/Library/Colors/Emacs.clr > > 2. Invoke Emacs in batch mode: > ./src/emacs -Q --batch --eval '(message "hello")' > > Observed: > Fatal error 6: Abort trap: 6 > (Exit code 134) > > Expected: > "hello" printed and clean exit (code 0). > > ### Proposed Fix > > 1. In `src/emacs.c`, guard `ns_init_colors()` with `!noninteractive` so > batch runs do not touch NS GUI color lists. > 2. In `src/nsfns.m`, check `if (![cl isEditable]) return;` before the > mutation loop so sandboxed or read-only runs return cleanly without > crashing. > > The change is only 4 lines (paperwork-exempt). The git format-patch is > attached below. Alan, any comments? > ### System Configuration > > In GNU Emacs 31.1 (build 3, aarch64-apple-darwin27.0.0, NS appkit-2775.10 Version 27.0.1 (Build 26A434)) > of 2026-10-10 > System Description: macOS Sequoia (Darwin 27.0.0) > > Configured using: > 'configure --with-gnutls --with-json --with-modules --with-native-compilation=aot --with-tree-sitter --with-wide-int --with-xml2 --with-zlib --with-imagemagick --with-xwidgets --with-mailutils --with-ns --without-compress-install' > > Configured features: > ACL GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS ZLIB > > > In GNU Emacs 32.0.50 (build 10, aarch64-apple-darwin27.0.0, NS > appkit-2775.10 Version 27.0 (Build 26A428)) of 2026-10-03 built on > raven.home.arpa > Repository revision: 2b21e472c4ca55aeee6088decbb3e963972e1c1b > Repository branch: test-emacs-gpu > Windowing system distributor 'Apple', version 10.3.2775 > System Description: macOS 27.0.1 > > Configured using: > 'configure --with-gnutls --with-json --with-modules > --with-native-compilation=aot --with-tree-sitter --with-wide-int > --with-xml2 --with-zlib --with-imagemagick --with-xwidgets > --with-mailutils --with-ns --with-gpu --without-compress-install > 'CFLAGS=-mcpu=native -march=native -O2'' > > Configured features: > ACL GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY > KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS > TREE_SITTER WEBP XIM XWIDGETS ZLIB > > Important settings: > value of $LC_ALL: en_US.UTF-8 > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > > Minor modes in effect: > server-mode: t > diff-hl-flydiff-mode: t > global-diff-hl-mode: t > prettify-special-glyphs-mode: t > repeat-mode: t > winner-mode: t > which-key-mode: t > corfu-popupinfo-mode: t > global-corfu-mode: t > marginalia-mode: t > vertico-mode: t > projectile-mode: t > global-xref-mouse-mode: t > xref-mouse-mode: t > persp-mode: t > pixel-scroll-precision-mode: t > delete-selection-mode: t > electric-pair-mode: t > recentf-mode: t > save-place-mode: t > savehist-mode: t > override-global-mode: t > spacious-padding-mode: t > general-override-mode: t > global-evil-collection-unimpaired-mode: t > evil-collection-unimpaired-mode: t > evil-mode: t > evil-local-mode: t > global-auto-revert-mode: t > windmove-mode: t > tooltip-mode: t > global-eldoc-mode: t > show-paren-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > mouse-shift-adjust-mode: t > global-font-lock-mode: t > font-lock-mode: t > window-divider-mode: t > minibuffer-nonselected-mode: t > minibuffer-regexp-mode: t > buffer-read-only: t > size-indication-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > > Load-path shadows: > /Applications/Emacs.app/Contents/Resources/lisp/gnus/gnus-dbus hides /Applications/Emacs.app/Contents/Resources/lisp/obsolete/gnus-dbus > > Features: > (shadow sort mail-extr emacsbug lisp-mnt evil-collection-message message > yank-media puny rfc822 mml mml-sec evil-collection-epa epa epg rfc6068 > epg-config gnus-util time-date mm-decode mm-bodies mm-encode mailabbrev > gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045 > ietf-drums mm-util mail-prsvr mail-utils vertico-sort gpu mtl svg dom > display-line-numbers server diff-hl-show-hunk-inline diff-hl-inline-popup > diff-hl-show-hunk diff-hl-flydiff diff evil-collection-diff-hl diff-hl > evil-collection-log-view log-view evil-collection-log-edit log-edit > add-log pcvs-util evil-collection-vc-dir vc-dir ewoc vc vc-dispatcher > evil-collection-diff-mode diff-mode track-changes evil-collection-dired > dired dired-loaddefs xml disp-table repeat winner evil-collection-custom > cus-edit cus-start cus-load treesit evil-collection-which-key which-key > cape corfu-popupinfo corfu-auto evil-collection-corfu corfu orderless > marginalia evil-collection-vertico vertico projectile > evil-collection-bookmark bookmark pp evil-collection-outline noutline > outline evil-collection-xref xref fileloop generator > evil-collection-grep grep evil-collection-compile > compile text-property-search ibuf-ext evil-collection-ibuffer ibuffer > ibuffer-loaddefs perspective ido pixel-scroll delsel elec-pair recentf > tree-widget wid-edit saveplace savehist use-package use-package-ensure > use-package-delight use-package-diminish use-package-bind-key bind-key > use-package-core prose spacious-padding > modus-vivendi-tinted-theme modus-themes color general > evil-collection-unimpaired evil-collection-tabulated-list > evil-collection-tab-bar evil-collection-simple evil-collection-replace > evil-collection-process-menu evil-collection-package-menu > evil-collection-kmacro evil-collection-indent evil-collection-help > evil-collection-elisp-mode evil-collection-eldoc evil-collection-comint > calc-ext evil-collection-calc evil-collection-buff-menu evil-collection > evil evil-integration evil-maps evil-commands reveal flyspell ispell > evil-jumps evil-command-window evil-search evil-ex shell pcomplete > evil-types evil-macros evil-repeat evil-states evil-core byte-opt comp > comp-cstr cl-extra help-mode warnings comp-run bytecomp byte-compile > comp-common rx advice evil-common calc calc-loaddefs calc-macs rect > evil-digraphs evil-vars edmacro kmacro > comint ansi-osc ansi-color ring finder-inf > agent-shell-autoloads acp-autoloads avy-autoloads cape-autoloads > corfu-autoloads diff-hl-autoloads embark-consult-autoloads > consult-autoloads embark-autoloads evil-collection-autoloads > evil-autoloads forge-autoloads closql-autoloads emacsql-autoloads > general-autoloads ghub-autoloads helpful-autoloads elisp-refs-autoloads > f-autoloads dash-autoloads magit-autorevert compat autorevert filenotify > magit-autoloads magit-section-autoloads marginalia-autoloads > markdown-mode-autoloads modus-themes-autoloads orderless-autoloads > perspective-autoloads projectile-autoloads rainbow-delimiters-autoloads > rg-autoloads rust-mode-autoloads s-autoloads shell-maker-autoloads > spacious-padding-autoloads treepy-autoloads typescript-mode-autoloads > vertico-autoloads vundo-autoloads wgrep-autoloads with-editor-autoloads > llama-autoloads cond-let-autoloads yaml-autoloads yaml-mode-autoloads > nsm pcase derived package browse-url xdg url url-proxy url-privacy url-expand > url-methods url-history url-cookie generate-lisp-file url-domsuf > url-util mailcap url-handlers url-parse auth-source icons password-cache > json map url-vars package-activate easy-mmode windmove > cl-seq inline eieio eieio-core cl-macs gv thingatpt project subr-x > cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric > uniquify ediff-hook vc-hooks lisp-float-type > elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util > term/common-win 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 xwidget-internal kqueue cocoa ns lcms2 multi-tty > make-network-process tty-child-frames native-compile emacs) > > Memory information: > ((conses 16 663036 475434) (symbols 48 36187 4) (strings 32 169208 25069) > (string-bytes 1 5638675) (vectors 16 47698) (vector-slots 8 593213 144438) > (floats 8 502 430) (intervals 56 5438 1401) (buffers 1064 11)) > > > >
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at 82032) by debbugs.gnu.org; 10 Oct 2026 22:05:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 10 18:05:09 2026
Received: from localhost ([127.0.0.1]:46948 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xFfBk-000492-KZ
for submit <at> debbugs.gnu.org; Sat, 10 Oct 2026 18:05:09 -0400
Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]:59517)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <github@HIDDEN>)
id 1xFfBf-00047j-Nl
for 82032 <at> debbugs.gnu.org; Sat, 10 Oct 2026 18:05:06 -0400
Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51])
by mailfout.stl.internal (Postfix) with ESMTP id DD1631D0005C
for <82032 <at> debbugs.gnu.org>; Sat, 10 Oct 2026 18:04:57 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
by phl-compute-11.internal (MEProxy); Sat, 10 Oct 2026 18:04:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h=
cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm1; t=1791669897; x=1791756297; bh=Qj5K+rIp2T
DTvgrVD5XLai38sxdn8GLzFbO5zXFp4yo=; b=dnwPE3LSK1FmhxRwtLYiFqjJlK
TFRv5lapIzAln25JXOFkW1IuXMIR/ZHdPJyC7ucxGD1QC+/NVqf7pzSo01mxdl+u
/62KQcEskHkrZa7F5d5yneuF1901KWqlcJHSrV4QYU7wSP92fRRUedtTn4N0bC27
DLx01BXOV+Lzu/Tzupcl9gWCfkbl5yDtQJL2S7vaLz1K/nql0tmK/9XHTqEZ3eSd
xnYwV5cv3AOGggJBb9coEiWQ/wwe1UfU0Qxy/BgCftnZvtlw01urKxVuIswlt3Gm
teNzPSZhzprsCyR4uT5YAikMrPTBUs6PeDJU+K8S3i9z1iMMwDKDIbAFbQ2A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1791669897; x=1791756297; bh=Qj5K+rIp2TDTvgrVD5XLai38sxdn8GLzFbO
5zXFp4yo=; b=vbqO8TkrJGSx9pBHwf5RDVRSvbCLzrQs6iztm+NSHwinXrgHf3x
D8aDQ5D8ypJlG2OyM/9ipy3B7fAFoNh6omD9W/BfrQ5Y8PN027X7sz+n+x+PFbEf
l4yGBBV8oHQQvnncRiqQ1O0HtVRiSLxEJbmVm6xvfB9gQQoFhnLEdKQ9nPlagLbO
OrFMI67DE5+9KOKgvnAdmgmidXuXPueZLUWWHuCX/44g6k3xbKebgeLVhLCbZo5h
gRlYdfWy/xS2DQO3zSo+BLgP22rvEu6yELMrnfxsV6H3TwsquvWZtwbIQWCaosYc
khftGXL49B0GWlEG9nx9sfgeCk5liJYGr7Q==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=sign d=pacifico.cc a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791669897; d=pacifico.cc;
mf=PGdpdGh1YkBwYWNpZmljby5jYz4=;
rt=PDgyMDMyQGRlYmJ1Z3MuZ251Lm9yZz4=;
s=fm1:rsa-sha256:dc+UEjI3Dq6WwBXCvzoc9Qqua550naJz+6SA9/BfPZVAcwT
Q0T538JmuBg8MicGzhjggKuuKe39RRrEeACFnwL8g0WASn+mLhvyD7uTsNvO/1eQ
HrQlQvLSxBkCVCusTpag83u0p/xfvCEMd0Q/GFD/DgP6Aflm6gzRDZl8DxGrBsnK
h5il3E7Z1E/G0qlb/B8dSHTPSlEd5jDXmSl61+TbJjTiSCQ332ycNwqbaNSCNA+H
ypw1iboJFrS+5q9aNgKoxrNdhXHoeSCjU+K+NrZp9l8OC8pmHBa05dUxKbwqAcYc
M4w+m1EJGA9qDLrCsSMqQL6raZupotyHWMHJ/Xw==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=mi-m=1; hc=10;
hn=content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to;
Message-Instance: m=1;
h=sha256:mu5dWaqWNF+imSZd9jNOTJL6uPAQSLqiTLyFQyN58jQ=:plTiFhrsFguI4ktaikM5aE068T22eFpIjQDSeLQGHLU=;
X-ME-Sender: <xms:ibbKar5C4-hEPfzxzrevUdG4nsk_QyntHizpYcjodiFlHRpHiVE0Sg>
<xme:ibbKan0zgkhS0MohBj5Db2LsSd_cznBXNGBv_e83bwiQPt9Ub7ixXicsJuc-atb0a
qKGWegHnZgVdz9PLvtgOHeP_MxIMqeC9A4ynujsEO5Qm7Tq70psHg>
X-ME-Received: <xmr:ibbKaoGlEDOEMjJpICRu7pgNmkHjqxfXKIa70H6eEVGsJK-TcGEXpQZM0N7x61cij-En79rxKBsMMs4wVswh_wBaCFliE57Ef30F-_hltVnErO6qKxb-DC2gZA>
X-ME-Proxy-Cause: dmFkZTFIpWYjd3xRWPY8nszFEbyjZs+SinIR17FjNkLP5LCB8InYqZWckC2S6Ewfu0CkvE
ZrDpA0oF1s+HWK17v/2MVmNBtFJ7tMCACvDNVpHeB6y/EvdGHtLGL4cvHraNTel/ZklDdi
CWoaJRJL/12PA+xosj49sOIZH0y+a1bp5Gw5/g1k8JNkB3FY1roZrVhvrPPpk64Z8Owklk
lyVqN9qiWWBMl2V8PNvzp594flhwIx2Io8CD3Si6w2pw41Bmy04W07motuTWFhlQJA6Ruo
982D1c61MAg3LMtD+wvHRTQnd65m8g/7HgEABZXHz7DWEEh7stwcKSu3k92OFzL/vkZjcc
c6ggfQJJ9U0zj0YCskxXhxP84DwOprlqodmqwotcQDVhO+MKcjeCq/LXhe4FXvzSBqDCwg
xGVShrBr9e47TrEv0nRpsS9Z8cTivKXhUo6Fejyao6GwmPdPZE0GxQndmLCFjiGnjJ3BBv
UgV8vzvOmkw9wNKQzX46S19nwxIMu8ejeqshfrAiblBVByw6S+LB1Iev7FggGjP4Uvrcjy
tHyHWQvjmfww11GzUBJGkP5cOaeMRyYsiZpiBoYKiZ8BCZ4/tRO7nPTZVl+h7tDZjAol2Z
M89NqTzMbcb6z4mmyPGxsoEOCzThAgvecs73sHRdGTBbAtyw6x7Hsm94DPKQ
X-ME-Proxy: <xmx:ibbKahTfKYwAriAIwENBUJQphsNLaQ3riZ0fsUR7hRnEAb8qE7cfSw>
<xmx:ibbKavDo1OuECh63KOWtKYlCWz95D5sUFI5kFusqCXFGWPLjPah4cw>
<xmx:ibbKah272VFD7vpyjPU8iB6Rm9mwIWJcMZUN5QPHtiBs3zgvHRIyEQ>
<xmx:ibbKatXCiysf5MqGnwRelvM2VJjMbN5yC9jxnJPcLuPGYTvDBOmqaA>
<xmx:ibbKalC2AplC0wk95IepXA1MoH1ZNKHSoX3DMcj4Rpmy1p6I-bGcw7RF>
Feedback-ID: ie93843ea:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
<82032 <at> debbugs.gnu.org>; Sat, 10 Oct 2026 18:04:57 -0400 (EDT)
From: Stefano Pacifico <github@HIDDEN>
Content-Type: multipart/mixed;
boundary="Apple-Mail=_37DA8A89-13E2-4865-94E3-4CC3BAF97DD4"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Subject: Re: bug#82032: Acknowledgement (32.0.50; 31.1; Crash in
ns_init_colors when NSColorList is not editable (batch mode / sandboxed))
Date: Sat, 10 Oct 2026 18:04:46 -0400
References: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
<handler.82032.B.17916687479661.ack <at> debbugs.gnu.org>
To: 82032 <at> debbugs.gnu.org
In-Reply-To: <handler.82032.B.17916687479661.ack <at> debbugs.gnu.org>
Message-Id: <38E2DB5E-7522-4F04-B281-57765A72BA86@HIDDEN>
X-Mailer: Apple Mail (2.3901.100.1.1.12)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 82032
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 (-)
--Apple-Mail=_37DA8A89-13E2-4865-94E3-4CC3BAF97DD4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
> On Oct 10, 2026, at 5:46=E2=80=AFPM, GNU bug Tracking System =
<help-debbugs@HIDDEN> wrote:
>=20
> Thank you for filing a new bug report with debbugs.gnu.org.
[ =E2=80=A6 ]
Attached is the proposed patch
--Apple-Mail=_37DA8A89-13E2-4865-94E3-4CC3BAF97DD4
Content-Disposition: attachment;
filename=0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="0001-Fix-crash-in-ns_init_colors-with-non-writable-NSColo.patch"
Content-Transfer-Encoding: quoted-printable
=46rom=201a93fa028335def04804f2eecf2aad4d7c8e33e3=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Stefano=20Pacifico=20<github@HIDDEN>=0A=
Date:=20Sat,=2010=20Oct=202026=2015:42:16=20-0400=0ASubject:=20[PATCH]=20=
Fix=20crash=20in=20ns_init_colors=20with=20non-writable=20NSColorList=0A=0A=
Do=20not=20initialize=20NS=20color=20lists=20when=20running=20=
noninteractively.=0AAlso=20verify=20that=20the=20color=20list=20is=20=
editable=20before=20attempting=0Ato=20populate=20it,=20preventing=20an=20=
uncaught=20NSColorListNotEditableException=0Awhen=20running=20in=20=
sandboxed=20or=20read-only=20environments.=0A=0A*=20src/emacs.c=20=
(main):=20Do=20not=20call=20ns_init_colors=20if=20noninteractive.=0A*=20=
src/nsfns.m=20(ns_init_colors):=20Return=20early=20if=20the=20color=20=
list=0Ais=20not=20editable.=0A---=0A=20src/emacs.c=20|=202=20+-=0A=20=
src/nsfns.m=20|=202=20++=0A=202=20files=20changed,=203=20insertions(+),=20=
1=20deletion(-)=0A=0Adiff=20--git=20a/src/emacs.c=20b/src/emacs.c=0A=
index=2011fe567737a..b8d5758eada=20100644=0A---=20a/src/emacs.c=0A+++=20=
b/src/emacs.c=0A@@=20-2292,7=20+2292,7=20@@=20android_emacs_init=20(int=20=
argc,=20char=20**argv,=20char=20*dump_file)=0A=20#ifdef=20HAVE_NS=0A=20=20=
=20/*=20For=20early=20calls=20to=20ns_lisp_to_color=20or=20=
Fns_list_colors.=0A=20=20=20=20=20=20Must=20follow=20init_callproc=20=
which=20sets=20data-directory.=20=20*/=0A-=20=20if=20(!dump_mode)=0A+=20=20=
if=20(!dump_mode=20&&=20!noninteractive)=0A=20=20=20=20=20ns_init_colors=20=
();=0A=20#endif=0A=20=0Adiff=20--git=20a/src/nsfns.m=20b/src/nsfns.m=0A=
index=20148bbc7923a..17c8727bff8=20100644=0A---=20a/src/nsfns.m=0A+++=20=
b/src/nsfns.m=0A@@=20-2254,6=20+2254,8=20@@=20Frames=20are=20listed=20=
from=20topmost=20(first)=20to=20bottommost=20(last).=20=20*/)=0A=20=09=
fatal=20("Could=20not=20read=20%s.\n",=20SDATA=20(color_file));=0A=20=0A=20=
=20=20=20=20=20=20cl=20=3D=20[[NSColorList=20alloc]=20initWithName:=20=
@"Emacs"];=0A+=20=20=20=20=20=20if=20(![cl=20isEditable])=0A+=09return;=0A=
=20=20=20=20=20=20=20for=20(=20;=20CONSP=20(color_map);=20color_map=20=3D=20=
XCDR=20(color_map))=0A=20=09{=0A=20=09=20=20color=20=3D=20XCAR=20=
(color_map);=0A--=20=0A2.56.0=0A=0A=
--Apple-Mail=_37DA8A89-13E2-4865-94E3-4CC3BAF97DD4--
bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 10 Oct 2026 21:45:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 10 17:45:47 2026
Received: from localhost ([127.0.0.1]:43845 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1xFesz-0002Vf-A3
for submit <at> debbugs.gnu.org; Sat, 10 Oct 2026 17:45:47 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:39162)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <github@HIDDEN>)
id 1xFdIT-00013T-Ou
for submit <at> debbugs.gnu.org; Sat, 10 Oct 2026 16:03:59 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <github@HIDDEN>)
id 1xFdIJ-0006nY-QP
for bug-gnu-emacs@HIDDEN; Sat, 10 Oct 2026 16:03:47 -0400
Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <github@HIDDEN>)
id 1xFdIF-0004ts-FD
for bug-gnu-emacs@HIDDEN; Sat, 10 Oct 2026 16:03:46 -0400
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
by mailfout.stl.internal (Postfix) with ESMTP id 3CD091D0004C
for <bug-gnu-emacs@HIDDEN>; Sat, 10 Oct 2026 16:03:40 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
by phl-compute-05.internal (MEProxy); Sat, 10 Oct 2026 16:03:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacifico.cc; h=
cc:content-transfer-encoding:content-type:content-type:date:date
:from:from:in-reply-to:message-id:mime-version:reply-to:subject
:subject:to:to; s=fm1; t=1791662620; x=1791749020; bh=stMPtR+/4K
SvBIxsrfyPJ60VunwaHbT0bwhsquKoBtU=; b=oMMILAJFhXu4HYLmAuXDvLRyMX
gtyiC0l6njGo2ft8y879Yzo9W1rX/DZiTwMzhUdT56JX6673rbzVycEfdlmpmMEx
fqzT+mBvsIDpXHoaTe9ffI9uNxm7J5l6ViEed2C5szN9J3jXZWgKc3Fa1LjO1UQu
QYEabB7fdLUd1g7IedvB7nVcnV+eJs3L+goBefvAH4OVfP66paJOs9novD1+dOJT
hGWNWPLTR2iGpkZ6H1EBOxdluP97ZAbfGQdZfsa2C5S8m7KflIi8rlpxmmnecmG+
wZ3iOKJkFfBcccr+4baGtf7j+zXC7MuRAR9BHsJscndq8MMv1bqkQQ/UDwtQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:content-transfer-encoding:content-type
:content-type:date:date:feedback-id:feedback-id:from:from
:in-reply-to:message-id:mime-version:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1791662620; x=1791749020; bh=stMPtR+/4KSvBIxsrfyPJ60VunwaHbT0bwh
squKoBtU=; b=YWBmce0ugcRzGEEzNOmE+K53U2wKrtm0pO/icshtfL8G0tpw8GT
2m9pNGQ04m9rlA16mmYaSymPaLt+vQyVmxfGjmUOsC59r9Dykk9sw2ispuiBM/Jv
iOJmwrQNMFN1TK7dPbbiDamk2Cwg70/LYQjO17N86tZo95hFAkQ/2khPYbDNzbqt
CyQE5AJZRrQfsJVD16sb0pYCHCyuKbXuGTfX6/3wXAjCik2kB2iWzMfO0uGKrTsK
lX8Z1yXhaNUXqIF5WTdQ9RFOZX/vN9LHmWO5cSOIKvtSB5Hxud3kz+IDcJ69OMnB
dXaF/4jBlE4RgTSmgyTQx+gOZACVUKtBdvQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=sign d=pacifico.cc a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791662620; d=pacifico.cc;
mf=PGdpdGh1YkBwYWNpZmljby5jYz4=;
rt=PGJ1Zy1nbnUtZW1hY3NAZ251Lm9yZz4=;
s=fm1:rsa-sha256:GQnJsB3Ts1v3Oza/+VuKOA98g9jjvF0Rrl10KYi9qZi0r4L
mSi63fcHaT3mTYCU3Uv2eOyyoMddcMgydwzR9EjAuOaXbHe86ozwEjuXcySiLKwx
KrHg42q4YmfkS6jbj0QUa3ahSvaNwRBuVr9yjzcCp/B1kGAnJ/pk/8Lz/tkF8v8O
owRTdfpH1W+ZIBQJf7scKDaM4j2fGXMXVb77+aJj0JUkWAZLsL8G6rG5lgjFB30D
S0/UP11NkwwgBTSt/2KYyYQJ/UW9HmeNc+EQhxXyklBQTLw/NaW8OVJbKs2Xbcew
IKtffaji4l0XjFB5R1hslIP5cvXLXZAhXgInQ/Q==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=mi-m=1; hc=9;
hn=content-transfer-encoding,content-type,date,feedback-id,from,
message-id,mime-version,subject,to;
Message-Instance: m=1;
h=sha256:kh/8L/vNbXK0/f+bG9wFma7cNcieVfKGRtn1sDgqm6g=:yoHTdfV6CjDeXqsXBx3LC3uSx70Qvjd8MDfusFzgWE4=;
X-ME-Sender: <xms:G5rKaqRXWG9PMf5Z_HHevT2HgLpv9eVK3-5_wdDIVWJd7CxxxR-FgQ>
<xme:G5rKalo6KD3TeO_mApj1Awf9OtuI7iJLQosf1fQfQqwmk-jENlQWzuhKsFH0-10RC
Dm8t_ERGQDhn3yU6wI6_Mf9shOnlfBkt7mqlOW-TothesYrIvTj2gE>
X-ME-Received: <xmr:G5rKai6BNg5DYfo-c7wl9xrECCIpR_YO_cusgiamdeAmdgd0a35gQX1Si-36kkMCUWmWg4V5w3YnDRvY1kSImBA3nIxFqflwVEWxC6hrEITUpW0usLpeZ7gmZg>
X-ME-Proxy-Cause: dmFkZTFMCIrFZ4rY+sux2gQndQvtHE9MPdJ6CgMhw5KDnY3HkWNVgE9CdtFHN8uuzBPFZ2
MVfFfvL5smpxFSql0KpYPA61Id+4aqFEhCTLBvUNEjqr9pkBOmxvjrIa/6XJWCDmaPULKu
ljHh0lhZqloC4W+ARUj/YfIYadDCTkZ3/TP3YyCBcb7Mk5TC2yFfMzyo8WPSxom4nCDBas
gyRRblseCpY/21a0Zy6VoawbhBpcIB1rpb4rLwRvZAt+5lEKDbQV+Q5c5/DNcdQkyQQVNU
EMpw+cZX3knyqZIqdKkAOV37ulO2gLmDps0VhvUuvB9P6Kwm5zpovB+jyVyYB35yfYVibq
ImSoB+7Jxs6lgekSIYz5GB8wULYKAWPlK7y80gJ3/OmBYZohQOMKK0qkkz1d8rMOTUg89x
NtxZkhskguOVP+tA8DWhJBVN3BRYlsjsieL23IRCRSXZvTklfwOj/bC34fDbiu8FPjGNX0
y78jC634SfUrdl/LrRIYcoGp/HNHOXdBvhY8GwY5RG1HAdY6p++2pn44QnrEADMuUtFXtS
iVBNF+y15QUxHgNahDUGnkQ7Cq24Ta1jg2d5xsBoyqqeP8qAKxubOoKuU/Nf/YXYxe9a6n
t1HCEtL0LEw3NymbmSs8jySjL+JKNs5qGKHFPcVXHz2jiX5M7ocYx4cfPxkA
X-ME-Proxy: <xmx:G5rKai1pTKYXR-t7Z_FOgvbrR8hk4mqqQaDddZUnQ8f7VLgzVJW2_Q>
<xmx:G5rKanGhpex6x0FOr-zjvTFnf4fuDG8Pg_e65YrADzgQwHIRON6ncg>
<xmx:G5rKakTEMszGSb5l9N9M9-dUc5tpfoC2mzHL5G04XXDZiMNYiXDQXw>
<xmx:G5rKamCexxUrSEgdnLjoQFZFKOjU-waVCCxzTEdptBYuH15gpTN8CA>
<xmx:HJrKajiFH69b_9ahrjENDZw99ZttTlueg-QFL2vtsTSAkgXYkVvJPd0X>
Feedback-ID: ie93843ea:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
<bug-gnu-emacs@HIDDEN>; Sat, 10 Oct 2026 16:03:39 -0400 (EDT)
From: Stefano Pacifico <github@HIDDEN>
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Subject: 32.0.50; 31.1; Crash in ns_init_colors when NSColorList is not
editable (batch mode / sandboxed)
Message-Id: <2CD306B2-C45C-4A9B-A510-104AFE5B720F@HIDDEN>
Date: Sat, 10 Oct 2026 16:03:29 -0400
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3901.100.1.1.12)
Received-SPF: pass client-ip=202.12.124.151; envelope-from=github@HIDDEN;
helo=fout-b8-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 10 Oct 2026 17:45:44 -0400
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.3 (/)
Severity: normal
Tags: patch
When Emacs is built with NS support (--with-ns), starting Emacs in batch
mode or within an environment where ~/Library/Colors/Emacs.clr is not
writable (such as under a macOS sandbox profile or read-only filesystem)
causes an immediate crash on startup with:
Fatal error 6: Abort trap: 6
Under LLDB/debugger, the uncaught Objective-C exception is:
*** Terminating app due to uncaught exception =
'NSColorListNotEditableException',
reason: '-[NSColorList setColor:forKey:]: color list is not =
editable'
terminating with uncaught exception of type NSException
abort() called
### Root Cause
In commit 0183181ea8b (Bug#80377), `ns_init_colors()` was moved into
`main()` in `src/emacs.c` unconditionally under `#ifdef HAVE_NS` =
whenever
`!dump_mode`:
#ifdef HAVE_NS
if (!dump_mode)
ns_init_colors ();
#endif
This causes two issues:
1. `ns_init_colors` is invoked during batch execution (`emacs --batch`),
attempting to create and populate GUI color palettes in headless =
runs.
2. In `src/nsfns.m`, `ns_init_colors` creates or opens the "Emacs"
NSColorList and iterates over the color map calling
`[cl setColor:... forKey:...]` without verifying whether =
`-[NSColorList isEditable]`
is true. If the file cannot be written to, Cocoa raises an uncaught
`NSColorListNotEditableException`, crashing Emacs.
### Steps to Reproduce
1. Make ~/Library/Colors/Emacs.clr read-only (or run inside a macOS =
sandbox):
touch ~/Library/Colors/Emacs.clr
chmod 444 ~/Library/Colors/Emacs.clr
2. Invoke Emacs in batch mode:
./src/emacs -Q --batch --eval '(message "hello")'
Observed:
Fatal error 6: Abort trap: 6
(Exit code 134)
Expected:
"hello" printed and clean exit (code 0).
### Proposed Fix
1. In `src/emacs.c`, guard `ns_init_colors()` with `!noninteractive` so
batch runs do not touch NS GUI color lists.
2. In `src/nsfns.m`, check `if (![cl isEditable]) return;` before the
mutation loop so sandboxed or read-only runs return cleanly without
crashing.
The change is only 4 lines (paperwork-exempt). The git format-patch is
attached below.
### System Configuration
In GNU Emacs 31.1 (build 3, aarch64-apple-darwin27.0.0, NS =
appkit-2775.10 Version 27.0.1 (Build 26A434))
of 2026-10-10
System Description: macOS Sequoia (Darwin 27.0.0)
Configured using:
'configure --with-gnutls --with-json --with-modules =
--with-native-compilation=3Daot --with-tree-sitter --with-wide-int =
--with-xml2 --with-zlib --with-imagemagick --with-xwidgets =
--with-mailutils --with-ns --without-compress-install'
Configured features:
ACL GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY =
KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS =
TREE_SITTER WEBP XIM XWIDGETS ZLIB
In GNU Emacs 32.0.50 (build 10, aarch64-apple-darwin27.0.0, NS
appkit-2775.10 Version 27.0 (Build 26A428)) of 2026-10-03 built on
raven.home.arpa
Repository revision: 2b21e472c4ca55aeee6088decbb3e963972e1c1b
Repository branch: test-emacs-gpu
Windowing system distributor 'Apple', version 10.3.2775
System Description: macOS 27.0.1
Configured using:
'configure --with-gnutls --with-json --with-modules
--with-native-compilation=3Daot --with-tree-sitter --with-wide-int
--with-xml2 --with-zlib --with-imagemagick --with-xwidgets
--with-mailutils --with-ns --with-gpu --without-compress-install
'CFLAGS=3D-mcpu=3Dnative -march=3Dnative -O2''
Configured features:
ACL GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY
KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM XWIDGETS ZLIB
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Minor modes in effect:
server-mode: t
diff-hl-flydiff-mode: t
global-diff-hl-mode: t
prettify-special-glyphs-mode: t
repeat-mode: t
winner-mode: t
which-key-mode: t
corfu-popupinfo-mode: t
global-corfu-mode: t
marginalia-mode: t
vertico-mode: t
projectile-mode: t
global-xref-mouse-mode: t
xref-mouse-mode: t
persp-mode: t
pixel-scroll-precision-mode: t
delete-selection-mode: t
electric-pair-mode: t
recentf-mode: t
save-place-mode: t
savehist-mode: t
override-global-mode: t
spacious-padding-mode: t
general-override-mode: t
global-evil-collection-unimpaired-mode: t
evil-collection-unimpaired-mode: t
evil-mode: t
evil-local-mode: t
global-auto-revert-mode: t
windmove-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
mouse-shift-adjust-mode: t
global-font-lock-mode: t
font-lock-mode: t
window-divider-mode: t
minibuffer-nonselected-mode: t
minibuffer-regexp-mode: t
buffer-read-only: t
size-indication-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
/Applications/Emacs.app/Contents/Resources/lisp/gnus/gnus-dbus hides =
/Applications/Emacs.app/Contents/Resources/lisp/obsolete/gnus-dbus
Features:
(shadow sort mail-extr emacsbug lisp-mnt evil-collection-message message
yank-media puny rfc822 mml mml-sec evil-collection-epa epa epg rfc6068
epg-config gnus-util time-date mm-decode mm-bodies mm-encode mailabbrev
gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils vertico-sort gpu mtl svg dom
display-line-numbers server diff-hl-show-hunk-inline =
diff-hl-inline-popup
diff-hl-show-hunk diff-hl-flydiff diff evil-collection-diff-hl diff-hl
evil-collection-log-view log-view evil-collection-log-edit log-edit
add-log pcvs-util evil-collection-vc-dir vc-dir ewoc vc vc-dispatcher
evil-collection-diff-mode diff-mode track-changes evil-collection-dired
dired dired-loaddefs xml disp-table repeat winner evil-collection-custom
cus-edit cus-start cus-load treesit evil-collection-which-key which-key
cape corfu-popupinfo corfu-auto evil-collection-corfu corfu orderless
marginalia evil-collection-vertico vertico projectile
evil-collection-bookmark bookmark pp evil-collection-outline noutline
outline evil-collection-xref xref fileloop generator
evil-collection-grep grep evil-collection-compile
compile text-property-search ibuf-ext evil-collection-ibuffer ibuffer
ibuffer-loaddefs perspective ido pixel-scroll delsel elec-pair recentf
tree-widget wid-edit saveplace savehist use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
use-package-core prose spacious-padding
modus-vivendi-tinted-theme modus-themes color general
evil-collection-unimpaired evil-collection-tabulated-list
evil-collection-tab-bar evil-collection-simple evil-collection-replace
evil-collection-process-menu evil-collection-package-menu
evil-collection-kmacro evil-collection-indent evil-collection-help
evil-collection-elisp-mode evil-collection-eldoc evil-collection-comint
calc-ext evil-collection-calc evil-collection-buff-menu evil-collection
evil evil-integration evil-maps evil-commands reveal flyspell ispell
evil-jumps evil-command-window evil-search evil-ex shell pcomplete
evil-types evil-macros evil-repeat evil-states evil-core byte-opt comp
comp-cstr cl-extra help-mode warnings comp-run bytecomp byte-compile
comp-common rx advice evil-common calc calc-loaddefs calc-macs rect
evil-digraphs evil-vars edmacro kmacro=20
comint ansi-osc ansi-color ring finder-inf
agent-shell-autoloads acp-autoloads avy-autoloads cape-autoloads
corfu-autoloads diff-hl-autoloads embark-consult-autoloads
consult-autoloads embark-autoloads evil-collection-autoloads
evil-autoloads forge-autoloads closql-autoloads emacsql-autoloads
general-autoloads ghub-autoloads helpful-autoloads elisp-refs-autoloads
f-autoloads dash-autoloads magit-autorevert compat autorevert filenotify
magit-autoloads magit-section-autoloads marginalia-autoloads
markdown-mode-autoloads modus-themes-autoloads orderless-autoloads
perspective-autoloads projectile-autoloads rainbow-delimiters-autoloads
rg-autoloads rust-mode-autoloads s-autoloads shell-maker-autoloads
spacious-padding-autoloads treepy-autoloads typescript-mode-autoloads
vertico-autoloads vundo-autoloads wgrep-autoloads with-editor-autoloads
llama-autoloads cond-let-autoloads yaml-autoloads yaml-mode-autoloads
nsm pcase derived package browse-url xdg url url-proxy url-privacy =
url-expand
url-methods url-history url-cookie generate-lisp-file url-domsuf
url-util mailcap url-handlers url-parse auth-source icons password-cache
json map url-vars package-activate easy-mmode windmove
cl-seq inline eieio eieio-core cl-macs gv thingatpt project subr-x
cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win 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 xwidget-internal kqueue cocoa ns lcms2 multi-tty
make-network-process tty-child-frames native-compile emacs)
Memory information:
((conses 16 663036 475434) (symbols 48 36187 4) (strings 32 169208 =
25069)
(string-bytes 1 5638675) (vectors 16 47698) (vector-slots 8 593213 =
144438)
(floats 8 502 430) (intervals 56 5438 1401) (buffers 1064 11))
Stefano Pacifico <github@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#82032; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.