From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: weird segfault crash Date: Wed, 01 Sep 2021 19:30:59 +0300 Message-ID: <83tuj4p8ak.fsf@gnu.org> References: <156482dc-d4b7-41c4-e169-9c198b8427a4@piermont.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16496"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 01 18:47:11 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mLTOI-00041f-9s for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 18:47:10 +0200 Original-Received: from localhost ([::1]:33102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLTOH-0007nV-3E for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 12:47:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLT8n-0000fy-JG for emacs-devel@gnu.org; Wed, 01 Sep 2021 12:31:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56580) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLT8n-0004S3-4W; Wed, 01 Sep 2021 12:31:09 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1544 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLT8i-0008Ts-7Q; Wed, 01 Sep 2021 12:31:08 -0400 In-Reply-To: <156482dc-d4b7-41c4-e169-9c198b8427a4@piermont.com> (perry@piermont.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:273670 Archived-At: > Date: Wed, 1 Sep 2021 10:07:58 -0400 > From: "Perry E. Metzger" > > Enter this into *scratch* and eval it, then hit F19. At least on master > under MacOS, emacs will crash with a segmentation fault. > > (setq foo '(hi)) > > (define-key key-translation-map (kbd "") >   (lambda (n) >     (interactive "p") >     (setq foo (append foo '(there))))) > > Note that if you replace the last form with (setq foo nil), the crash > does not happen. > > I'm kind of mystified by this, and not sure how to debug it. We were trying to print a cons cell as if it were a symbol. Should be fixed now.