From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruce via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55870: GNU Emacs 26.3, Select All(C-x h) does not work Date: Mon, 18 Jul 2022 08:24:49 +0800 Message-ID: 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> <83zgh7q4zd.fsf@gnu.org> Reply-To: Bruce Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29385"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 Cc: 55870@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 18 03:47:30 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 1oDFr7-0007RT-4g for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Jul 2022 03:47:29 +0200 Original-Received: from localhost ([::1]:58102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDFr6-0005ya-76 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 21:47:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDFqh-0005lW-0S for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 21:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDFqg-000070-NE for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 21:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDFqg-0001PO-Jm for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 21:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bruce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jul 2022 01:47:02 +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.16581087655310 (code B ref 55870); Mon, 18 Jul 2022 01:47:02 +0000 Original-Received: (at 55870) by debbugs.gnu.org; 18 Jul 2022 01:46:05 +0000 Original-Received: from localhost ([127.0.0.1]:48857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDFpk-0001NX-3X for submit@debbugs.gnu.org; Sun, 17 Jul 2022 21:46:05 -0400 Original-Received: from latitanza.investici.org ([82.94.249.234]:51311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDEZE-0007mx-GO for 55870@debbugs.gnu.org; Sun, 17 Jul 2022 20:24:57 -0400 Original-Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4LmN5L6PLGzGpBK; Mon, 18 Jul 2022 00:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anche.no; s=stigmate; t=1658103894; bh=ecnPTs2F4t5Polv5JrCQLZ2s/lsWHkb7YmG6y5bY2QI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ChgrXJ4HvuYqWEukVda4UZOE3cO2+ePiz/a2DjmHxSsDe7lsW+TKTZxj9W/dYkZeQ GvSXqoMBuLJIKndeAeSBGyNjudiohT8E0SqpynoyHYajRiE2xpNmuUb5OOz+26xou4 +Q84yt1A/IXnkhO0WMVLCPecJVPD34A9SYDgPsH0= Original-Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: brucelam1982pi@anche.no) by localhost (Postfix) with ESMTPSA id 4LmN5K62xzzGpBF; Mon, 18 Jul 2022 00:24:53 +0000 (UTC) In-Reply-To: <83zgh7q4zd.fsf@gnu.org> Content-Language: en-US X-Mailman-Approved-At: Sun, 17 Jul 2022 21:46:03 -0400 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:237313 Archived-At: >Bruce, can you build Emacs with that option enabled and provide us >with the traces? Enable that option in configure before "make" and "make install"? Steps to trace it after new build? >Also, do you have some software installed on your system that could >automatically request the clipboard contents when Emacs puts text >there? I will check. Thanks, :-) On 2022/7/17 下午8:49, Eli Zaretskii wrote: >> 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.