unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jonathan Payne <emacs@jpayne.net>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 15946@debbugs.gnu.org
Subject: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Wed, 15 Jan 2014 13:41:01 +0000	[thread overview]
Message-ID: <B0C44366-400D-4E98-8938-0D475FA571B2@jpayne.net> (raw)
In-Reply-To: <5422F2A6-E434-4626-9A7A-512588D0B563@swipnet.se>

[-- Attachment #1: Type: text/plain, Size: 2475 bytes --]

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=16384  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ärv <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=1 .../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.
> 


[-- Attachment #2: Type: text/html, Size: 6043 bytes --]

  reply	other threads:[~2014-01-15 13:41 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-21 18:18 bug#15946: 24.3; Mac OS X, Mavericks, distnoted process Donald Tillman
2013-11-25 22:27 ` Marc Feeley
2013-11-26  7:50 ` Jan Djärv
2013-11-27 21:10   ` Piet Jaspers
     [not found]   ` <mailman.7276.1385588062.10748.bug-gnu-emacs@gnu.org>
2013-11-28  5:47     ` louisnoel.pouchet
2013-12-09  4:38 ` Christopher Smith
2013-12-09  8:18   ` YAMAMOTO Mitsuharu
2013-12-09 10:06   ` Jan Djärv
2013-12-27  5:15     ` SB
2014-01-07 22:56       ` Jan Djärv
2014-01-08  3:35         ` Josh
2014-01-08  9:24           ` Jan Djärv
2014-01-14 17:15 ` canoeberry
2014-01-14 17:46   ` Jan Djärv
2014-01-14 20:09     ` canoeberry
2014-01-14 22:10       ` Jan Djärv
2014-01-14 22:59         ` Matthew Leach
2014-01-15  7:52           ` Jan D.
2014-01-15 10:53             ` Matthew Leach
2014-01-14 20:33     ` canoeberry
2014-01-14 21:34   ` Stefan Monnier
2014-01-14 21:53     ` canoeberry
2014-01-14 22:07       ` Jan Djärv
     [not found]         ` <ABF72EE5-E9C7-4950-8E9F-D2632A5DCF91@jpayne.net>
2014-01-15  6:26           ` Jan Djärv
2014-01-15 13:41             ` Jonathan Payne [this message]
2014-01-17 14:11               ` vbeffara
2014-01-18 22:52                 ` canoeberry
2014-01-19  9:33                   ` Jan Djärv
2014-01-19 10:49                     ` canoeberry
2014-01-20  9:53                       ` SB
2014-01-20 11:15                         ` Jan Djärv
2015-12-26  1:14                           ` Lars Ingebrigtsen
2016-07-17 20:57                             ` Alan Third
2014-01-20 10:43 ` bug#15946: a patch against emacs 24.3.1 for fixing the distnoted memory leak Jonathan Payne
2014-01-20 12:01 ` Jonathan Payne
2014-01-20 12:32   ` SB
     [not found] ` <mailman.7121.1385419042.10748.bug-gnu-emacs@gnu.org>
2014-05-02 11:33   ` bug#15946: 24.3; Mac OS X, Mavericks, distnoted process tony
     [not found] ` <handler.15946.D15946.14687890696153.notifdone@debbugs.gnu.org>
2016-07-18  2:00   ` bug#15946: closed (Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process) Donald Tillman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B0C44366-400D-4E98-8938-0D475FA571B2@jpayne.net \
    --to=emacs@jpayne.net \
    --cc=15946@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).