From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#75322: SAFE_ALLOCA assumed to root Lisp_Objects/SSDATA(string) Date: Sat, 04 Jan 2025 20:24:58 +0100 Message-ID: References: <87jzbbke6u.fsf@protonmail.com> <86sepzf4h3.fsf@gnu.org> <87a5c6j0qn.fsf@protonmail.com> <86jzbad735.fsf@gnu.org> <877c7aha9n.fsf@protonmail.com> <86ttaebfwq.fsf@gnu.org> <86frlybdjv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31341"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: pipcet@protonmail.com, 75322@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 20:26:25 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tU9my-000817-Tg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 20:26:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU9mj-0007sg-4O; Sat, 04 Jan 2025 14:26:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU9mf-0007rb-2J for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:26:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU9mc-0002L0-NN for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:26:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=KJ2w4FvUzd2vzEqjeKV4eZGIezFTApQqAFYF6RUxqZY=; b=IIKh+/vywYzqO9wU8Ecx9L0XTn4txpU2PyxDb8zJw1iiS3z/d5j3Af96yiYkhBmHFSufD2zUXbSMeNDHOXWFOBpbe379SMVyrRrG4BKIcQuINFt0PDms/l5oZaEqe8ougixVJObrtfWIB74HqsDl04kEKIDsKxEiIb3n+ijKjQB0Alq6+7luAxIJlNbeXttmLrk6aXFk87TSUJ0BOOY5luhIfII5kS7WlgPSrbtLimEsD5VS2H9muozNbANk70EtETCmOqjbP/Pk6825Nk+jhcls5CfDt+nwGcHdMkqcKY0XJrAK4khKGEc5AW5hFsQuGV/bHR1A7uXYsjKv2Wl5EA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU9mc-0000Ne-Hj for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75322 X-GNU-PR-Package: emacs Original-Received: via spool by 75322-submit@debbugs.gnu.org id=B75322.17360187051077 (code B ref 75322); Sat, 04 Jan 2025 19:26:02 +0000 Original-Received: (at 75322) by debbugs.gnu.org; 4 Jan 2025 19:25:05 +0000 Original-Received: from localhost ([127.0.0.1]:57432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU9lg-0000H2-UB for submit@debbugs.gnu.org; Sat, 04 Jan 2025 14:25:05 -0500 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:44461) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tU9le-0000F9-Ag for 75322@debbugs.gnu.org; Sat, 04 Jan 2025 14:25:03 -0500 Original-Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-43618283d48so95466555e9.1 for <75322@debbugs.gnu.org>; Sat, 04 Jan 2025 11:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736018701; x=1736623501; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KJ2w4FvUzd2vzEqjeKV4eZGIezFTApQqAFYF6RUxqZY=; b=k5+4OZiOstTn/oRJZB/v69+abcEaF4NoyV8aFjUDpGnB+AOj9nKRSw1VkRM9M5Rabq +rPZA9sjON74T+3GDRfVH2hCl7dZYzKpFW2scGM9j2XbW2YA5hacwtWuRhl7gAMk3we5 FhfvoNrH4F3Q3bqv24Mg+B/CBYceV7aTFxM4oQGjYv8BXUQIy6NNxxU74RC4BUWWVDAD Q6gbtCUzuydsdJl/8D8diVaw1VrfbKlzli1GkWBZG9MWE4qmvBnjOMPfMfL3PmDwqriN +ojFFSI0aQfa7+yuxWSOjOFM/7MqoD+L6lQLU9Az7Sw7y3OzfSkh5KxFWe59O6a2OyEd dEYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736018701; x=1736623501; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KJ2w4FvUzd2vzEqjeKV4eZGIezFTApQqAFYF6RUxqZY=; b=CRxf/K1R9o0l2cZD2A3xBXDTEPP1pphIuO8ZAZpLspv7YMlhwSIZ00YS18jUvGAdoT 4izxzYthFxTEkd3PFwKHcvB7tOQunqAgQnB3jle7qlloAYQeTNo44FCLNhL5ngrDASB8 857NsvnQYWRb0NxqEenYMzX6QyaWU1j+mHRxYTCmP6PkvFP8v1ub0WE8XtjX1sCs83m0 QsoMYlJ+h7Oz0ORgNTK6g4yhG1964V1+hngSVEQFsPV2Z5thzydtr4d/cvFLH/UXBM0y H9AJEUAfCFel4ZEo3iO5yVBV5gUvFpFjXw6vEF9RwTvjkyn2yyft5NTZmy+rIJpZFwIN tFEA== X-Forwarded-Encrypted: i=1; AJvYcCU6qPBR7hSi2zESMb2qzAjIj3jk4O1j3CJHZXF8l123rIV0Erf7HdnPKjl2rX8YV02MyXwoaQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw36db0JsFvENxsV7UgywD0cZ0eukOQ8NAfd8T3edakJcqo/giH sPHAdX9mH2wAbYxsse+02bitgE/Vm3Haht0gsL5G898h4jmpEZiV71s5Ow== X-Gm-Gg: ASbGnct1JtTVYfJKg4Qxi+XjEsvgwLyJBCkK5Ht7PamAL0cBS4oky3Evr3gQ4bWBHh4 s2N2SmnIUkvRqVoztqe2mE6lo5qgJMz2V+mcUUPV9sO/i05yDqeqzy8/9mSoOskWjofSnFXr/2G Pr0cTcWgkHuQhmZH64DpBCNp4PjqIlJVof4aiHpwW1pBfhCI/jfF/NKfVBNbAqUM3qy4hsUqv94 /rd4j6DcOGAiQ0uDtNrHN/HeE1gYf5x5Mgi3vN5I3VrhlXkRFusu8HcZyxAB0BhAwn5D1Tr6BCZ IfnNU/c4quIaVct9kBK17Ft/9ukVWBjXOyWzlP0zoAJv6PxMiPsTbtLm7QghDEV1aA== X-Google-Smtp-Source: AGHT+IE8TmSmGWty/5ayrE10LTdqQNj+OM+fickZ4XxAeBAmqFFLEhFd+8OppUzmffG21sf+UfWC1Q== X-Received: by 2002:a05:600c:35d2:b0:434:a929:42bb with SMTP id 5b1f17b1804b1-436686464cemr486321995e9.18.1736018700445; Sat, 04 Jan 2025 11:25:00 -0800 (PST) Original-Received: from pro2 (p200300e0b73c9f00c50ae305bf989514.dip0.t-ipconnect.de. [2003:e0:b73c:9f00:c50a:e305:bf98:9514]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c89e43dsm44498906f8f.70.2025.01.04.11.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 11:25:00 -0800 (PST) In-Reply-To: <86frlybdjv.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 21:10:28 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298458 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: pipcet@protonmail.com, 75322@debbugs.gnu.org >> Date: Sat, 04 Jan 2025 19:35:04 +0100 >>=20 >> Eli Zaretskii writes: >>=20 >> > We are still arguing whether GC moves Lisp strings and what exactly >> > does that mean. We still don't understand well enough what, if >> > anything, are the problems with SAFE_ALLOCA and its ilk.=20 >>=20 >> I can't believe you say that. We talked about why xmalloc'd memory >> has to be a root if it contains references. SAFE_NALLOCA uses xnmalloc. >> Safe_ALLOCA_LISP does things differently. > > Sorry, I don't have a clear idea what that means. When can we use > SAFE_NALLOCA and friends? when can we or must we use SAFE_ALLOCA_LISP? > What are the considerations? etc. etc. I tried to explain that in igc.org, e.g. what roots are, or malloc in one section. That's the best I can come up with.