From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#17751: 24.4.50; More memory leaks under OS X Mavericks Date: Wed, 11 Jun 2014 07:04:31 +0200 Message-ID: References: <4E76EFA4-1364-44C7-BBEC-7B8AA30675C7@sanityinc.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1402463125 19995 80.91.229.3 (11 Jun 2014 05:05:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2014 05:05:25 +0000 (UTC) Cc: 17751@debbugs.gnu.org To: Steve Purcell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 11 07:05:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wuair-0001q5-DK for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jun 2014 07:05:17 +0200 Original-Received: from localhost ([::1]:43542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wuaiq-0001JX-LS for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jun 2014 01:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wuaii-0001Go-Rc for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2014 01:05:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wuaid-0002bV-EJ for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2014 01:05:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wuaid-0002aV-Bd for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2014 01:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wuaic-0008QD-EG for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2014 01:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jun 2014 05:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17751-submit@debbugs.gnu.org id=B17751.140246308632338 (code B ref 17751); Wed, 11 Jun 2014 05:05:02 +0000 Original-Received: (at 17751) by debbugs.gnu.org; 11 Jun 2014 05:04:46 +0000 Original-Received: from localhost ([127.0.0.1]:43439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WuaiL-0008PR-EI for submit@debbugs.gnu.org; Wed, 11 Jun 2014 01:04:46 -0400 Original-Received: from mailfe07.swip.net ([212.247.154.193]:51775 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WuaiH-0008P3-E8 for 17751@debbugs.gnu.org; Wed, 11 Jun 2014 01:04:43 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 507795713; Wed, 11 Jun 2014 07:04:32 +0200 In-Reply-To: <4E76EFA4-1364-44C7-BBEC-7B8AA30675C7@sanityinc.com> X-Mailer: Apple Mail (2.1878.2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90232 Archived-At: Hello. 10 jun 2014 kl. 22:55 skrev Steve Purcell : > Even with this recent nightly Emacs build from emacsformacosx.com, = I've > been suffering from the distnoted memory/CPU-ballooning issue = addressed in > #15946, with that process reaching > 100% CPU and several GB in > memory. Quitting Emacs solves the problem. >=20 > In the discussion on #15946, Jan D suggested running "leaks" on Emacs = to > see what's going on, so I tried that: >=20 > Starting with an "emacs -Q", I can fire up the "leaks" command in a = loop > and watch Emacs start to leak memory. >=20 > While Emacs is the front-most application and the mouse is moving = above > it, new leaks appear. When the mouse stops, the leaks stop appearing. >=20 > While the cursor blinks (as it does, by default), new leaks appear. = When > the cursor stops blinking after a few seconds, the leaks stop > appearing. (Unless the mouse is also moving.) >=20 > As I write this message in the clean "emacs -Q" instance, "leaks" = tells > me: >=20 > Process 60460: 53511 leaks for 11106784 total leaked bytes. >=20 > So 11MB leaked in the space of a few minutes and a few lines typed, = with > just a couple of buffers open! >=20 > The leaks look like this: >=20 > Leak: 0x10c1d62a0 size=3D160 zone: DefaultMallocZone_0x1006c5000 = OS_dispatch_source ObjC libdispatch.dylib > 0x762d8c20 0x00007fff 0x00000001 0x00000000 = .-v............ > 0x89abcdef 0xffffffff 0x762da480 0x00007fff = ..........-v.... > 0x00000000 0x00000000 0x00000000 0x00000000 = ................ > 0x00000000 0x00000000 0x00000000 0x00000000 = ................ > 0x00000000 0x00000000 0x00000000 0x00000000 = ................ > 0x00000001 0x00000000 0x00009cc4 0x00000000 = ................ > 0x8979a90c 0x00007fff 0x014002f0 0x00000001 = ..y.......@..... > 0x0c1d6390 0x00000001 0x00000002 0x0000004c = .c..........L... > ... You can not tuncate leaks output without loosing important information. = Post the whole leaks output, comressed. Leaks is sometimes confused by Emacs memory allocation. Relevant output = can only be gotten just after you have run garbage-collect in Emacs. Dmitry wrote: > I don't know how 'leaks' works, but this doesn't look too = representative for me. > Could you please try valgrind? According to = http://valgrind.org/info/platforms.html, > it should work on OSX. Unfortunately you have to compile Emacs = yourself to get > bare (temacs) executable because regular binary will not work. Valgrind really does not work on OSX, except for the simplest programs. = It is a waste of time to try it. Jan D.