From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#46916: 28.0.50; pure_alloc(10424, ...) fails badly when pure space is exhausted Date: Sun, 31 Oct 2021 07:02:47 -0700 Message-ID: References: <83sg5bhuo3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34196"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46916@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 15:03:09 2021 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 1mhBQT-0008de-7K for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 15:03:09 +0100 Original-Received: from localhost ([::1]:36292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhBQR-00008S-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 10:03:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhBQM-000086-3J for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 10:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhBQL-0003YJ-RC for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 10:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhBQL-0001Ue-K9 for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 10:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2021 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46916 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46916-submit@debbugs.gnu.org id=B46916.16356889755727 (code B ref 46916); Sun, 31 Oct 2021 14:03:01 +0000 Original-Received: (at 46916) by debbugs.gnu.org; 31 Oct 2021 14:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:60949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhBQE-0001UJ-Rl for submit@debbugs.gnu.org; Sun, 31 Oct 2021 10:02:55 -0400 Original-Received: from mail-pl1-f176.google.com ([209.85.214.176]:34383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhBQD-0001U4-8F for 46916@debbugs.gnu.org; Sun, 31 Oct 2021 10:02:53 -0400 Original-Received: by mail-pl1-f176.google.com with SMTP id r5so9950323pls.1 for <46916@debbugs.gnu.org>; Sun, 31 Oct 2021 07:02:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=jUfeMl1j9LguLYiKFWc6sTm22iMsQmJVOQq5idTWT4Y=; b=YSJGT8nBqBjZsHhzRDcqyPhMvxtgSxVXvzmm7fENILjtttNb5ylIYEvbb4jWBawjNO KjXglc2UGdKkXzakXfFNj47T/kkzalJLOQedW3qMH43W0UDk0huigpwel/prf1qFbueV o3J9dxI8Omeb6YpsHoqz/HOsNztonDjZb6sMF+YO8CHl2Nt/J7gysBea8Eq+IT6sqgxb H6KhwYDtYM6SZD/TOs+5dtjTbcH9yTNepkm1vlx2rudUb7EAEMT/ND8yqdUgaO8V3VO2 kWsdinZ0fsDJownaDOs9OYZjF4zahpvfMON2VHXti2q8eGhT5Kv7d+Sq8QbHoh5/z34g AynA== X-Gm-Message-State: AOAM531UlHZTnDDooSfbJmICTkEfAzVoESIDo+pmQjgClsv6FnK+OgBL X63T2J/9w5fVLq2B2mW1vc+BB+8MnQ4mYtAXkqM= X-Google-Smtp-Source: ABdhPJw/u5g7tvqhwGoE1ucDVD3k4chYnaLcuxuOjyMBXH3G2C6SqivlGuYRkoKYyanXjizcB3QbIR1g0xyjV8UOpvw= X-Received: by 2002:a17:90b:3b86:: with SMTP id pc6mr31563545pjb.143.1635688967595; Sun, 31 Oct 2021 07:02:47 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 31 Oct 2021 07:02:47 -0700 In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:218684 Archived-At: Pip Cet writes: > I have no objections to this report being closed, in case that's > relevant: it's a clear bug but Eli appears to prefer not to fix it, > and I can live with that. In fact, isn't that what WONTFIX is for? Hmm, so I reviewed all this more carefully, and I think I agree that we might as well fix this bug. OT1H, the use-case you present is quite unusual, as almost no one will call `purespace' outside of Emacs core development. OTOH, it is a pretty bad behavior you observed, and the patch seems minimal enough to me. IIUC, outside of bootstrapping Emacs, we won't/shouldn't call 'purespace' very often, so the code-path will not be exercised in normal use (which means your patch won't hurt), and it might save someones system from swapping to death. Eli, I'm not sure if your previous reply was just intended to say "we normally just increase the size of purespace", or if you also object to installing this patch?