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: Sun, 22 Mar 2020 15:48:42 +0000 Message-ID: References: <24162.58107.725366.668639@cochabamba.vanoostrum.org> <83r1xv73ze.fsf@gnu.org> <83imj5bdct.fsf@gnu.org> <83h7ylg0v6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000019386f05a173761c" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, 39962@debbugs.gnu.org To: Pieter van Oostrum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 22 16:50:19 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 1jG2ri-000459-AX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Mar 2020 16:50:18 +0100 Original-Received: from localhost ([::1]:47530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG2rh-00035m-8w for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Mar 2020 11:50:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42982) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG2rT-00032h-7h for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 11:50:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jG2rR-0002Sz-NP for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 11:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44874) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jG2rR-0002Sv-Jp for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 11:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jG2rR-0004to-IC for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 11:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Mar 2020 15:50:01 +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.158489216618761 (code B ref 39962); Sun, 22 Mar 2020 15:50:01 +0000 Original-Received: (at 39962) by debbugs.gnu.org; 22 Mar 2020 15:49:26 +0000 Original-Received: from localhost ([127.0.0.1]:50847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG2qr-0004sW-Ih for submit@debbugs.gnu.org; Sun, 22 Mar 2020 11:49:25 -0400 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:43905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG2qp-0004sE-QT for 39962@debbugs.gnu.org; Sun, 22 Mar 2020 11:49:24 -0400 Original-Received: by mail-oi1-f178.google.com with SMTP id p125so12119639oif.10 for <39962@debbugs.gnu.org>; Sun, 22 Mar 2020 08:49:23 -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=12d6Qx89naff4RYi0n6WGoOGaeTNPsLhfRqU2JTx/0c=; b=m3H+tzXBr+8oFiAO88LLwTUupR/32DxwFfvRqShBcLjC/VLZxNayeTrmdWKZyGB0qF iiUP9d7xOPTS7Nm22uQGmOjvSCZBt4Bh4yMBN6uPseiOMtP1o/mu3RmP7BvW5QRneLN6 xJ/Qv5MuNlJhAgHgbmNv2vmDcPgbPiVzLpBYt444PaDJibiR6IDCfa4i1hOlRf7K8FQO B0iIMeakdyKRFrMqvjwKK3FAswNve56Nb2CQUnSmPPoUEBm9v1ed7BWOsDTxp3jgbv4u /eRYPQiCB4dSzhKBHs5pJJLhMT163/g0c66kb3h9OV75IngcscGBmVwODNLPtNcTnp20 5wCw== 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=12d6Qx89naff4RYi0n6WGoOGaeTNPsLhfRqU2JTx/0c=; b=sEtB39xSnc7/Nu5BSoltu5j8DiDbdQujyvfr2OeAvLfggVEqS2AC1TTHuJjSA8OZCZ itc6Ex7iaCEcLJ3CP/fyjQzjEMJZ1J1fQkt1t4xJjOKTr3QSuXv3JkVMcaMu2FpS9FDS MR9dyUYAar6gObSZ/nRyVtYh2usjiwYivOnkhvRXbkP1xtuQngFvOmmLFo4cRPpcUXhJ 3Eaa2nswoGJ7ovzlPQwmks2lkolOtmHJViA2HtqC/3sDYXdgaXK4V+P6/PzUyH5G9eB0 qa156KAdTT+FNOOmTWT3j1EHBx6Aa0r9b+xZioty4abYn39Ro+hsulyy2O35/woJiWVm mlSQ== X-Gm-Message-State: ANhLgQ2dHevKVhxz6Nh6kxaZGJy0mgqum+ZQJEUlYGH3G9s3P0zVH1pO /4318NpzXS3VNYpleosUCq4CV2Akfn3wQzjx4p4= X-Google-Smtp-Source: ADFU+vu4X8eUaxsxty4YP3Cp4toxESOkhSOVJqZIL8VC6RZHco01ZmEFhQs8tlxSQ+W/SAa43PZ1aCHOE1p6D5KnObw= X-Received: by 2002:aca:3255:: with SMTP id y82mr14475220oiy.44.1584892158199; Sun, 22 Mar 2020 08:49:18 -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:177626 Archived-At: --00000000000019386f05a173761c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 21, 2020 at 9:22 PM Pieter van Oostrum wrote: > Pip Cet writes: > > On Thu, Mar 19, 2020 at 1:23 PM Pieter van Oostrum > > wrote: > > If you have the time, could you install the patch, start Emacs the > > same way you did to produce your original crash, and do similar things > > you did that time? If we're lucky, we'll be getting an assert failure > > rather than mere corruption. > > > With that patch (the latest 0001-more-debugging.patch) Emacs gets extreme= ly slow (about 10 times slower that normal). Also, while it is processing, = it becomes completely unresponsive: the cursor becomes an spinning beach ba= ll, it won't even resize the windows, or react to C-g. That's okay, that's the extra delays to increase the race condition. I've reduced them by an order of magnitude in this patch. I've also added more checks for what's one potential erroneous code path: corruption of the red-black tree we use in conservative stack marking. --00000000000019386f05a173761c Content-Type: text/x-patch; charset="US-ASCII"; name="0001-even-more-debugging.patch" Content-Disposition: attachment; filename="0001-even-more-debugging.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k837ucln0 RnJvbSA0ODdjNTAzYmJkMjBhYzg3MTExY2EzNzE4ZjlmNDM0MDVjYWI0ODhlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBTdW4s IDIyIE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