From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#39962: 27.0.90; Crash in Emacs 27.0.90 Date: Wed, 11 Mar 2020 15:43:18 +0000 Message-ID: References: <24162.58107.725366.668639@cochabamba.vanoostrum.org> <329e58b1-6255-311e-bdd8-b6f5b3d5208f@cs.ucla.edu> <22225b66-44f6-d132-3036-92181d53c28d@cs.ucla.edu> <89A83582-358F-43DC-B96E-04EE9D655D5F@vanoostrum.org> <63b88e2d-9888-f3ce-a4b0-fcf344e803e5@cs.ucla.edu> <83d09lbgk5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000008f57d805a0961ae3" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16407"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39962@debbugs.gnu.org, Paul Eggert To: Pieter van Oostrum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 11 16:52:58 2020 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 1jC3fF-000435-5a for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Mar 2020 16:52:57 +0100 Original-Received: from localhost ([::1]:54690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC3fE-0004LK-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Mar 2020 11:52:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60178) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC3Xc-00077C-Rj for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 11:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC3Xb-0008PJ-My for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 11:45:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49408) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jC3Xb-0008OB-I7 for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 11:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jC3Xa-0002am-FE for bug-gnu-emacs@gnu.org; Wed, 11 Mar 2020 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Mar 2020 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39962 X-GNU-PR-Package: emacs Original-Received: via spool by 39962-submit@debbugs.gnu.org id=B39962.15839414449887 (code B ref 39962); Wed, 11 Mar 2020 15:45:02 +0000 Original-Received: (at 39962) by debbugs.gnu.org; 11 Mar 2020 15:44:04 +0000 Original-Received: from localhost ([127.0.0.1]:55381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC3Wd-0002ZP-Kx for submit@debbugs.gnu.org; Wed, 11 Mar 2020 11:44:03 -0400 Original-Received: from mail-ot1-f44.google.com ([209.85.210.44]:46032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC3Wc-0002Ym-FR for 39962@debbugs.gnu.org; Wed, 11 Mar 2020 11:44:03 -0400 Original-Received: by mail-ot1-f44.google.com with SMTP id f21so2422779otp.12 for <39962@debbugs.gnu.org>; Wed, 11 Mar 2020 08:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zryC2JvA41dcpo/RXRH2ZmtkrFm0oweFnwd1Nb9rqx0=; b=CX2JK/uDBuNqeoD3r7k2lfuj3f1Y5VNSqFAsm6iDdHHVJ1ZbZsuIiVJi50THTiSMXe S3DMRQ0v0wFeHPnJidnV9nF762H7/fl9xH6quAhx4AaU+qgvxY1ZQ6IauaQQ7kCXTsXp cowMjzcYV28WSJMUfOXxizzEoZJ9TjpiM2hOcU8wIdS7yEfb4xpCGWjrggjYZH9JOIq2 dnPbDKkb1co8om14AZEQiTkzATDsdy5ept6SBX5UoqhRZ8eMyMtxBwboY4enCwIAemIl usda6careoF9Cv5ntew1fs6gwb5JmP95rDIRShT3tLXyfdt2OU9F7DW9GOGSb9KBDo3d NWvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zryC2JvA41dcpo/RXRH2ZmtkrFm0oweFnwd1Nb9rqx0=; b=X7Ua+DGHRRrWVt0CnVlh5Li/XLuhhl4kP+Os2pwuUblrt6mSCLwxNOfmjI3lk8uNeW NW0uiiesiZHty7NzWU0+IuZdBQ/wX1Bd7Xre6r6sqcE8Dwh87t/MoyHmnUAQKmvVTSSc 1F9hSWsBcdRL04Nqfs9euuLC/6CFQ1eX6Sp8QsgdURv/FcvkTB+x3zl+N4kcQSbP1dCr yD6GVF8T5f5VlNjFGeZ4EyLFoXkgdqH5xwXAaj7HR48kojtx5cO0I1LQYXV/pSs2LE5d IlZJDGg0SvuUK1DYZ+BIvFIf8XYW4TK7DcFpi4XIC3zTofmGy2qVKZWlfoVDJxSC1z1c hycg== X-Gm-Message-State: ANhLgQ1MFGgeGTPeisJaXW57WUsCVyJbLDC5WEioCR4fYZTgH6yrnAS/ 0dnMmqIK/ObiFytG1TNz7j/Rfix5jwPkATMv+YM= X-Google-Smtp-Source: ADFU+vsW2oQ/X7JaCwlzjBqStKnIZcyM82dIECyBsN+k9cU/FJWZCKRKUbPPjAbjl9+c40vlP7IFGYuMn8lOLM67Zd8= X-Received: by 2002:a9d:4508:: with SMTP id w8mr3037546ote.154.1583941434671; Wed, 11 Mar 2020 08:43:54 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:177182 Archived-At: --0000000000008f57d805a0961ae3 Content-Type: text/plain; charset="UTF-8" On Wed, Mar 11, 2020 at 3:16 PM Pieter van Oostrum wrote: > > (prog1 > > (let ((temp-buffer (generate-new-buffer " *temp*"))) > > (prog1 > > temp-buffer > > (kill-buffer temp-buffer) > > (setq temp-buffer nil))) > > (garbage-collect)) > > That crash shouldn't happen, so it has to be found what causes it. The attached patch should fix things. --0000000000008f57d805a0961ae3 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Don-t-GC-killed-buffers-that-are-still-reachable.patch" Content-Disposition: attachment; filename="0001-Don-t-GC-killed-buffers-that-are-still-reachable.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k7nhs3zt0 RnJvbSBlOTg3NDkzODlhMWNjODFmM2M0NDc5MTcwZDIyM2NjOGM5ODcxMjg4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBXZWQs IDExIE1hciAyMDIwIDE1OjI5OjE5ICswMDAwClN1YmplY3Q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