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 15:13:06 +0100 Message-ID: References: <87jzbbke6u.fsf@protonmail.com> <86sepzf4h3.fsf@gnu.org> <87a5c6j0qn.fsf@protonmail.com> <86jzbad735.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9910"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , 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 15:14:12 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 1tU4uq-0002SG-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 15:14:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU4uk-0003Hq-Ot; Sat, 04 Jan 2025 09:14:06 -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 1tU4uh-0003Ec-7h for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:14:03 -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 1tU4ug-0000lZ-Jh for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:14:03 -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=qy1DdBEFUyO9Jzq2PFkc2CSOm24oywR6Vl7Y471zDd0=; b=r1lZgjLnueHhdINsrG/72OWUa/aAJ/X6YLSKt4jtyiN7zbCXwmM3w321IXb/JyEXn3aKHGhyx268Be7FYeArFm5ZfCo2YxBjS25mAjn5eKmn/mR5tf/V3Q+SihqqxVaPApM6gAMF1MsbpQGAvV3yQ5qA0BhFswU12rwjR0+CEFam5RbzKKhmhTmGKkBqGELd/34UO5mNQ7++p7M/sU+U6U9omld1tneyZ0wPv3fr+vxH3CqK5mvz7x+QZ2lJlcsmz+HUIKZZ9cxPPizeEFM8p4gUyutR8kW7g0eNA9ccPa2cua7kHhNKwKQXswU8TvNHLE0FJwPrkC50fdMWVEGkCA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU4ug-0001iT-BB for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:14: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 14:14: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.17359999986536 (code B ref 75322); Sat, 04 Jan 2025 14:14:02 +0000 Original-Received: (at 75322) by debbugs.gnu.org; 4 Jan 2025 14:13:18 +0000 Original-Received: from localhost ([127.0.0.1]:54019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU4tx-0001hL-DY for submit@debbugs.gnu.org; Sat, 04 Jan 2025 09:13:18 -0500 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:55715) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tU4tq-0001h8-5U for 75322@debbugs.gnu.org; Sat, 04 Jan 2025 09:13:11 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4361dc6322fso86227775e9.3 for <75322@debbugs.gnu.org>; Sat, 04 Jan 2025 06:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735999988; x=1736604788; 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=qy1DdBEFUyO9Jzq2PFkc2CSOm24oywR6Vl7Y471zDd0=; b=S09vbKuLy5IHrVq/Ki409FKRDWwnBIT0gflBaX9nqpo2uZYSNSz8Bfwza3RrSjsJAk 4F00smOsOxoU/YlzyaqAQbvOhyw4kJMBnrKEWY3Xt8YNUKh+k7xsrYbIvWi/MsSBUn// a9nGy3GluwKzGLcwcEezw08W0rUYFGNfQgzUYLvw+5YhD3ECTqFj6TxHu80vxlMaFVtP aqjUh/q/qIgV5GXZQPOVxVJAultf02jcdQVVBPseaCkf/RrkAaHHUMxKiyxBNf36F3o0 6J0vAI1Qi5jA7DvWEXyXkx24v6obkLp7vp/opt7r++ztMfXV0n3wrfnKYY0v0rGowUFr MbQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735999988; x=1736604788; 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=qy1DdBEFUyO9Jzq2PFkc2CSOm24oywR6Vl7Y471zDd0=; b=ad+Ap1cz11ARtWXndWb0jKL9zJVpemW1mpS1+6+iYoMOLeu2W8fDliBUbALbZJ6tVO Fy7QY2s1haBVqiJmjVpO6Cxkw6qSk7zWHbrH/luwZamrOFp0fzZqDs62dUbMDyOcxjdi XQ5xLAX+5sHEP75mSWHmFkZTqc0+JyzvnDdjfis66flLgA2UzWWyTLlOaAsFYdlq7tVR Zf+nYCD0L3JUAQPK00tOSZIDPHyn2oQPljw93Uwh/QZzFKL4s2Q4lS11J2vqHHZgOgPs 9M1QTMuHpUJEDQrhU7859utM2Bpp2CWcKczB3VaNpdxDZRnOD3y1qTvxtEfo+Rr7AMuP vqBw== X-Forwarded-Encrypted: i=1; AJvYcCUuH1oWYqrYZ+CFHXwnSIlJAht2Wm3+ROx7SQDRnMGYYa7RgXaxodtGR+ZvKCRye95ZOyfAAg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxMHgdhWT3qoBUKPyUs8eXzaMvuQ39lc1KmGqgLzW7sQ+Ngcey2 8Ho8d4AIyUw/k7GSRBfecjujYKKcn4Ai5AZUeJIG8CngyC7rKhrmFLCG1Q== X-Gm-Gg: ASbGncudzvYg/MRC6gGiCB2kfAAJqyiozraXpa2WXKV20er60KcabH7K134npXXMXTE UUbUhlXOz30mRpdPMVsiRZGjdKVrg0evzL41q7apl0zMZ3pDPHR5a+8p9HdjH9aAoy8n02i4ISY aKha5gMSlajkz4nwp9n9L4YcWsPTaugbj19Nla/Fb4XrB7lfrcbjkddCC/83igjVbyPouL9jG91 Saa5jXMvR/A9gKhIPsLXya+0qqebAEj/9fWB+6TCLQfnasllBiimqAkfF2N7RD4K61KAfuxWsns 9uWZvwJmGU1qaQ5fmEWY6pjvyYgaveWzcRfSoTLQwJfkCcI2TLoyo99GCR1XAdKMNw== X-Google-Smtp-Source: AGHT+IEkqo1OkKJKV6HZt7Mxyec5DLVwi9uWjDOr4H+FDt6YJ9zr6aL6nyRThWuwA/T3sAk1dXfw4g== X-Received: by 2002:a05:6000:2c5:b0:385:f195:27f with SMTP id ffacd0b85a97d-38a221f339emr47119008f8f.5.1735999988282; Sat, 04 Jan 2025 06:13:08 -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-38a1c828a8dsm43557279f8f.2.2025.01.04.06.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 06:13:07 -0800 (PST) In-Reply-To: <86jzbad735.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 15:47:10 +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:298410 Archived-At: Eli Zaretskii writes: >> IIUC, Gerd explained that the old GC can still move the string *data* >> used in that structure, even if the string metadata stays in place. > > If string data is moved, then accessing the old pointer would trigger > the barrier and MPS will do its thing, not? > > To clarify, I was trying to understand whether the error message > reported by Ihor in another thread could have happened because of GC > in this are of the code. So, Ihor saw something in igc. In that case, the string _data_ will never a barrier on it, because it's leaf data, i.e. data that doesn't contain references, and that is allocated from an AMCZ pool. If that helps, don't know.