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 12:27:33 +0100 Message-ID: References: <87jzbbke6u.fsf@protonmail.com> <865xmtaeh9.fsf@gnu.org> <86r05h8s9d.fsf@gnu.org> <87a5c5cxso.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15175"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Paul Eggert , 75322@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 12:28:17 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 1tUOnp-0003oE-Kr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 12:28:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUOnb-0001Ro-Gp; Sun, 05 Jan 2025 06:28: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 1tUOna-0001Ra-Am for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 06:28: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 1tUOna-0004F0-0m for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 06:28: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=1sYlm6LGu0RInBt8qOtU36rnahVethxSqkFJGcmRMXQ=; b=H4TZ+cDegH3ZIU7U4NXxldkpjX4vAuk6pu6/A0XbPjTwM2VchT9JNSTbhL2QLzrZjJ/qj6n6NYe/Mg0XpwHK+ncoTnRK3joajD+mcG+47OU9Fh24Arwffa/z5dlJBIKascIXVi2wnHnyI3XJvEUTpSAkAZkTlXQKwvfsZ1U418FWTUEqx2CM74qBYHOqk+jSJLLVBJ19X7aAeFTqzdF3iRHVkQP8JMx2eFlK9DiNWTJlJ0GAFy2NY7Ak4uboEwAKM/HS/v/azQCinIT4wJBnTsxy2UWJjrxiximsDbgWtyNgh8jD6wMbdvavqnZfUFxZKVFgKVW+vlglwmg/My16Yw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUOnZ-0004vH-R0 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 06:28: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 11:28: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.173607646318887 (code B ref 75322); Sun, 05 Jan 2025 11:28:01 +0000 Original-Received: (at 75322) by debbugs.gnu.org; 5 Jan 2025 11:27:43 +0000 Original-Received: from localhost ([127.0.0.1]:60144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUOnH-0004uZ-5w for submit@debbugs.gnu.org; Sun, 05 Jan 2025 06:27:43 -0500 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:50299) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUOnF-0004uJ-RA for 75322@debbugs.gnu.org; Sun, 05 Jan 2025 06:27:42 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-38a25d4b9d4so4873533f8f.0 for <75322@debbugs.gnu.org>; Sun, 05 Jan 2025 03:27:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736076455; x=1736681255; darn=debbugs.gnu.org; h=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=1sYlm6LGu0RInBt8qOtU36rnahVethxSqkFJGcmRMXQ=; b=MHXeLq4jsdtSvFF8adKxObHCH5n5DS+z+q48RSnHlyRPRIoLsqRzWSe1VyOwWpMtfH 1oohKuHQ+bOtWTQ/WaGSFzAEzhP0BbrRDVzev7Qizw10usqJX5uuLiIPYZHTP4abcTJ6 W8a3wr+15Buoq1fhoU55BX7O1KQu8Xjlkd+iGTiaf+Z9pPOT6med1QmpEnehziT69omA e3BFdM9PrjGJLM+qemyqyq5rnStTGR5Pxj7sZLY65XMX6Gc2CR5KSCS/PelF5px46WyS OClMAGnuUACR4HGdTONY+xtQDpTZ690qvfl3qLmEuRAgPVjeCrsMN6KLsEcw2jikOCn1 rI6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736076455; x=1736681255; h=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=1sYlm6LGu0RInBt8qOtU36rnahVethxSqkFJGcmRMXQ=; b=CHoCzaUDwG0fLh8FFe+W4Wy3u6Q4t/gHL7i1YlwHQERrX7XU7SrJgAMz3kB82P4XoO 47d3ubGrO1OOz0oIruaDQpZo2i9N7LVXC1Ux5WUatOo8tvpwpd2f3djtgdHnhBmS6vKj NaQUFI4Jmgj2Omq6Whi2erBa8u8aOaioFfvJ9Vs8qxqatabcTfikqLYzoRWNi8Iv2OD3 02TSnzFvTLTmiBb5dlUXSBnWbhSDlmFNIEKwf7OxRd/7IDCFhOYPOVe+EYuquePWMcro 8/OQCHZIxUfwZa/CTdc5QtqxnbwM2cXyo4SMnORTsyi0td2JrWKvnLdKjLtFwf4L/SjT +ZAA== X-Forwarded-Encrypted: i=1; AJvYcCVFO3w0cacy0+lok+29k8NJ4wk6vth2hkjD9GKMxQM4HHL50v43iVjupGhsEzQNtdRLlj4/Bw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yzrbgb4fHmvZogKqL5shvyamxg/vFAGrVAxWfV53kkZ3fj5QcQo mj0AojpVKmZ0lWTRij0XQ34PKvJO1x40UAmukigsvOI0UYK4WDzZ5Hr3qA== X-Gm-Gg: ASbGncuqe2BEx0AoMLUa506w02UiMIVTRtgE78WDrKhjf9LMJ/ttoJQHXZaflKBQhR2 BBQQb73aopLw7yy36uJWw3YSTJkGOq3dd/tBrBVNl+NijdSnBfKdSfihmjeEWh4wAYXAwoCyh75 6AAoNfSnYtaMGasd/xNoH1HHUIUhWW61L44tWbny22Zjq5u4gnnfrA7moxQoUWJ6WAnbwy/zS6j ao6MC89FJqBpcp54OS2D8EfGzzowioZYvZtxRap0AkMKlXM8JIdbcp2uXdQOHpXV6pG6EuTVWME bQGIU39wfpjvWABX6T4wgPWsbjcQX/8ZZ2SScyw64oPLsyMsdSe0mzREmFN0Zu7Lww== X-Google-Smtp-Source: AGHT+IHCHOsTEJNMUR+CHdz1Mc2gqgYi4JkOD0w28Nh7tHFzJdRBiUxytRaRuaoV9JcEKUEs0285cA== X-Received: by 2002:adf:890a:0:b0:38a:615b:9ec0 with SMTP id ffacd0b85a97d-38a615b9ff8mr10827530f8f.54.1736076454869; Sun, 05 Jan 2025 03:27:34 -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-38a1c89e1c0sm46122366f8f.77.2025.01.05.03.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2025 03:27:34 -0800 (PST) In-Reply-To: <87a5c5cxso.fsf@protonmail.com> (Pip Cet's message of "Sun, 05 Jan 2025 11:21:17 +0000") 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:298540 Archived-At: Pip Cet writes: > However, I don't fully understand which additional protections > traditional GC offers: is it always unsafe to use an SDATA obtained > before a GC run after the GC run completes, or is there a more > complicated set of rules? There is this, which is used in the byte interpreter, IIRC, as sort of a workaround for the problem #ifndef HAVE_MPS /* Pin a unibyte string in place so that it won't move during GC. */ void pin_string (Lisp_Object string) {