From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55870: GNU Emacs 26.3, Select All(C-x h) does not work Date: Sun, 17 Jul 2022 15:49:10 +0300 Message-ID: <83zgh7q4zd.fsf@gnu.org> References: <2278e9bf-89e3-560d-52fc-f26a45aee36c@anche.no> <87mteku1q1.fsf@gnus.org> <87edyrykuf.fsf@gnus.org> <92253b43-50a1-554e-de66-f31f0c423b1f@anche.no> <875yk2sf82.fsf@gnus.org> <83edypw852.fsf@gnu.org> <6e8af953-d207-9912-dc12-254c88470e42@anche.no> <87cze8au6a.fsf@gnus.org> <1d401848-ecec-8233-9aa6-61e52253bc86@anche.no> <83ilo0t32m.fsf@gnu.org> <5d6164aa-42e2-8eda-f935-1b84dec835ec@anche.no> <83k08esf3v.fsf@gnu.org> <7349b51e-6d0b-94b1-d3fb-540d3c2256b5@anche.no> <837d4dsjm8.fsf@gnu.org> <697ffdfe-3827-dcc9-92d2-cf918a19e871@anche.no> <83a698qm67.fsf@gnu.org> <87wnccfbcf.fsf@yahoo.com> <837d4cqiqs.fsf@gnu.org> <87k08cf7wu.fsf@yahoo.com> <834jzgqcfj.fsf@gnu.org> <87tu7gdk9r.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14005"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55870@debbugs.gnu.org, larsi@gnus.org, brucelam1982pi@anche.no To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 17 14:50:12 2022 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 1oD3it-0003Sg-MI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 14:50:11 +0200 Original-Received: from localhost ([::1]:56932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oD3is-0003YX-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 08:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD3ik-0003YM-Dy for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 08:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oD3ij-0000SO-UT for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 08:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oD3ij-0006fI-KA for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 08:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jul 2022 12:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55870 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55870-submit@debbugs.gnu.org id=B55870.165806217325580 (code B ref 55870); Sun, 17 Jul 2022 12:50:01 +0000 Original-Received: (at 55870) by debbugs.gnu.org; 17 Jul 2022 12:49:33 +0000 Original-Received: from localhost ([127.0.0.1]:46861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD3iH-0006eV-7v for submit@debbugs.gnu.org; Sun, 17 Jul 2022 08:49:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD3iF-0006eJ-Gk for 55870@debbugs.gnu.org; Sun, 17 Jul 2022 08:49:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD3i9-0000B0-SP; Sun, 17 Jul 2022 08:49:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2NnzmH4mjWtEHbp+8N9vb3lkkwrRiTTGuXdWQJDB6ZI=; b=RX7/zwpfElij C0g8Fc+LKnPYSTQSdOpDTO85gFNKQfgayPdRbGDxSiNWUkJVRVvgVb5hbZTmRl43YaIA+24vyx7pL I6R5bzCrKftAwYo0fsIhzeiAvUUvcpYhHT22JnHDZXVGTm4JPdURTTsmJ/H/USKspP+W7WSRhvAol v92itRPHNHcoxGx04J5ILoNKA0a7EzNQkHEdv4tl+xa1uzrlurNmI06NNTIOUiRZEqU7CO9C/zv0Z VdZPpVmhlsFNeiSclaaPRympd1leCiVC+FPBVHbve0lV0nMYOXqcy6QjdJL+dFLR+n/znEVuWEguv 9v858WE4OQ3hY7DeHbgFZQ==; Original-Received: from [87.69.77.57] (port=3930 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD3i9-0000wZ-Bt; Sun, 17 Jul 2022 08:49:25 -0400 In-Reply-To: <87tu7gdk9r.fsf@yahoo.com> (message from Po Lu on Sun, 17 Jul 2022 19:57:20 +0800) 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:237262 Archived-At: > From: Po Lu > Cc: brucelam1982pi@anche.no, larsi@gnus.org, 55870@debbugs.gnu.org > Date: Sun, 17 Jul 2022 19:57:20 +0800 > > Eli Zaretskii writes: > > > So the growing memory can only be explained by the consing of > > selection_value onto terminal->Vselection_alist, where selection_value > > is the text being copied by M-w? > > The previous value of the selection will also be removed from > terminal->Vselection_alist, so it shouldn't cause memory usage to > constantly increase. > > > Can any of the potential requests in this situation allocate lots of > > memory? > > Yes. The string is copied each time another program requests the > selection, and we have to allocate a buffer the size of the encoded X > property data each time we want to send it to another client. > > But unfortunately I can't see any obvious memory leak here. The > reporter should build with TRACE_SELECTION and send some of the output, > which could reveal, for example, bugs in the other program (possibly a > clipboard manager, since clipboard managers are a known problematic area > in the X world) that the code in xselect.c doesn't already take into > account. Bruce, can you build Emacs with that option enabled and provide us with the traces? Also, do you have some software installed on your system that could automatically request the clipboard contents when Emacs puts text there? If so, perhaps disabling that software will resolve the problem. Thanks.