From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ben Mezger Newsgroups: gmane.emacs.devel Subject: Re: weird segfault crash Date: Wed, 01 Sep 2021 11:30:41 -0300 Message-ID: References: <156482dc-d4b7-41c4-e169-9c198b8427a4@piermont.com> 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="38400"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.4; emacs 28.0.50 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 16:38:27 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 1mLRNj-0009n0-3d for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 16:38:27 +0200 Original-Received: from localhost ([::1]:36898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLRNh-0005vx-Fc for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 10:38:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLRI6-0001kd-2o for emacs-devel@gnu.org; Wed, 01 Sep 2021 10:32:38 -0400 Original-Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:46037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLRI4-00029q-2F for emacs-devel@gnu.org; Wed, 01 Sep 2021 10:32:37 -0400 Original-Received: by mail-qk1-x72f.google.com with SMTP id a10so3156665qka.12 for ; Wed, 01 Sep 2021 07:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benmezger.nl; s=google; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=wWrLbSdVWxgRKIqwNK+HgVANZmS7YxNoySgypqqvHJU=; b=gE+tvo5PdxjUoCuKK3FuPsN5htRPeFWPym4QC1J59dirIouzMOHLz7OQ2Zu+zI+Rgd /qbm+jUjykn6ftr/svymU1ssHKbZBJo3Iw80C4cLdDheDAMQxP5p3o/uyZPAAacGecFy /2osYS0JdPiLz5gMu9DeG/lYWu4lWCQNqCQ+Ojsu7t3NtkaG02VGs8w4yus6qQuhTmVN oNgnqoqcQV0OpGI0txzDorFYOsoiPtAJugmqWJkAtiYlHw7I1yl1fz/Nfby0p4JW4tmu O+HC+xBx4iDfQgaZHF/lb1iydPi6+9A5wtpMbhUQjM5y5W+eq/yuRl8LY7kNPCPHdXqc jLCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=wWrLbSdVWxgRKIqwNK+HgVANZmS7YxNoySgypqqvHJU=; b=CXxlS8IS63qJG7WQ8KOCJGBk4Y5mXAhLXU7EeFIcYyUPczfNXo8RhEpZ5rncWLzM9o rcqiuf3MbAOcvl/Lyz7yRJExv2uJorMkFdoEW20V6p2y0OBF9mSyiS2uA2ptcRawCZQj RgNvvCLFlotpLjB38TmaDPUJa1RxeITT34Jxo0s23jp/lKDR2hDUmSkmzlNXdg/d9rW6 s2u+lh9VIiC6Pt6aUmyt32evQdMQABCOYA2rJkMMZKnvEdDvid9fk+dmapDh7CCM8PI8 VmR4CIOOdweAIEv0LVHfQFxlV1ex6Q6fCITdTkzNhhsNJ/8p71GFxsADvPm5kbrx3kCX R3Ww== X-Gm-Message-State: AOAM530SeTr1B/sYOwHR63szDtJZhpEi75P/0W9sm6YzRejuzQY1o1RB 1tzaAuT18GOUAUNjdf3NEgwmJBGUtgyEundT X-Google-Smtp-Source: ABdhPJxNcKw5pw6lQwTeGHVkzgH+Bjc+raemxvzdF8shwNKhgftX40oxaZO6rlIjbWtJPL7Mpcypgw== X-Received: by 2002:a37:781:: with SMTP id 123mr8400016qkh.193.1630506753108; Wed, 01 Sep 2021 07:32:33 -0700 (PDT) Original-Received: from localhost ([2804:14d:baa0:8687:1da1:fe28:4a83:8f3c]) by smtp.gmail.com with ESMTPSA id s10sm83271qko.134.2021.09.01.07.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 07:32:32 -0700 (PDT) In-reply-to: <156482dc-d4b7-41c4-e169-9c198b8427a4@piermont.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=me@benmezger.nl; helo=mail-qk1-x72f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:273663 Archived-At: Are you able to run with lldb --file /path/to/emacs/bin and see the traceback with bt? I am unable to test this out atm. "Perry E. Metzger" writes: > Howdy! While playing with my current project I discovered the following c= rash. > > Enter this into *scratch* and eval it, then hit F19. At least on master u= nder > MacOS, emacs will crash with a segmentation fault. > > (setq foo '(hi)) > > (define-key key-translation-map (kbd "") > =C2=A0 (lambda (n) > =C2=A0=C2=A0=C2=A0 (interactive "p") > =C2=A0=C2=A0=C2=A0 (setq foo (append foo '(there))))) > > Note that if you replace the last form with (setq foo nil), the crash doe= s not > happen. > > I'm kind of mystified by this, and not sure how to debug it. > > > Perry -- Kind regards, Met een vriendelijke groet, Atenciosamente, Ben Mezger https://seds.nl https://github.com/benmezger