From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Trevor Bentley Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Sun, 13 Dec 2020 20:59:34 +0100 Message-ID: <87mtyhqxy1.fsf@mail.trevorbentley.com> References: <83y2j0qb2v.fsf@gnu.org> <418751f6-41be-a5e2-908a-ea4196d5fb9b@redhat.com> <83y2inq2sp.fsf@gnu.org> <60253612-49f0-a1aa-b9e6-39cfef8d62b5@redhat.com> <83mtz3p7qy.fsf@gnu.org> <83lfenp78f.fsf@gnu.org> <83h7pbp5wh.fsf@gnu.org> <83v9dpn9em.fsf@gnu.org> <87sg8ts766.fsf@mail.trevorbentley.com> <87pn3usr13.fsf@mail.trevorbentley.com> <87eek0rmqa.fsf@mail.trevorbentley.com> <83zh2l33fv.fsf@gnu.org> <87zh2jqnhi.fsf@mail.trevorbentley.com> <837dpn1ccp.fsf@gnu.org> <87zh2i7jqp.fsf@web.de> <83eejue5v8.fsf@gnu.org> <87tusqqa6n.fsf@mail.trevorbentley.com> <833609ena5.fsf@gnu.org> <87r1ntqz4c.fsf@mail.trevorbentley.com> <83pn3dcx89.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21282"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, dj@redhat.com, bugs@gnu.support, carlos@redhat.com, michael_heerdegen@web.de, monnier@iro.umontreal.ca, To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 13 21:00:11 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 1koXXP-0005Ql-Mb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 21:00:11 +0100 Original-Received: from localhost ([::1]:56420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koXXO-0002aM-O2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 15:00:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koXXG-0002Zz-Ew for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 15:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koXXG-00067S-6u for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 15:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koXXG-0001aS-6a for bug-gnu-emacs@gnu.org; Sun, 13 Dec 2020 15:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Trevor Bentley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Dec 2020 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43389 X-GNU-PR-Package: emacs Original-Received: via spool by 43389-submit@debbugs.gnu.org id=B43389.16078895825987 (code B ref 43389); Sun, 13 Dec 2020 20:00:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 13 Dec 2020 19:59:42 +0000 Original-Received: from localhost ([127.0.0.1]:50347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koXWw-0001YV-9t for submit@debbugs.gnu.org; Sun, 13 Dec 2020 14:59:42 -0500 Original-Received: from mail.trevorbentley.com ([37.187.5.80]:37112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koXWv-0001Y0-Di for 43389@debbugs.gnu.org; Sun, 13 Dec 2020 14:59:41 -0500 Original-Received: from localhost (c188-150-0-48.bredband.comhem.se [188.150.0.48]) by mail.trevorbentley.com (Postfix) with ESMTPSA id 4197960D0F; Sun, 13 Dec 2020 20:59:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.trevorbentley.com; s=mail; t=1607889575; bh=mUzBSF+99CrwNiPEUdrdVih8IL/k4rNE+BW+5H0ECas=; h=From:To:Cc:Cc:Subject:In-Reply-To:References:Date:From; b=WM0+OLxUr4Qqv1VGxk97yQiZdI1ZrEjJVL5PDLeNjYuaSHFHYtO5BD5apNw8hL4+n PuhgotsKh6EJR/SEuX9TxtSQ7EJdtfdXNvL8POj3czxUcSqpw/rrCXIKBZpLfinzMj znRSDyx8zt78vlV02ULjz1BDQXrn/FT/wL/LtVxg= In-Reply-To: <83pn3dcx89.fsf@gnu.org> 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:196004 Archived-At: >> Hmm, that makes it trickier. No clue if my default packages >> launch threads, but it's possible. > > Grep them for make-thread. > >> I just hit the bug in one of my sessions: the call to >> unblock_input() in garbage_collect() never returns. > > If that ran in a thread, perhaps the thread died. > >> But the session still completely works, so I'm not really sure >> what's going on here. > > As long as the main thread runs, you might indeed see nothing > special. This was exactly my thought: a thread I'm not even aware of must be silently crashing and leaving GC in a bad state. But there's only a single case of 'make-thread' in my ~/.emacs.d/, and it's extremely unlikely that function ever runs ("lsp-download-install"). More importantly, I'm comparing (list-threads) in emacs and "info threads" in gdb, and the failed instance looks identical to the non-failed instances: a single emacs thread ("Main"), and three real threads ("emacs", "gmain", "gdbus"). garbage_collect() not present in any backtrace when interrupted. I'm at a loss for how it teleported out of that garbage_collect() call. Back to printf, I guess. Maybe there was a short-lived thread that isn't normally running... -Trevor