From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Payne Newsgroups: gmane.emacs.bugs Subject: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process Date: Wed, 15 Jan 2014 13:41:01 +0000 Message-ID: References: <013FF6AE-1615-454A-AB1E-A289EC1E67F0@till.com> <1389719733663-310127.post@n5.nabble.com> <9A5A8994-89C0-40A0-B930-40634D63A787@jpayne.net> <7F75EF1D-CA22-4F81-A398-94B47946C893@swipnet.se> <5422F2A6-E434-4626-9A7A-512588D0B563@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_49DCBAF7-95C9-42DE-B79F-59CACD2746C4" X-Trace: ger.gmane.org 1389793331 10537 80.91.229.3 (15 Jan 2014 13:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 13:42:11 +0000 (UTC) Cc: 15946@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 15 14:42:18 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 1W3QjZ-0006WH-Rl for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 14:42:18 +0100 Original-Received: from localhost ([::1]:54857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3QjZ-0002eZ-6F for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 08:42:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3QjQ-0002e9-Cg for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 08:42:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3QjL-0004nM-HV for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 08:42:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3QjL-0004nB-B3 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 08:42:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W3QjK-0001Lj-J0 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 08:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Payne Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jan 2014 13:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 15946-submit@debbugs.gnu.org id=B15946.13897932735117 (code B ref 15946); Wed, 15 Jan 2014 13:42:02 +0000 Original-Received: (at 15946) by debbugs.gnu.org; 15 Jan 2014 13:41:13 +0000 Original-Received: from localhost ([127.0.0.1]:51202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3QiW-0001KS-1P for submit@debbugs.gnu.org; Wed, 15 Jan 2014 08:41:12 -0500 Original-Received: from caibbdcaabae.dreamhost.com ([208.113.200.104]:44395 helo=homiemail-a115.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3QiQ-0001KB-EP for 15946@debbugs.gnu.org; Wed, 15 Jan 2014 08:41:07 -0500 Original-Received: from homiemail-a115.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a115.g.dreamhost.com (Postfix) with ESMTP id 49B2C8313; Wed, 15 Jan 2014 05:41:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jpayne.net; h=content-type :mime-version:subject:from:in-reply-to:date:cc:message-id :references:to; s=jpayne.net; bh=y/GNjq9aZrFeXTM2jCPIQnLq3UA=; b= rDmTwR4MBg2j5K5HhWuESBwpfC/r0Z3Jy/pH4SVvsPBdug9RaGRmk52G7HYRhzIk Ujazg+6yaOyxPV1swgtzSlSYKvOXr58Wa7qSxEyFAsBBifSNcD26/qlMbhox+CNW RmF9DgpnBzTqt0s7BmL9zIv1cfBxn8rYo3aYFR6SScM= Original-Received: from [10.0.1.92] (cpc7-camd15-2-0-cust712.20-2.cable.virginm.net [94.174.158.201]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jonathan@payne-family.org) by homiemail-a115.g.dreamhost.com (Postfix) with ESMTPSA id 0E8FD8311; Wed, 15 Jan 2014 05:41:03 -0800 (PST) In-Reply-To: <5422F2A6-E434-4626-9A7A-512588D0B563@swipnet.se> X-Mailer: Apple Mail (2.1827) 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:83529 Archived-At: --Apple-Mail=_49DCBAF7-95C9-42DE-B79F-59CACD2746C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 I have downloaded the nightly and my problem is solved. Neither = distnoted nor emacs is leaking anymore. Well - ok there is apparently one leak occurring in emacs. It looks sort = of like a string with a regular expression in it: > leaks Report Version: 2.0 > Process 634: 59789 nodes malloced for 19799 KB > Process 634: 1 leak for 16384 total leaked bytes. > Leak: 0x100e20600 size=3D16384 zone: DefaultMallocZone_0x100687000 > 0x00000000 0x50000000 0x00000000 0x50000000 .......P.......P > 0x00000000 0x00000000 0x0000004b 0x00000000 ........K....... > 0x74696e69 0x4e7c5c79 0x7c5c4e61 0x75677261 inity\|NaN\|argu > 0x746e656d 0x667c5c73 0x65736c61 0x756e7c5c ments\|false\|nu > 0x7c5c6c6c 0x3f285c74 0x7369683a 0x75727c5c ll\|t\(?:his\|ru > 0x5c295c65 0x646e757c 0x6e696665 0x295c6465 e\)\|undefined\) > 0x003e5f5c 0x00000000 0x00000000 0x00000000 \_>............. > 0x00000012 0x00000000 0x7079746f 0x5c295c65 ........otype\)\ > ... So, I think this was caused by turning on flyspell-mode. The size is 16k = which just reeks of two 8k buffers associated with a pipe or something. Thanks for all the help with this issue. JP On 15 Jan 2014, at 06:26, Jan Dj=E4rv wrote: > Hi. >=20 > 14 jan 2014 kl. 23:17 skrev Jonathan Payne : >=20 >> Hi Jan, >>=20 >> [Removed the list from this email] >=20 > Don't do that unless you are attaching something big. >=20 >>=20 >> Are there already-compiled versions out there? Or do I have to = download the toolchain to build it myself? I am not sure I want to go = there... even though I think I already have the necessary toolchain = installed ... >=20 > http://emacsforosx.com/builds has nightlies. Use the newest of those. >=20 > Jan D. >=20 >>=20 >> Regarding the leaks in my previous message, each line output says = "Leak: ...". So I think by definition it's a leak: there are no pointers = or "maybe pointers" pointing to the block in question. If the blocks are = all pointing to each other, then the leak could be that the first block = is not being pointed to, but regardless they are all unreachable by = anything looking like a pointer in all of the stacks and heap and static = memory of the process. >>=20 >=20 > I forgot, you should start your Emacs like this: >=20 > % MallocStackLogging=3D1 .../pah/to/Emacs.app/Contents/MacOS/Emacs >=20 > and then run leaks. It will then print a stack trace also. This may = slow Emacs down a bit. >=20 > Jan D. >=20 --Apple-Mail=_49DCBAF7-95C9-42DE-B79F-59CACD2746C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
I = have downloaded the nightly and my problem is solved. Neither distnoted = nor emacs is leaking anymore.

