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: Sun, 05 Jan 2025 20:02:22 +0100 Message-ID: References: <87jzbbke6u.fsf@protonmail.com> <86sepx8sth.fsf@gnu.org> <86h66d8pnl.fsf@gnu.org> <86ed1h8nji.fsf@gnu.org> <86o70l6ucl.fsf@gnu.org> <86ldvp6r1e.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="34996"; 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 Sun Jan 05 20:03:21 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 1tUVuD-0008uL-AG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 20:03:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUVtv-00028O-Hk; Sun, 05 Jan 2025 14:03:03 -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 1tUVtu-00028D-JN for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:03:02 -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 1tUVtt-0005H4-W7 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:03:02 -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=8/2wdGAu3AWNdB6Aj6MZxTzAUYdtcwCydhAYkHc8OIs=; b=I7mwVLuLq4bzaH7JkqimvWkmC8cbBYS2bqgIWMzAi6KKWmykh447YeRRq7sbeCAFzFUNtrc6hLLaldGmsbJeB51cN0aLDIIl4zEzR9Ji85857HTXLu1JV+DkhyaAhhsFvGj2Rmf8p0gaCQfmHZh+bQ0C3UELq+p5OMchHO89elqo6aIc4T1pbOzGWICGPczUf1okvh9GCIaTGaGCXzJsulY2QuJSRscW97jpCJ1NCzf/CxQAxuKbe7/sbxzJujXLrFnQuUP78ulWNk7Ih/1T+nuPomte19H6nn5Pugd8q3cCEiMfkqofA1RvyrJTX8Ouk/B8cwXppdUWLQAA7136Hw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUVtt-0003Z4-R9 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 14:03:01 -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: Sun, 05 Jan 2025 19:03:01 +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.173610374813647 (code B ref 75322); Sun, 05 Jan 2025 19:03:01 +0000 Original-Received: (at 75322) by debbugs.gnu.org; 5 Jan 2025 19:02:28 +0000 Original-Received: from localhost ([127.0.0.1]:35242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUVtM-0003Y2-3Y for submit@debbugs.gnu.org; Sun, 05 Jan 2025 14:02:28 -0500 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:58723) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUVtJ-0003Xs-Ir for 75322@debbugs.gnu.org; Sun, 05 Jan 2025 14:02:26 -0500 Original-Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4362bae4d7dso98090595e9.1 for <75322@debbugs.gnu.org>; Sun, 05 Jan 2025 11:02:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736103744; x=1736708544; 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=8/2wdGAu3AWNdB6Aj6MZxTzAUYdtcwCydhAYkHc8OIs=; b=mDwbdRhHSDy/J+0ALPWeMNs/mt4PODnoMCylxHP+3fPPyKrTHHGzqn4l5STIr1FPB1 fR0N5+7IyYvb6edp1/GU/vHFQlBzSpgt672GzsNLay3jd0KccgCxx1t1w+z+aERqr6WR 0Xv1bIE8QnN8/nrXrLCHbApqijR3OIVF1BjANm0wZEbMOoHL8CQadlZAct6pSytDsNau 0YRjuwmQwa/11anCOlttN/pvPqZaPXp4BPNxzSxf4Y371gLj+ko4gUQuh4YOoPraA/Yo DeGNqyf8OYq4u7/95nd9Dc/Qeo6fDe7UdLM26zSm2lG60eA4QAZrg0cSJhjKDaPeHs4Y Ag8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736103744; x=1736708544; 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=8/2wdGAu3AWNdB6Aj6MZxTzAUYdtcwCydhAYkHc8OIs=; b=eNVhhqEfDPZ35cr34zZHAU1kLLie39j9mMeR3ijbxTQeOjBUSGYuQ9UAjUvqfAoGNn vXpdmW9D1mRbeH1CONl3+f30lQ4ZzTnyMvxPgINvWi9E+ALAEV9U0KNSGRTDWY6CK9Fc negmEn6SKLgdLbOvn8wqVgNkEe8HHas1VTtLqG5qneLX8Z144Fzo1iltyh+vWTP6ktUJ qKvEzkRK77NAM3d7VKGO9za+e64DZMz5i1J/TxK/0ZFQwgJIz3O/lN8pmJzWZFvY6NrG Ya0f6WeDQOjH9+sx0jgvmnFbvFf2c6UttQqsoToyVJ0hDtGYnvaUE34oDu7fs2w6OQwJ UCBg== X-Forwarded-Encrypted: i=1; AJvYcCUVA1ONh8VdZOzvU0Vdoras3Q/LeYjvA9+Ab5F0OmuHPzqy1M3Kmvg0EgvF/uQUiZG8Y294aA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YysoFWkYRXir8hYJdYEAzgNlgsGAhaGZTwSwsVCZQ8rUkAJ0hhX K24qvu3IewevXvNzBK8ZPWUBh9HdIgRntx8jXbC9XG8ODFjjw7KArxKxmQ== X-Gm-Gg: ASbGncu70cqnydgGNtt6SCs1Mu7qf4vY+7FjPjpTkvLgT4ernNVnfJ6ZbBax9jr9gpT zZopb72zagriiSl+WHwcRkanAZEcrz7QREYDlg9FsF1TRhBa11rlk3HQ4mWDA/NfDh18VcoHXP1 e/UBqZK8pdwQ5xNZqXY5+2gqHNqXNEQ/5PZ3mmhVAXPyDEadXwkDiFLIBkwuF8cLXClUMA9XT2d pld2VOJCZUGdYabkcxhI23MM0/pnT/dHQNP7j7Kku4AzDNYLnXl/+eYxVGF6fS8DxngqiDdtTww T46b/35a6rHaeX5W3WbtiDvnFO2OoJehOS3HkLuk5dNx+kCfZIxfYcARex7Y9Obcfg== X-Google-Smtp-Source: AGHT+IFB4uhSH8T6eK6Q0aNDMhaZkMKizxIc7iT8JXaQBLbjiX9gPVAdXsF0/W4HWn0gPF1NwQSC7A== X-Received: by 2002:a5d:5f4a:0:b0:385:fdc2:1808 with SMTP id ffacd0b85a97d-38a223f7172mr51071288f8f.40.1736103743332; Sun, 05 Jan 2025 11:02:23 -0800 (PST) Original-Received: from pro2 (p200300e0b747500078d774d9859911e7.dip0.t-ipconnect.de. [2003:e0:b747:5000:78d7:74d9:8599:11e7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c8475cesm45811436f8f.57.2025.01.05.11.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2025 11:02:22 -0800 (PST) In-Reply-To: <86ldvp6r1e.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Jan 2025 20:42:37 +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:298594 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: pipcet@protonmail.com, 75322@debbugs.gnu.org >> Date: Sun, 05 Jan 2025 18:49:56 +0100 >>=20 >> Eli Zaretskii writes: >>=20 >> > This surprises me because on the master branch SAFE_ALLOCA_LISP either >> > calls alloca or xzalloc. So I don't see why SAFE_ALLOCA_LISP would be >> > safer in the old GC than SAFE_NALLOCA. It's only on the igc branch >> > that you made SAFE_ALLOCA_LISP make a Lisp vector. >> > But this is a tangent from my POV. I would like to discuss the new >> > GC, not the old one. >> > >>=20 >> This in SAFE_ALLOCA_LISP_EXTRA >>=20 >> (buf) =3D xzalloc (alloca_nbytes); \ >> record_unwind_protect_array (buf, nelt); \ >>=20 >> makes a specpdl entry, which makes mark_specpdl do this: >>=20 >> case SPECPDL_UNWIND_ARRAY: >> mark_objects (pdl->unwind_array.array, pdl->unwind_array.nelts); >> break; > > Thanks. I guess it's supposed to be "common knowledge" that > record_unwind_protect_* indirectly causes the objects to be marked... > > But then why don't we set the .mark member in SAFE_NALLOCA or some > variant thereof? Questions upon questions. I have no idea. It seems to be relatively new, i.e. younger than 20 years :-).