From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.devel Subject: Re: Memory leak due to bidi? Date: Thu, 04 Aug 2011 21:22:35 +0200 Message-ID: <87k4atuglg.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312485784 13338 80.91.229.12 (4 Aug 2011 19:23:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2011 19:23:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 04 21:23:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qp3VU-0007CX-GC for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2011 21:23:00 +0200 Original-Received: from localhost ([::1]:34229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp3VU-0000mh-2p for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2011 15:23:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp3VQ-0000mQ-FK for emacs-devel@gnu.org; Thu, 04 Aug 2011 15:22:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qp3VP-0004tO-Ib for emacs-devel@gnu.org; Thu, 04 Aug 2011 15:22:56 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp3VP-0004tH-9x for emacs-devel@gnu.org; Thu, 04 Aug 2011 15:22:55 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qp3VN-0007A2-Vp for emacs-devel@gnu.org; Thu, 04 Aug 2011 21:22:54 +0200 Original-Received: from cab14-1-88-177-9-245.fbx.proxad.net ([88.177.9.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Aug 2011 21:22:53 +0200 Original-Received: from antoine.levitt by cab14-1-88-177-9-245.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Aug 2011 21:22:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cab14-1-88-177-9-245.fbx.proxad.net Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142885 Archived-At: 03/08/11 15:30, Eli Zaretskii >> From: Stefan Monnier >> Cc: emacs-devel@gnu.org, Eli Zaretskii >> Date: Tue, 02 Aug 2011 21:10:14 -0400 >> >> Let's not forget that it may have nothing to do with bidi. I just >> happened to see bidi_shelve_cache as a "frequent" caller of mmap, but >> according to Eli this is not necessarily abnormal. > > I would be the first to be happy if it turns out cache shelving and > unshelving is not the culprit. However, as I still have my doubts, I > instrumented the relevant code as shown in the patch below. With this > patch, you can: Got it. It's related to another bug I reported: emacs -Q, (setq-default word-wrap t), break, and: (gdb) print bidi_cache_total_alloc $1 = 32768 Hope that helps.