Well - ok there = is apparently one leak occurring in emacs. It looks sort of like a = string with a regular expression in = it:

leaks Report = Version:  2.0
Process 634: 59789 nodes malloced for 19799 KB
Process 634: 1 = leak for 16384 total leaked bytes.
Leak: 0x100e20600  = size=3D16384  zone: DefaultMallocZone_0x100687000
= 0x00000000 0x50000000 0x00000000 0x50000000 = .......P.......P
= 0x00000000 0x00000000 0x0000004b 0x00000000 = ........K.......
= 0x74696e69 0x4e7c5c79 0x7c5c4e61 0x75677261 = inity\|NaN\|argu
= 0x746e656d 0x667c5c73 0x65736c61 0x756e7c5c = ments\|false\|nu
= 0x7c5c6c6c 0x3f285c74 0x7369683a 0x75727c5c = ll\|t\(?:his\|ru
= 0x5c295c65 0x646e757c 0x6e696665 0x295c6465 = e\)\|undefined\)
= 0x003e5f5c 0x00000000 0x00000000 0x00000000 = \_>.............
0x00000012 0x00000000 0x7079746f = 0x5c295c65 = ........otype\)\
= ...

So,= I think this was caused by turning on flyspell-mode. The size is 16k = which just reeks of two 8k buffers associated with a pipe or = something.

Thanks for all the help with this = issue.

JP

On 15 Jan = 2014, at 06:26, Jan Dj=E4rv <jan.h.d@swipnet.se> = wrote:

Hi.

14 jan 2014 kl. 23:17 skrev Jonathan Payne = <emacs@jpayne.net>:

Hi Jan,

[Removed the list from this = email]

Don't do that unless you are attaching = something big.


Are there = already-compiled versions out there? Or do I have to download the = toolchain to build it myself? I am not sure I want to go there... even = though I think I already have the necessary toolchain installed = ...

http://emacsforosx.com/builds = has nightlies.  Use the newest of those.

Jan = D.


Regarding the leaks in my = previous message, each line output says "Leak: ...". So I think by = definition it's a leak: there are no pointers or "maybe pointers" = pointing to the block in question. If the blocks are all pointing to = each other, then the leak could be that the first block is not being = pointed to, but regardless they are all unreachable by anything looking = like a pointer in all of the stacks and heap and static memory of the = process.


I forgot, you should start your Emacs = like this:

% MallocStackLogging=3D1 = .../pah/to/Emacs.app/Contents/MacOS/Emacs

and then run leaks. =  It will then print a stack trace also.  This may slow Emacs = down a bit.

Jan = D.


= --Apple-Mail=_49DCBAF7-95C9-42DE-B79F-59CACD2746C4--