From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.bugs Subject: bug#62009: 29.0.60; Emacs crashes on setf symbol-name Date: Tue, 7 Mar 2023 18:08:43 +0100 Message-ID: <9fcf05e8-506c-6566-e214-2ecf3194b85e@daniel-mendler.de> References: <87o7p5of4n.fsf@daniel-mendler.de> <871qm01s6n.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2715"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , 62009@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 07 18:09:20 2023 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 1pZaoR-0000X0-JL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Mar 2023 18:09:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZaoF-0004KS-4w; Tue, 07 Mar 2023 12:09:07 -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 1pZaoC-0004Jv-0m for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 12:09:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZaoA-0005HD-IF for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 12:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZao9-0003os-Ux for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 12:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2023 17:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62009 X-GNU-PR-Package: emacs Original-Received: via spool by 62009-submit@debbugs.gnu.org id=B62009.167820893614671 (code B ref 62009); Tue, 07 Mar 2023 17:09:01 +0000 Original-Received: (at 62009) by debbugs.gnu.org; 7 Mar 2023 17:08:56 +0000 Original-Received: from localhost ([127.0.0.1]:47103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZao3-0003oZ-K1 for submit@debbugs.gnu.org; Tue, 07 Mar 2023 12:08:55 -0500 Original-Received: from server.qxqx.de ([178.63.65.180]:39263 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZao1-0003oJ-46 for 62009@debbugs.gnu.org; Tue, 07 Mar 2023 12:08:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qCoOtqwmp4RuJYbRhDgajB3nwcD4vQq3RMKaoiSWQNw=; b=e7yF3kPhfJB1nYcsg8jYncG4bY G1n02y6Uqu1lS2tgQss19rzedJEYHsGX3dBsh2yFMEHtXD0FtxWd/UsPNBIdR7XT8XXlCxNc8g5Zz igZeCdk+KLHiPcVRT/bOYu74SX/zop6rC9e4oD6JohhYL6qaG8L/dgboQHwvLpPLZlr8=; Content-Language: en-US In-Reply-To: <871qm01s6n.fsf@web.de> 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:257489 Archived-At: On 3/7/23 16:45, Michael Heerdegen wrote: > Daniel Mendler writes: > >> Execute the following in the scratch buffer: >> >> (setf (aref (symbol-name 'car) 1) ?o) >> >> Emacs crashes with a segmentation fault. Is this a well-known issue? I >> could reproduce the problem on Emacs 27 and 29. Should there be some >> mechanism to protect the strings of symbols? > > Maybe the outcome was something like that we can't protect everybody in > every case from shooting in the own foot, I don't recall. Maybe it would be possible to introduce a flag which marks strings as "frozen"? Then we could ensure that no mutations of such frozen string happen. Freezing strings (vectors or pairs) may be generally useful beyond preventing such issues. Daniel