GNU bug report logs - #15946
24.3; Mac OS X, Mavericks, distnoted process

Previous Next

Package: emacs;

Reported by: Donald Tillman <don <at> till.com>

Date: Thu, 21 Nov 2013 18:19:01 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15946 in the body.
You can then email your comments to 15946 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Thu, 21 Nov 2013 18:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Donald Tillman <don <at> till.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 21 Nov 2013 18:19:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Donald Tillman <don <at> till.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Mac OS X, Mavericks, distnoted process
Date: Thu, 21 Nov 2013 10:18:09 -0800
--text follows this line--
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

----

Hi!

I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded from emacsformacosx.com.

Running Emacs, a process named "distnoted" starts around 1% or 2% of the CPU, and after a while, slowly works its way up to 50% to 100% of the CPU.  Yoiks!  Actually there appear to be 3 distnoted processes, but only one eats up the CPU.

Quitting Emacs brings distnoted down to under 1% within seconds. 

  -- Don



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1265
Configured using:
`configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
'--with-ns' 'build_alias=i686-apple-darwin'
'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
-isystem
/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
-F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''

Important settings:
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> M-x r e p o r t SPC e m a <tab> <retur
n>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr warnings emacsbug message format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rainbow-mode-autoloads
svg-clock-autoloads package rmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process ns multi-tty emacs)


--
Don Tillman
Palo Alto, California
don <at> till.com
http://www.till.com








Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 25 Nov 2013 22:37:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marc Feeley <feeley <at> iro.umontreal.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Mon, 25 Nov 2013 22:27:43 +0000 (UTC)
Just want to add that I have the same problem.  After quitting emacs
the distnoted process quiets  down to an acceptable level.






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 26 Nov 2013 07:51:02 GMT) Full text and rfc822 format available.

Message #11 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Donald Tillman <don <at> till.com>
Cc: "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 26 Nov 2013 08:50:36 +0100
Hello. 

I can not reproduce this. Does it happen when you start with -Q and then do nothing else?  I tried with trunk and downloaded binaries from the site (release and latest).  I ran them on two computers with 10.9. I once managed to get a distnoted process to use 1.2 percent CPU, but otherwise they where steady at 0 - 0.3 % no matter what I did in Emacs. I monitored the trunk build for a whole workday, about 8 hours. 


    Jan D. 

> 21 nov 2013 kl. 19:18 skrev Donald Tillman <don <at> till.com>:
> 
> --text follows this line--
> This bug report will be sent to the Bug-GNU-Emacs mailing list
> and the GNU bug tracker at debbugs.gnu.org.  Please check that
> the From: line contains a valid email address.  After a delay of up
> to one day, you should receive an acknowledgment at that address.
> 
> Please write in English if possible, as the Emacs maintainers
> usually do not have translators for other languages.
> 
> Please describe exactly what actions triggered the bug, and
> the precise symptoms of the bug.  If you can, give a recipe
> starting from `emacs -Q':
> 
> ----
> 
> Hi!
> 
> I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded from emacsformacosx.com.
> 
> Running Emacs, a process named "distnoted" starts around 1% or 2% of the CPU, and after a while, slowly works its way up to 50% to 100% of the CPU.  Yoiks!  Actually there appear to be 3 distnoted processes, but only one eats up the CPU.
> 
> Quitting Emacs brings distnoted down to under 1% within seconds. 
> 
>  -- Don
> 
> 
> 
> If Emacs crashed, and you have the Emacs process in the gdb debugger,
> please include the output from the following gdb commands:
>    `bt full' and `xbacktrace'.
> For information about debugging Emacs, please read the file
> /Applications/Emacs.app/Contents/Resources/etc/DEBUG.
> 
> 
> In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
> of 2013-03-12 on bob.porkrind.org
> Windowing system distributor `Apple', version 10.3.1265
> Configured using:
> `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
> '--with-ns' 'build_alias=i686-apple-darwin'
> 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
> -isystem
> /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
> -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''
> 
> Important settings:
>  locale-coding-system: nil
>  default enable-multibyte-characters: t
> 
> Major mode: Fundamental
> 
> Minor modes in effect:
>  tooltip-mode: t
>  mouse-wheel-mode: t
>  tool-bar-mode: t
>  menu-bar-mode: t
>  file-name-shadow-mode: t
>  global-font-lock-mode: t
>  blink-cursor-mode: t
>  auto-composition-mode: t
>  auto-encryption-mode: t
>  auto-compression-mode: t
>  buffer-read-only: t
>  line-number-mode: t
>  transient-mark-mode: t
> 
> Recent input:
> <help-echo> M-x r e p o r t SPC e m a <tab> <retur
> n>
> 
> Recent messages:
> For information about GNU Emacs and the GNU system, type C-h C-a.
> 
> Load-path shadows:
> None found.
> 
> Features:
> (shadow sort gnus-util mail-extr warnings emacsbug message format-spec
> rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
> rfc2231 mailabbrev gmm-utils mailheader sendmail rainbow-mode-autoloads
> svg-clock-autoloads package rmail rfc2047 rfc2045 ietf-drums mm-util
> mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
> lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
> fringe tabulated-list newcomment lisp-mode register page menu-bar
> rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
> facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
> tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
> czech european ethiopic indian cyrillic chinese case-table epa-hook
> jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
> cus-face macroexp files text-properties overlay sha1 md5 base64 format
> env code-pages mule custom widget hashtable-print-readable backquote
> make-network-process ns multi-tty emacs)
> 
> 
> --
> Don Tillman
> Palo Alto, California
> don <at> till.com
> http://www.till.com
> 
> 
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Wed, 27 Nov 2013 21:34:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Piet Jaspers <piet <at> jaspe.rs>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Wed, 27 Nov 2013 21:10:11 +0000 (UTC)
> I can not reproduce this. 

I too have this problem. I'm not quite sure what triggers it, but it
seems to to have something to do with command-tabbing (or at least
that's what it feels like).

If I can pinpoint it exactly I'll let it know.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 09 Dec 2013 07:35:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Smith <cbsmith <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Mon, 9 Dec 2013 04:38:59 +0000 (UTC)
Donald Tillman <don <at> till.com> writes:
> Hi!
> 
> I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded from
> emacsformacosx.com.
> 
> Running Emacs, a process named "distnoted" starts around 1% or 2% of the
> CPU, and after a while, slowly works its way up to 50% to 100% of
> the CPU.  Yoiks!  Actually there appear to be 3 distnoted processes,
> but only one eats up the CPU.
> 
> Quitting Emacs brings distnoted down to under 1% within seconds. 

Just wanted to bump this up, as I've now seen this bug myself. Not sure
why Emacs is causing the problem. My emacs was built from macports.

--Chris






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 09 Dec 2013 08:19:02 GMT) Full text and rfc822 format available.

Message #20 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Christopher Smith <cbsmith <at> gmail.com>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Mon, 09 Dec 2013 17:18:12 +0900
>>>>> On Mon, 9 Dec 2013 04:38:59 +0000 (UTC), Christopher Smith <cbsmith <at> gmail.com> said:

> Donald Tillman <don <at> till.com> writes:
>> Hi!
>> 
>> I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded
>> from emacsformacosx.com.
>> 
>> Running Emacs, a process named "distnoted" starts around 1% or 2%
>> of the CPU, and after a while, slowly works its way up to 50% to
>> 100% of the CPU.  Yoiks!  Actually there appear to be 3 distnoted
>> processes, but only one eats up the CPU.
>> 
>> Quitting Emacs brings distnoted down to under 1% within seconds.

> Just wanted to bump this up, as I've now seen this bug myself. Not
> sure why Emacs is causing the problem. My emacs was built from
> macports.

Which "port" did you use to build Emacs from MacPorts?

I'm asking it because I'd like to know if this problem can also happen
with Emacs Mac port(*).  Users of the MacPorts package system can use
it via the "port" named "emacs-mac-app" (its application bundle name
is EmacsMac.app).

*: http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00225.html

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 09 Dec 2013 10:08:02 GMT) Full text and rfc822 format available.

Message #23 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Christopher Smith <cbsmith <at> gmail.com>
Cc: "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Mon, 9 Dec 2013 11:06:58 +0100
Hello. 

> 9 dec 2013 kl. 05:38 skrev Christopher Smith <cbsmith <at> gmail.com>:
> 
> Donald Tillman <don <at> till.com> writes:
>> Hi!
>> 
>> I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded from
>> emacsformacosx.com.
>> 
>> Running Emacs, a process named "distnoted" starts around 1% or 2% of the
>> CPU, and after a while, slowly works its way up to 50% to 100% of
>> the CPU.  Yoiks!  Actually there appear to be 3 distnoted processes,
>> but only one eats up the CPU.
>> 
>> Quitting Emacs brings distnoted down to under 1% within seconds. 
> 
> Just wanted to bump this up, as I've now seen this bug myself. Not sure
> why Emacs is causing the problem. My emacs was built from macports.

It is no use bumping anything that isn't reproducable. More helpful would be if those that have this can do some debugging. For example dtruss on Emacs and distnoted. 

     Jan D. 



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Fri, 27 Dec 2013 19:29:02 GMT) Full text and rfc822 format available.

Message #26 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: SB <richstyles <at> gmail.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Fri, 27 Dec 2013 14:15:37 +0900
Hello, I've investigated this problem since I had similar symptoms
that correlated with everyone else's reports (quit emacs.app and
distnoted quiets down). Also, in my case when I download the vanilla
emacs.app from the emacs for OSX site, the problem does not appear. In
my case, under Mavericks, this problem only occurs when I use
Emacs.app with the inline patch applied (for more native Japanese
input).

Emacs inline patch
http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/emacs-inline.patch

After investigating, it seems that the purpose of distnoted is to
serve as a daemon to facilitate interapplication communication. In the
case of the "inline patch", to capture the moment the IME is changed
so that Emacs can do likewise to change language input. This is done
by adding an observer using NSDistributedNotificationCenter and there
is also a corresponding Core Foundation method. I didn't find any used
of NSDistributedNotificationCenter in the official release (24.3)
source.

https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/classes/NSDistributedNotificationCenter_Class/Reference/Reference.html

The fix was to add
"suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately"
rather than the default which was
"NSNotificationSuspensionBehaviorCoalesce". For whatever reason,
modifying the inline patch in this manner fixed the issue for me. This
would be consistent with the report above that "Cmd Tabbing" seems to
trigger it (since it would activate the suspension behavior).

Others with the same problem seem to take a sledgehammer approach of
killing distnoted with a cronjob (which I did manually as well).

This is the patch (modified by hand so it may not apply) against emacs 24.3.

https://gist.github.com/anonymous/8142555

The modified line:

  [[NSDistributedNotificationCenter defaultCenter] addObserver: NSApp
                    selector: @selector (changeInputMethod:)
                           name:
@"AppleSelectedInputSourcesChangedNotification" object: nil
suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];

Suspension Behavior
https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/classes/NSDistributedNotificationCenter_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSNotificationSuspensionBehavior

For others who do not use the patch, there may be other applications,
since this is most likely a bug with Mavericks itself and you may want
to log distnoted for additional hints and grep the source of your
emacs build to see if NSDistributedNotificationCenter is being used.

Logging Distnoted
http://www.cocoawithlove.com/2009/02/interprocess-communication-snooping.html

Hope this helps someone.

Cheers,

Sam

On Mon, Dec 9, 2013 at 7:06 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
> Hello.
>
>> 9 dec 2013 kl. 05:38 skrev Christopher Smith <cbsmith <at> gmail.com>:
>>
>> Donald Tillman <don <at> till.com> writes:
>>> Hi!
>>>
>>> I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded from
>>> emacsformacosx.com.
>>>
>>> Running Emacs, a process named "distnoted" starts around 1% or 2% of the
>>> CPU, and after a while, slowly works its way up to 50% to 100% of
>>> the CPU.  Yoiks!  Actually there appear to be 3 distnoted processes,
>>> but only one eats up the CPU.
>>>
>>> Quitting Emacs brings distnoted down to under 1% within seconds.
>>
>> Just wanted to bump this up, as I've now seen this bug myself. Not sure
>> why Emacs is causing the problem. My emacs was built from macports.
>
> It is no use bumping anything that isn't reproducable. More helpful would be if those that have this can do some debugging. For example dtruss on Emacs and distnoted.
>
>      Jan D.
>
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 07 Jan 2014 22:57:02 GMT) Full text and rfc822 format available.

Message #29 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: SB <richstyles <at> gmail.com>
Cc: "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 7 Jan 2014 23:56:04 +0100
Hello.

This is good to know, but others said they used Emacs downloaded from emacsformacosx.com, which is supposed to be unpatched.  So there might be more than one reason for this.

	Jan D.

27 dec 2013 kl. 06:15 skrev SB <richstyles <at> gmail.com>:

> Hello, I've investigated this problem since I had similar symptoms
> that correlated with everyone else's reports (quit emacs.app and
> distnoted quiets down). Also, in my case when I download the vanilla
> emacs.app from the emacs for OSX site, the problem does not appear. In
> my case, under Mavericks, this problem only occurs when I use
> Emacs.app with the inline patch applied (for more native Japanese
> input).
> 
> Emacs inline patch
> http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/emacs-inline.patch
> 
> After investigating, it seems that the purpose of distnoted is to
> serve as a daemon to facilitate interapplication communication. In the
> case of the "inline patch", to capture the moment the IME is changed
> so that Emacs can do likewise to change language input. This is done
> by adding an observer using NSDistributedNotificationCenter and there
> is also a corresponding Core Foundation method. I didn't find any used
> of NSDistributedNotificationCenter in the official release (24.3)
> source.
> 
> https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/classes/NSDistributedNotificationCenter_Class/Reference/Reference.html
> 
> The fix was to add
> "suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately"
> rather than the default which was
> "NSNotificationSuspensionBehaviorCoalesce". For whatever reason,
> modifying the inline patch in this manner fixed the issue for me. This
> would be consistent with the report above that "Cmd Tabbing" seems to
> trigger it (since it would activate the suspension behavior).
> 
> Others with the same problem seem to take a sledgehammer approach of
> killing distnoted with a cronjob (which I did manually as well).
> 
> This is the patch (modified by hand so it may not apply) against emacs 24.3.
> 
> https://gist.github.com/anonymous/8142555
> 
> The modified line:
> 
>  [[NSDistributedNotificationCenter defaultCenter] addObserver: NSApp
>                    selector: @selector (changeInputMethod:)
>                           name:
> @"AppleSelectedInputSourcesChangedNotification" object: nil
> suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
> 
> Suspension Behavior
> https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/classes/NSDistributedNotificationCenter_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSNotificationSuspensionBehavior
> 
> For others who do not use the patch, there may be other applications,
> since this is most likely a bug with Mavericks itself and you may want
> to log distnoted for additional hints and grep the source of your
> emacs build to see if NSDistributedNotificationCenter is being used.
> 
> Logging Distnoted
> http://www.cocoawithlove.com/2009/02/interprocess-communication-snooping.html
> 
> Hope this helps someone.
> 
> Cheers,
> 
> Sam
> 
> On Mon, Dec 9, 2013 at 7:06 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
>> Hello.
>> 
>>> 9 dec 2013 kl. 05:38 skrev Christopher Smith <cbsmith <at> gmail.com>:
>>> 
>>> Donald Tillman <don <at> till.com> writes:
>>>> Hi!
>>>> 
>>>> I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded from
>>>> emacsformacosx.com.
>>>> 
>>>> Running Emacs, a process named "distnoted" starts around 1% or 2% of the
>>>> CPU, and after a while, slowly works its way up to 50% to 100% of
>>>> the CPU.  Yoiks!  Actually there appear to be 3 distnoted processes,
>>>> but only one eats up the CPU.
>>>> 
>>>> Quitting Emacs brings distnoted down to under 1% within seconds.
>>> 
>>> Just wanted to bump this up, as I've now seen this bug myself. Not sure
>>> why Emacs is causing the problem. My emacs was built from macports.
>> 
>> It is no use bumping anything that isn't reproducable. More helpful would be if those that have this can do some debugging. For example dtruss on Emacs and distnoted.
>> 
>>     Jan D.
>> 
>> 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Wed, 08 Jan 2014 03:36:02 GMT) Full text and rfc822 format available.

Message #32 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Josh <josh <at> foxtail.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: SB <richstyles <at> gmail.com>, "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 7 Jan 2014 19:35:02 -0800
On Tue, Jan 7, 2014 at 2:56 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
> This is good to know, but others said they used Emacs downloaded from emacsformacosx.com, which is supposed to be unpatched.

It does appear to be entirely unpatched, and the tools to produce
it are publicly available[0] so it's easy to check.  There's also
an archive[1] of releases, pretests, and nightlies going back to
2006 (!) in .dmg format which is sometimes handy for bisection.

[0] https://github.com/caldwell/build-emacs
[1] http://emacsformacosx.com/builds/all




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Wed, 08 Jan 2014 09:25:01 GMT) Full text and rfc822 format available.

Message #35 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Josh <josh <at> foxtail.org>
Cc: SB <richstyles <at> gmail.com>, "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Wed, 8 Jan 2014 10:24:22 +0100
Hello.

8 jan 2014 kl. 04:35 skrev Josh <josh <at> foxtail.org>:

> On Tue, Jan 7, 2014 at 2:56 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
>> This is good to know, but others said they used Emacs downloaded from emacsformacosx.com, which is supposed to be unpatched.
> 
> It does appear to be entirely unpatched, and the tools to produce
> it are publicly available[0] so it's easy to check.  There's also
> an archive[1] of releases, pretests, and nightlies going back to
> 2006 (!) in .dmg format which is sometimes handy for bisection.
> 
> [0] https://github.com/caldwell/build-emacs
> [1] http://emacsformacosx.com/builds/all

This has to be done by someone who has the problem.  I already tried several of their builds, on three separate machines.  None exhibit the problem.

	Jan D.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 17:29:02 GMT) Full text and rfc822 format available.

Message #38 received at submit <at> debbugs.gnu.org (full text, mbox):

From: canoeberry <emacs <at> jpayne.net>
To: Bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 09:15:33 -0800 (PST)
I have been observing this since Mavericks was released. I did not make a
connection between distnoted and emacs, other than the following
observation: both are leaking memory.

For the first time ever I am finding that my emacs process slowly grows in
size. I can be editing a small handful of files and be using 500Mb of real
memory. Never seen that before, ever.

Distnoted grows much faster, on the order of 1Gb real memory / day. Killing
that process and having another start up automatically causes some OS X
features to stop working, e.g., it is not possible to enter Time Machine or
even see the status of your Time Machine backups anymore.

I have seen distnoted peg the CPU when Time Machine backups are running or
recently completed. Meanwhile, the menubar no longer animates the
in-progress backup, which I assume is not on purpose and possibly even
related to the issue.

I do not use shells in emacs nowadays.

I am running emacs from emacsformacosx.

I have filed bugs with Apple.

If anybody has any suggestions on how to figure out what is causing Emacs to
grow in size, I will happily run some experiments for you. I tried to figure
out how to profile emacs memory but it was not very obvious to me what to
do.




--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310127.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 17:47:01 GMT) Full text and rfc822 format available.

Message #41 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: canoeberry <emacs <at> jpayne.net>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 18:46:02 +0100
Hello.

14 jan 2014 kl. 18:15 skrev canoeberry <emacs <at> jpayne.net>:

> I have been observing this since Mavericks was released. I did not make a
> connection between distnoted and emacs, other than the following
> observation: both are leaking memory.
> 
> For the first time ever I am finding that my emacs process slowly grows in
> size. I can be editing a small handful of files and be using 500Mb of real
> memory. Never seen that before, ever.
> 
> Distnoted grows much faster, on the order of 1Gb real memory / day. Killing
> that process and having another start up automatically causes some OS X
> features to stop working, e.g., it is not possible to enter Time Machine or
> even see the status of your Time Machine backups anymore.
> 
> I have seen distnoted peg the CPU when Time Machine backups are running or
> recently completed. Meanwhile, the menubar no longer animates the
> in-progress backup, which I assume is not on purpose and possibly even
> related to the issue.
> 

I think that is so OSX can save a bit of power.

> I do not use shells in emacs nowadays.
> 
> I am running emacs from emacsformacosx.
> 
> I have filed bugs with Apple.
> 
> If anybody has any suggestions on how to figure out what is causing Emacs to
> grow in size, I will happily run some experiments for you. I tried to figure
> out how to profile emacs memory but it was not very obvious to me what to
> do.

The obvious thing is to run leaks on Emacs (man leaks) after a garbage collection has been made (M-x garbage-collect).  Leaks may report leaks which in fact are not due to uncollected garbage.

	Jan D.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 20:10:03 GMT) Full text and rfc822 format available.

Message #44 received at submit <at> debbugs.gnu.org (full text, mbox):

From: canoeberry <emacs <at> jpayne.net>
To: Bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 12:09:39 -0800 (PST)
[Message part 1 (text/plain, inline)]
This is what I see if I run the "leaks" program on my Mac on the emacs process:

Leak: 0x1109f7b20  size=160  zone: DefaultMallocZone_0x100659000   OS_dispatch_source  ObjC  libdispatch.dylib
	0x76964c20 0x00007fff 0x00000001 0x00000000 	 L.v............
	0x89abcdef 0xffffffff 0x769666c0 0x00007fff 	.........f.v....
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000001 0x00000000 0x0002940d 0x00000000 	................
	0x8896290c 0x00007fff 0x013000a0 0x00000001 	.)........0.....
	0x109f7c10 0x00000001 0x00000002 0x0000004c 	.|..........L...
	...

A bazillion of them.

I also ran it on a distnoted which I just killed and restarted because the existing one was over 2Gb of real memory (or so it said). It claimed there were no leaks.

This leaks program is pretty cool. It's like a conservative GC algorithm that assumes every integer could be a pointer. So by definition is is conservative.

Anyway - does this piece of information help any smart hacker types?

JP

On 14 Jan 2014, at 17:47, Jan Djärv [via Emacs] <ml-node+s1067599n310141h49 <at> n5.nabble.com> wrote:

> Hello. 
> 
> 14 jan 2014 kl. 18:15 skrev canoeberry <[hidden email]>: 
> 
> > I have been observing this since Mavericks was released. I did not make a 
> > connection between distnoted and emacs, other than the following 
> > observation: both are leaking memory. 
> > 
> > For the first time ever I am finding that my emacs process slowly grows in 
> > size. I can be editing a small handful of files and be using 500Mb of real 
> > memory. Never seen that before, ever. 
> > 
> > Distnoted grows much faster, on the order of 1Gb real memory / day. Killing 
> > that process and having another start up automatically causes some OS X 
> > features to stop working, e.g., it is not possible to enter Time Machine or 
> > even see the status of your Time Machine backups anymore. 
> > 
> > I have seen distnoted peg the CPU when Time Machine backups are running or 
> > recently completed. Meanwhile, the menubar no longer animates the 
> > in-progress backup, which I assume is not on purpose and possibly even 
> > related to the issue. 
> >
> 
> I think that is so OSX can save a bit of power. 
> 
> > I do not use shells in emacs nowadays. 
> > 
> > I am running emacs from emacsformacosx. 
> > 
> > I have filed bugs with Apple. 
> > 
> > If anybody has any suggestions on how to figure out what is causing Emacs to 
> > grow in size, I will happily run some experiments for you. I tried to figure 
> > out how to profile emacs memory but it was not very obvious to me what to 
> > do.
> 
> The obvious thing is to run leaks on Emacs (man leaks) after a garbage collection has been made (M-x garbage-collect).  Leaks may report leaks which in fact are not due to uncollected garbage. 
> 
>         Jan D. 
> 
> 
> 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310141.html
> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process, click here.
> NAML





-----
Jonathan Payne

--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310179.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 20:34:01 GMT) Full text and rfc822 format available.

Message #47 received at submit <at> debbugs.gnu.org (full text, mbox):

From: canoeberry <emacs <at> jpayne.net>
To: Bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 12:33:36 -0800 (PST)
[Message part 1 (text/plain, inline)]
I've fired up Emacs with the -q and -nsl options. So my .emacs is not loaded and neither is the site-lisp. It starts leaking memory at a rate ... well here you go:

$ while true
> do
> sudo leaks 12095 | head -20 | grep "leaks for"
> sleep 1
> done
Process 12095: 935 leaks for 165824 total leaked bytes.
Process 12095: 954 leaks for 168864 total leaked bytes.
Process 12095: 972 leaks for 171744 total leaked bytes.
Process 12095: 986 leaks for 173984 total leaked bytes.
Process 12095: 1005 leaks for 177024 total leaked bytes.
Process 12095: 1025 leaks for 180224 total leaked bytes.
Process 12095: 1039 leaks for 182464 total leaked bytes.
Process 12095: 1057 leaks for 185344 total leaked bytes.
Process 12095: 1076 leaks for 188384 total leaked bytes.
Process 12095: 1090 leaks for 190624 total leaked bytes.
Process 12095: 1107 leaks for 193344 total leaked bytes.
Process 12095: 1127 leaks for 196544 total leaked bytes.
Process 12095: 1147 leaks for 199744 total leaked bytes.
Process 12095: 1158 leaks for 201504 total leaked bytes.
Process 12095: 1178 leaks for 204704 total leaked bytes.
Process 12095: 1195 leaks for 207424 total leaked bytes.
Process 12095: 1209 leaks for 209664 total leaked bytes.

So it's basically something like 20 individual 160 byte leaks per second. If I actually use emacs it seems to have spurts of many more leaks. These do seem like proper leaks because my emacs memory is growing at the same rate as this leaks is reporting, and, I am literally running an emacs with nothing in it and not interacting with it.

Output from dtruss shows kevent activity. A bunch of it. Not much else:

workq_kernreturn(0x20, 0x0, 0x1)		 = 0 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB4F8, 0x1)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB3E8, 0x1)		 = 1 0
kevent64(0x3, 0x1006CB4F8, 0x1)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x7FFF5FBFD2E8, 0x1)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x7FFF5FBFE8B8, 0x1)		 = 1 0
workq_kernreturn(0x20, 0x0, 0x1)		 = 0 0
kevent64(0x3, 0x7FFF5FBFCAF8, 0x1)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x0, 0x0)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
kevent64(0x3, 0x1006CB458, 0x1)		 = 1 0
setitimer(0x0, 0x7FFF5FBFD0B0, 0x0)		 = 0 0
kevent64(0x3, 0x7FFF5FBFE8C8, 0x1)		 = 1 0
workq_kernreturn(0x20, 0x0, 0x1)		 = 0 0
workq_kernreturn(0x20, 0x0, 0x1)		 = 0 0

This is grasping at straws at its worst.

JP

On 14 Jan 2014, at 17:47, Jan Djärv [via Emacs] <ml-node+s1067599n310141h49 <at> n5.nabble.com> wrote:

> Hello. 
> 
> 14 jan 2014 kl. 18:15 skrev canoeberry <[hidden email]>: 
> 
> > I have been observing this since Mavericks was released. I did not make a 
> > connection between distnoted and emacs, other than the following 
> > observation: both are leaking memory. 
> > 
> > For the first time ever I am finding that my emacs process slowly grows in 
> > size. I can be editing a small handful of files and be using 500Mb of real 
> > memory. Never seen that before, ever. 
> > 
> > Distnoted grows much faster, on the order of 1Gb real memory / day. Killing 
> > that process and having another start up automatically causes some OS X 
> > features to stop working, e.g., it is not possible to enter Time Machine or 
> > even see the status of your Time Machine backups anymore. 
> > 
> > I have seen distnoted peg the CPU when Time Machine backups are running or 
> > recently completed. Meanwhile, the menubar no longer animates the 
> > in-progress backup, which I assume is not on purpose and possibly even 
> > related to the issue. 
> >
> 
> I think that is so OSX can save a bit of power. 
> 
> > I do not use shells in emacs nowadays. 
> > 
> > I am running emacs from emacsformacosx. 
> > 
> > I have filed bugs with Apple. 
> > 
> > If anybody has any suggestions on how to figure out what is causing Emacs to 
> > grow in size, I will happily run some experiments for you. I tried to figure 
> > out how to profile emacs memory but it was not very obvious to me what to 
> > do.
> 
> The obvious thing is to run leaks on Emacs (man leaks) after a garbage collection has been made (M-x garbage-collect).  Leaks may report leaks which in fact are not due to uncollected garbage. 
> 
>         Jan D. 
> 
> 
> 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310141.html
> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process, click here.
> NAML





-----
Jonathan Payne

--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310185.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 21:36:02 GMT) Full text and rfc822 format available.

Message #50 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: canoeberry <emacs <at> jpayne.net>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 16:34:36 -0500
> If anybody has any suggestions on how to figure out what is causing Emacs to
> grow in size,

It'd be useful to state precisely which Emacs you're running.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 21:54:01 GMT) Full text and rfc822 format available.

Message #53 received at submit <at> debbugs.gnu.org (full text, mbox):

From: canoeberry <emacs <at> jpayne.net>
To: Bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 13:53:15 -0800 (PST)
[Message part 1 (text/plain, inline)]
Sorry about that!

	GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org

From emacsformacos.com.

I think I was already using this version before I upgraded to Mavericks and it was sometime after the Mavericks upgrade that I noticed the leak. So it's ... likely an incompatible change or just a bug in Mavericks.

JP

On 14 Jan 2014, at 21:36, Stefan Monnier [via Emacs] <ml-node+s1067599n310197h85 <at> n5.nabble.com> wrote:

> > If anybody has any suggestions on how to figure out what is causing Emacs to 
> > grow in size, 
> 
> It'd be useful to state precisely which Emacs you're running. 
> 
> 
>         Stefan 
> 
> 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310197.html
> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process, click here.
> NAML





-----
Jonathan Payne

--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310199.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 22:08:01 GMT) Full text and rfc822 format available.

Message #56 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: canoeberry <emacs <at> jpayne.net>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 23:07:37 +0100
[Message part 1 (text/plain, inline)]
Hello.

14 jan 2014 kl. 22:53 skrev canoeberry <emacs <at> jpayne.net>:

> Sorry about that!
> 
> 	GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org

You should try a newer version, built from the trunk.

	Jan D.

> 
> From emacsformacos.com.
> 
> I think I was already using this version before I upgraded to Mavericks and it was sometime after the Mavericks upgrade that I noticed the leak. So it's ... likely an incompatible change or just a bug in Mavericks.
> 
> JP
> 
> On 14 Jan 2014, at 21:36, Stefan Monnier [via Emacs] <[hidden email]> wrote:
> 
>> > If anybody has any suggestions on how to figure out what is causing Emacs to 
>> > grow in size, 
>> 
>> It'd be useful to state precisely which Emacs you're running. 
>> 
>> 
>>         Stefan 
>> 
>> 
>> 
>> 
>> 
>> If you reply to this email, your message will be added to the discussion below:
>> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310197.html
>> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process, click here.
>> NAML
> 
> Jonathan Payne 
> 
> View this message in context: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
> Sent from the Emacs - Bugs mailing list archive at Nabble.com.

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 22:11:01 GMT) Full text and rfc822 format available.

Message #59 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: canoeberry <emacs <at> jpayne.net>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 23:10:14 +0100
Hello.


14 jan 2014 kl. 21:09 skrev canoeberry <emacs <at> jpayne.net>:

> This is what I see if I run the "leaks" program on my Mac on the emacs process:
> 
> Leak: 0x1109f7b20  size=160  zone: DefaultMallocZone_0x100659000   OS_dispatch_source  ObjC  libdispatch.dylib
> 	0x76964c20 0x00007fff 0x00000001 0x00000000 	 L.v............
> 	0x89abcdef 0xffffffff 0x769666c0 0x00007fff 	.........f.v....
> 	0x00000000 0x00000000 0x00000000 0x00000000 	................
> 	0x00000000 0x00000000 0x00000000 0x00000000 	................
> 	0x00000000 0x00000000 0x00000000 0x00000000 	................
> 	0x00000001 0x00000000 0x0002940d 0x00000000 	................
> 	0x8896290c 0x00007fff 0x013000a0 0x00000001 	.)........0.....
> 	0x109f7c10 0x00000001 0x00000002 0x0000004c 	.|..........L...
> 	...
> 
> A bazillion of them.
> 
> I also ran it on a distnoted which I just killed and restarted because the existing one was over 2Gb of real memory (or so it said). It claimed there were no leaks.
> 
> This leaks program is pretty cool. It's like a conservative GC algorithm that assumes every integer could be a pointer. So by definition is is conservative.
> 
> Anyway - does this piece of information help any smart hacker types?

They are not all like that, somewhere in there is the real leak.  You need to save all output, and put it somewhere it can be read.  If it is large, better not send it to the list.
But if you are doing this, do it on a more recent version than 24.3.

	Jan D.






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Tue, 14 Jan 2014 23:00:02 GMT) Full text and rfc822 format available.

Message #62 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Matthew Leach <matthew <at> mattleach.net>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: canoeberry <emacs <at> jpayne.net>, 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Tue, 14 Jan 2014 22:59:01 +0000
[Message part 1 (text/plain, inline)]
Jan Djärv <jan.h.d <at> swipnet.se> writes:

> They are not all like that, somewhere in there is the real leak.  You
> need to save all output, and put it somewhere it can be read.  If it
> is large, better not send it to the list.  But if you are doing this,
> do it on a more recent version than 24.3.

Trunk Emacs seems okay, I get a much smaller output from leaks. There
are some leaks in there that I think are worth a look though, see
attached.

I just downloaded Emacs for OS X does and it defiantly has a problem with
leaking, a freshly started Emacs already generates over a MB of output
with leaks.

-- 
Matt

[leaks-trunk.txt (text/plain, inline)]
Process:         Emacs [21591]
Path:            /Users/matthew/Development/emacs/build/nextstep/Emacs.app/Contents/MacOS/Emacs
Load Address:    0x100000000
Identifier:      org.gnu.Emacs
Version:         Version 24.3.50 (9.0)
Code Type:       X86-64
Parent Process:  launchd [158]

Date/Time:       2014-01-14 22:46:37.788 +0000
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  7

leaks Report Version:  2.0
Process 21591: 69442 nodes malloced for 37557 KB
Process 21591: 13 leaks for 17264 total leaked bytes.
Leak: 0x13124d800  size=16384  zone: MallocHelperZone_0x10081a000
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x000b0007 0x00000003 0x00030008 0x00000000 	................
	0x00000000 0x00000000 0x00000020 0x0000003a 	........ ...:...
	0x00000125 0x00000000 0x0d565875 0x00000001 	%.......uXV.....
	0x0010000a 0x00000004 0x00008008 0x0000002f 	............/...
	0x00000000 0x00000000 0x0000004e 0x53256e3c 	........N...<n%S
	0x00000126 0x00000000 0x0d565875 0x00000001 	&.......uXV.....
	0x0010000a 0x00000004 0x13c48008 0x4900002f 	............/..I
	...
Leak: 0x6000000b48e0  size=96  zone: DefaultMallocZone_0x10084a000   NSMenuItem  ObjC  AppKit
	0x7f6407a8 0x00007fff 0x00283250 0x00006000 	..d.....P2(..`..
	0x00652a20 0x00006000 0x005170b0 0x00000001 	 *e..`...pQ.....
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x001eda7a 0x00000001 	........z.......
	0x0996fd90 0x00000001 0x00000010 0x00000001 	................
Leak: 0x6000000b4c40  size=96  zone: DefaultMallocZone_0x10084a000   NSMenuItem  ObjC  AppKit
	0x7f6407a8 0x00007fff 0x00283250 0x00006000 	..d.....P2(..`..
	0x00656c20 0x00006000 0x005170b0 0x00000001 	 le..`...pQ.....
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x001eda7a 0x00000001 	........z.......
	0x00000000 0x00000000 0x00000010 0x00000101 	................
Leak: 0x6000000b58a0  size=96  zone: DefaultMallocZone_0x10084a000   NSMenuItem  ObjC  AppKit
	0x7f6407a8 0x00007fff 0x00283250 0x00006000 	..d.....P2(..`..
	0x7f6565c8 0x00007fff 0x7f6565c8 0x00007fff 	.ee......ee.....
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000010 0x00000301 	................
Leak: 0x6000000b65c0  size=96  zone: DefaultMallocZone_0x10084a000   NSMenuItem  ObjC  AppKit
	0x7f6407a8 0x00007fff 0x00283250 0x00006000 	..d.....P2(..`..
	0x0064f5d0 0x00006000 0x005170b0 0x00000001 	..d..`...pQ.....
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x001eda7a 0x00000001 	........z.......
	0x0996fd50 0x00000001 0x00000010 0x00000001 	P...............
Leak: 0x6000000d4ac0  size=112  zone: DefaultMallocZone_0x10084a000   NSCarbonMenuImpl  ObjC  AppKit
	0x7f63c068 0x00007fff 0x00283250 0x00006000 	h.c.....P2(..`..
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x80000000 0xffffffff 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
Leak: 0x60000023b820  size=32  zone: DefaultMallocZone_0x10084a000
	0x000b4c40 0x00006000 0x000b58a0 0x00006000 	@L...`...X...`..
	0x000b65c0 0x00006000 0x000b48e0 0x00006000 	.e...`...H...`..
Leak: 0x600000283250  size=80  zone: DefaultMallocZone_0x10084a000   EmacsMenu  ObjC  Emacs
	0x001fead0 0x00000001 0x00000000 0x00000000 	................
	0x00656c80 0x00006000 0x00653410 0x00006000 	.le..`...4e..`..
	0x00284650 0x00006000 0x00000001 0x00000000 	PF(..`..........
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00100000 0x00000000 0x00000000 0x00000000 	................
Leak: 0x600000284650  size=80  zone: DefaultMallocZone_0x10084a000   _NSMenuImpl  ObjC  AppKit
	0x7f6406b8 0x00007fff 0x000d4ac0 0x00006000 	..d......J...`..
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
Leak: 0x60000064f5d0  size=48  zone: DefaultMallocZone_0x10084a000   __NSCFString  ObjC  CoreFoundation  "Turn Off minor mode"
Leak: 0x600000653410  size=48  zone: DefaultMallocZone_0x10084a000   __NSArrayM  ObjC  CoreFoundation  item count: 4
Leak: 0x600000656c20  size=48  zone: DefaultMallocZone_0x10084a000   __NSCFString  ObjC  CoreFoundation  " from font-lock.el"
Leak: 0x600000656c80  size=48  zone: DefaultMallocZone_0x10084a000   __NSCFString  ObjC  CoreFoundation  " from font-lock.el"

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Wed, 15 Jan 2014 06:27:01 GMT) Full text and rfc822 format available.

Message #65 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Jonathan Payne <emacs <at> jpayne.net>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Wed, 15 Jan 2014 07:26:32 +0100
Hi.

14 jan 2014 kl. 23:17 skrev Jonathan Payne <emacs <at> 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.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Wed, 15 Jan 2014 07:53:02 GMT) Full text and rfc822 format available.

Message #68 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: "Jan D." <jan.h.d <at> swipnet.se>
To: Matthew Leach <matthew <at> mattleach.net>
Cc: canoeberry <emacs <at> jpayne.net>, 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Wed, 15 Jan 2014 08:52:38 +0100
Hello.

Matthew Leach skrev 2014-01-14 23:59:
>
> Jan Djärv <jan.h.d <at> swipnet.se> writes:
>
>> They are not all like that, somewhere in there is the real leak.  You
>> need to save all output, and put it somewhere it can be read.  If it
>> is large, better not send it to the list.  But if you are doing this,
>> do it on a more recent version than 24.3.
>
> Trunk Emacs seems okay, I get a much smaller output from leaks. There
> are some leaks in there that I think are worth a look though, see
> attached.
>
> I just downloaded Emacs for OS X does and it defiantly has a problem with
> leaking, a freshly started Emacs already generates over a MB of output
> with leaks.
>


Can you run this again, but with MallocStackLogging set?  I.e.:

% MallocStackLogging=1 .../path/to/Emacs.app/Contents/MacOS/Emacs

And if you can, briefly describe what you did in Emacs before running
leaks.

Thanks,

	Jan D.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Wed, 15 Jan 2014 10:54:01 GMT) Full text and rfc822 format available.

Message #71 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Matthew Leach <matthew <at> mattleach.net>
To: "Jan D." <jan.h.d <at> swipnet.se>
Cc: canoeberry <emacs <at> jpayne.net>, 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Wed, 15 Jan 2014 10:53:32 +0000
"Jan D." <jan.h.d <at> swipnet.se> writes:

> Can you run this again, but with MallocStackLogging set?  I.e.:
>
> % MallocStackLogging=1 .../path/to/Emacs.app/Contents/MacOS/Emacs
>
> And if you can, briefly describe what you did in Emacs before running
> leaks.

Sure, see [1].

I simply did C-h v font-lock <TAB> to bring up a completion buffer, then
added -keywords <RET> to bring up the help buffer and followed the
reference to font-lock.el. That seemed to cause the leaks.

[1]: https://gist.github.com/anonymous/8434281

-- 
Matt




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Wed, 15 Jan 2014 13:42:02 GMT) Full text and rfc822 format available.

Message #74 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Payne <emacs <at> jpayne.net>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Wed, 15 Jan 2014 13:41:01 +0000
[Message part 1 (text/plain, inline)]
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 <at> swipnet.se> wrote:

> Hi.
> 
> 14 jan 2014 kl. 23:17 skrev Jonathan Payne <emacs <at> 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.
> 

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Fri, 17 Jan 2014 14:36:02 GMT) Full text and rfc822 format available.

Message #77 received at submit <at> debbugs.gnu.org (full text, mbox):

From: vbeffara <vbeffara <at> gmail.com>
To: Bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Fri, 17 Jan 2014 06:11:56 -0800 (PST)
Hi,

Just one thing I noticed, whenever the system is in "leak mode" between
distnoted and emacs: one way to trigger a CPU use spike is to change ambient
light level (say by covering the sensor with your hand). Might be useful in
reproducing / tracing whatever is happening in distnoted ...

(using GNU Emacs 24.3.50.1 from homebrew)

/v



--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310630.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Sat, 18 Jan 2014 22:54:02 GMT) Full text and rfc822 format available.

Message #80 received at submit <at> debbugs.gnu.org (full text, mbox):

From: canoeberry <emacs <at> jpayne.net>
To: Bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Sat, 18 Jan 2014 14:52:48 -0800 (PST)
I had downloaded a nightly and was so happy to see that the memory leak was
gone. However, the nightly has a ton of other problems with a package that
is near and dear to my heart at the moment: mumamo.

So I have downloaded the source and compiled it and tried to patch it with
the suggestion involving a patch early in this bug report, but that has not
solved the problem. Then I remembered that I could get stack traces, which I
have done:

	Call stack: [thread 0x7fff71dce310]: | 0x1 | start | main emacs.c:1528 |
Frecursive_edit keyboard.c:844 | recursive_edit_1 keyboard.c:1148 |
internal_catch eval.c:1060 | command_loop_2 keyboard.c:1168 |
internal_condition_case eval.c:1290 | command_loop_1 keyboard.c:1459 |
read_key_sequence keyboard.c:9234 | read_char keyboard.c:2059 |
wait_reading_process_output process.c:4743 | detect_input_pending_run_timers
keyboard.c:6680 | readable_events keyboard.c:3355 | timer_check
keyboard.c:4378 | call1 eval.c:2572 | Ffuncall eval.c:2850 | funcall_lambda
eval.c:3010 | exec_byte_code bytecode.c:1096 | internal_lisp_condition_case
eval.c:1243 | eval_sub eval.c:2149 | exec_byte_code bytecode.c:900 |
Ffuncall eval.c:2759 | Fapply eval.c:2255 | Ffuncall eval.c:2850 |
funcall_lambda eval.c:3010 | exec_byte_code bytecode.c:900 | Ffuncall
eval.c:2775 | Finput_pending_p keyboard.c:6687 | gobble_input
keyboard.c:6768 | ns_read_socket nsterm.m:3424 | -[NSApplication run] |
-[NSApplication _installMemoryStatusDispatchSources] |
dispatch_source_create | _os_object_alloc_realized | class_createInstance |
calloc | malloc_zone_calloc 
Leak: 0x1040efe20  size=160  zone: DefaultMallocZone_0x100630000  
OS_dispatch_source  ObjC  libdispatch.dylib
	0x71162c20 0x00007fff 0x00000001 0x00000000 	 ,.q............
	0x89abcdef 0xffffffff 0x71164480 0x00007fff 	.........D.q....
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000001 0x00000000 0x00000175 0x00000000 	........u.......
	0x8316090c 0x00007fff 0x00804760 0x00000001 	........`G......
	0x040e2120 0x00000001 0x00000002 0x0000004c 	 !..........L...
	...

The last line of code in emacs that produces this leak is:

      if (++apploopnr != 1)
        {
          emacs_abort ();
        }
      [NSApp run];
      --apploopnr;

well it's the --apploopnr according to leaks! A little weird if you ask me.

Anyway - does anybody have any insights into this?



-----
Jonathan Payne

--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310818.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Sun, 19 Jan 2014 09:34:02 GMT) Full text and rfc822 format available.

Message #83 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: canoeberry <emacs <at> jpayne.net>
Cc: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Sun, 19 Jan 2014 10:33:13 +0100
Hello.

18 jan 2014 kl. 23:52 skrev canoeberry <emacs <at> jpayne.net>:

> I had downloaded a nightly and was so happy to see that the memory leak was
> gone. However, the nightly has a ton of other problems with a package that
> is near and dear to my heart at the moment: mumamo.
> 
> So I have downloaded the source and compiled it and tried to patch it with
> the suggestion involving a patch early in this bug report, but that has not
> solved the problem. Then I remembered that I could get stack traces, which I
> have done:

You are better off trying to get mumamo working with trunk.  There are so many differences between 24.3 and trunk.  It is no trivial task to identify which has memory leak fixes.

> 
> 	Call stack: [thread 0x7fff71dce310]: | 0x1 | start | main emacs.c:1528 |
> Frecursive_edit keyboard.c:844 | recursive_edit_1 keyboard.c:1148 |
> internal_catch eval.c:1060 | command_loop_2 keyboard.c:1168 |
> internal_condition_case eval.c:1290 | command_loop_1 keyboard.c:1459 |
> read_key_sequence keyboard.c:9234 | read_char keyboard.c:2059 |
> wait_reading_process_output process.c:4743 | detect_input_pending_run_timers
> keyboard.c:6680 | readable_events keyboard.c:3355 | timer_check
> keyboard.c:4378 | call1 eval.c:2572 | Ffuncall eval.c:2850 | funcall_lambda
> eval.c:3010 | exec_byte_code bytecode.c:1096 | internal_lisp_condition_case
> eval.c:1243 | eval_sub eval.c:2149 | exec_byte_code bytecode.c:900 |
> Ffuncall eval.c:2759 | Fapply eval.c:2255 | Ffuncall eval.c:2850 |
> funcall_lambda eval.c:3010 | exec_byte_code bytecode.c:900 | Ffuncall
> eval.c:2775 | Finput_pending_p keyboard.c:6687 | gobble_input
> keyboard.c:6768 | ns_read_socket nsterm.m:3424 | -[NSApplication run] |
> -[NSApplication _installMemoryStatusDispatchSources] |
> dispatch_source_create | _os_object_alloc_realized | class_createInstance |
> calloc | malloc_zone_calloc 
> Leak: 0x1040efe20  size=160  zone: DefaultMallocZone_0x100630000  
> OS_dispatch_source  ObjC  libdispatch.dylib
> 	0x71162c20 0x00007fff 0x00000001 0x00000000 	 ,.q............
> 	0x89abcdef 0xffffffff 0x71164480 0x00007fff 	.........D.q....
> 	0x00000000 0x00000000 0x00000000 0x00000000 	................
> 	0x00000000 0x00000000 0x00000000 0x00000000 	................
> 	0x00000000 0x00000000 0x00000000 0x00000000 	................
> 	0x00000001 0x00000000 0x00000175 0x00000000 	........u.......
> 	0x8316090c 0x00007fff 0x00804760 0x00000001 	........`G......
> 	0x040e2120 0x00000001 0x00000002 0x0000004c 	 !..........L...
> 	...
> 
> The last line of code in emacs that produces this leak is:
> 
>      if (++apploopnr != 1)
>        {
>          emacs_abort ();
>        }
>      [NSApp run];
>      --apploopnr;
> 
> well it's the --apploopnr according to leaks! A little weird if you ask me.

The stack trace clearly states that it is in NSApp run (i.e. NSApplication run), so the trace is off by one line.  This happens often.

	Jan D.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Sun, 19 Jan 2014 10:50:02 GMT) Full text and rfc822 format available.

Message #86 received at submit <at> debbugs.gnu.org (full text, mbox):

From: canoeberry <emacs <at> jpayne.net>
To: Bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Sun, 19 Jan 2014 02:49:27 -0800 (PST)
[Message part 1 (text/plain, inline)]
Ironically, the leak was fixed by ... YOU!

On 19 Jan 2014, at 09:34, Jan Djärv [via Emacs] <ml-node+s1067599n310868h86 <at> n5.nabble.com> wrote:

> Hello. 
> 
> 18 jan 2014 kl. 23:52 skrev canoeberry <[hidden email]>: 
> 
> > I had downloaded a nightly and was so happy to see that the memory leak was 
> > gone. However, the nightly has a ton of other problems with a package that 
> > is near and dear to my heart at the moment: mumamo. 
> > 
> > So I have downloaded the source and compiled it and tried to patch it with 
> > the suggestion involving a patch early in this bug report, but that has not 
> > solved the problem. Then I remembered that I could get stack traces, which I 
> > have done: 
> 
> You are better off trying to get mumamo working with trunk.  There are so many differences between 24.3 and trunk.  It is no trivial task to identify which has memory leak fixes. 
> 
> > 
> > Call stack: [thread 0x7fff71dce310]: | 0x1 | start | main emacs.c:1528 | 
> > Frecursive_edit keyboard.c:844 | recursive_edit_1 keyboard.c:1148 | 
> > internal_catch eval.c:1060 | command_loop_2 keyboard.c:1168 | 
> > internal_condition_case eval.c:1290 | command_loop_1 keyboard.c:1459 | 
> > read_key_sequence keyboard.c:9234 | read_char keyboard.c:2059 | 
> > wait_reading_process_output process.c:4743 | detect_input_pending_run_timers 
> > keyboard.c:6680 | readable_events keyboard.c:3355 | timer_check 
> > keyboard.c:4378 | call1 eval.c:2572 | Ffuncall eval.c:2850 | funcall_lambda 
> > eval.c:3010 | exec_byte_code bytecode.c:1096 | internal_lisp_condition_case 
> > eval.c:1243 | eval_sub eval.c:2149 | exec_byte_code bytecode.c:900 | 
> > Ffuncall eval.c:2759 | Fapply eval.c:2255 | Ffuncall eval.c:2850 | 
> > funcall_lambda eval.c:3010 | exec_byte_code bytecode.c:900 | Ffuncall 
> > eval.c:2775 | Finput_pending_p keyboard.c:6687 | gobble_input 
> > keyboard.c:6768 | ns_read_socket nsterm.m:3424 | -[NSApplication run] | 
> > -[NSApplication _installMemoryStatusDispatchSources] | 
> > dispatch_source_create | _os_object_alloc_realized | class_createInstance | 
> > calloc | malloc_zone_calloc 
> > Leak: 0x1040efe20  size=160  zone: DefaultMallocZone_0x100630000   
> > OS_dispatch_source  ObjC  libdispatch.dylib 
> > 0x71162c20 0x00007fff 0x00000001 0x00000000 ,.q............ 
> > 0x89abcdef 0xffffffff 0x71164480 0x00007fff .........D.q.... 
> > 0x00000000 0x00000000 0x00000000 0x00000000 ................ 
> > 0x00000000 0x00000000 0x00000000 0x00000000 ................ 
> > 0x00000000 0x00000000 0x00000000 0x00000000 ................ 
> > 0x00000001 0x00000000 0x00000175 0x00000000 ........u....... 
> > 0x8316090c 0x00007fff 0x00804760 0x00000001 ........`G...... 
> > 0x040e2120 0x00000001 0x00000002 0x0000004c !..........L... 
> > ... 
> > 
> > The last line of code in emacs that produces this leak is: 
> > 
> >      if (++apploopnr != 1) 
> >        { 
> >          emacs_abort (); 
> >        } 
> >      [NSApp run]; 
> >      --apploopnr; 
> > 
> > well it's the --apploopnr according to leaks! A little weird if you ask me.
> 
> The stack trace clearly states that it is in NSApp run (i.e. NSApplication run), so the trace is off by one line.  This happens often. 
> 
>         Jan D. 
> 
> 
> 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310868.html
> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process, click here.
> NAML





-----
Jonathan Payne

--
View this message in context: http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310871.html
Sent from the Emacs - Bugs mailing list archive at Nabble.com.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 20 Jan 2014 09:55:01 GMT) Full text and rfc822 format available.

Message #89 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: SB <richstyles <at> gmail.com>
To: "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Mon, 20 Jan 2014 18:53:52 +0900
After reading reports in this thread that it was fixed in the trunk I
went and applied the aforementioned inline patch to the current trunk
and indeed the distnoted issue seems fixed. Whereas with my patch to
the inline patch the problem seemed a little more tolerable and still
required occasionally killing distnoted (and Emacs.app crashed
although less frequently).

If there is a single commit that can make distnoted behave, it may be
in the interest of others using Mavericks to have this incorporated
into an official point release and close this bug (the distnoted bug
for those affected can be quite severe, locking up the entire machine
in my case). Mavericks is inevitable for many mac users and some
people may not be ready to transition to 24.4 for whatever reasons.

The modified inline patch (only relevant if you use Japanese or some
other language for writing text in Emacs and want seamless language
switching while using various keys/commands) for the current trunk:

https://gist.github.com/anonymous/8517045

On Sun, Jan 19, 2014 at 7:49 PM, canoeberry <emacs <at> jpayne.net> wrote:
> Ironically, the leak was fixed by ... YOU!
>
> On 19 Jan 2014, at 09:34, Jan Djärv [via Emacs] <[hidden email]> wrote:
>
> Hello.
>
> 18 jan 2014 kl. 23:52 skrev canoeberry <<a
> href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=310868&amp;i=0"
> target="_top" rel="nofollow" link="external">[hidden email]>:
>
>> I had downloaded a nightly and was so happy to see that the memory leak
>> was
>> gone. However, the nightly has a ton of other problems with a package that
>> is near and dear to my heart at the moment: mumamo.
>>
>> So I have downloaded the source and compiled it and tried to patch it with
>> the suggestion involving a patch early in this bug report, but that has
>> not
>> solved the problem. Then I remembered that I could get stack traces, which
>> I
>> have done:
>
> You are better off trying to get mumamo working with trunk.  There are so
> many differences between 24.3 and trunk.  It is no trivial task to identify
> which has memory leak fixes.
>
>>
>> Call stack: [thread 0x7fff71dce310]: | 0x1 | start | main emacs.c:1528 |
>> Frecursive_edit keyboard.c:844 | recursive_edit_1 keyboard.c:1148 |
>> internal_catch eval.c:1060 | command_loop_2 keyboard.c:1168 |
>> internal_condition_case eval.c:1290 | command_loop_1 keyboard.c:1459 |
>> read_key_sequence keyboard.c:9234 | read_char keyboard.c:2059 |
>> wait_reading_process_output process.c:4743 |
>> detect_input_pending_run_timers
>> keyboard.c:6680 | readable_events keyboard.c:3355 | timer_check
>> keyboard.c:4378 | call1 eval.c:2572 | Ffuncall eval.c:2850 |
>> funcall_lambda
>> eval.c:3010 | exec_byte_code bytecode.c:1096 |
>> internal_lisp_condition_case
>> eval.c:1243 | eval_sub eval.c:2149 | exec_byte_code bytecode.c:900 |
>> Ffuncall eval.c:2759 | Fapply eval.c:2255 | Ffuncall eval.c:2850 |
>> funcall_lambda eval.c:3010 | exec_byte_code bytecode.c:900 | Ffuncall
>> eval.c:2775 | Finput_pending_p keyboard.c:6687 | gobble_input
>> keyboard.c:6768 | ns_read_socket nsterm.m:3424 | -[NSApplication run] |
>> -[NSApplication _installMemoryStatusDispatchSources] |
>> dispatch_source_create | _os_object_alloc_realized | class_createInstance
>> |
>> calloc | malloc_zone_calloc
>> Leak: 0x1040efe20  size=160  zone: DefaultMallocZone_0x100630000
>> OS_dispatch_source  ObjC  libdispatch.dylib
>> 0x71162c20 0x00007fff 0x00000001 0x00000000 ,.q............
>> 0x89abcdef 0xffffffff 0x71164480 0x00007fff .........D.q....
>> 0x00000000 0x00000000 0x00000000 0x00000000 ................
>> 0x00000000 0x00000000 0x00000000 0x00000000 ................
>> 0x00000000 0x00000000 0x00000000 0x00000000 ................
>> 0x00000001 0x00000000 0x00000175 0x00000000 ........u.......
>> 0x8316090c 0x00007fff 0x00804760 0x00000001 ........`G......
>> 0x040e2120 0x00000001 0x00000002 0x0000004c !..........L...
>> ...
>>
>> The last line of code in emacs that produces this leak is:
>>
>>      if (++apploopnr != 1)
>>        {
>>          emacs_abort ();
>>        }
>>      [NSApp run];
>>      --apploopnr;
>>
>> well it's the --apploopnr according to leaks! A little weird if you ask
>> me.
> The stack trace clearly states that it is in NSApp run (i.e. NSApplication
> run), so the trace is off by one line.  This happens often.
>
>         Jan D.
>
>
>
>
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310868.html
> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process,
> click here.
> NAML
>
>
> Jonathan Payne
>
> ________________________________
> View this message in context: Re: bug#15946: 24.3; Mac OS X, Mavericks,
> distnoted process
> Sent from the Emacs - Bugs mailing list archive at Nabble.com.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 20 Jan 2014 11:16:01 GMT) Full text and rfc822 format available.

Message #92 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: SB <richstyles <at> gmail.com>
Cc: "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Mon, 20 Jan 2014 12:15:24 +0100
Hello.

20 jan 2014 kl. 10:53 skrev SB <richstyles <at> gmail.com>:

> After reading reports in this thread that it was fixed in the trunk I
> went and applied the aforementioned inline patch to the current trunk
> and indeed the distnoted issue seems fixed. Whereas with my patch to
> the inline patch the problem seemed a little more tolerable and still
> required occasionally killing distnoted (and Emacs.app crashed
> although less frequently).
> 
> If there is a single commit that can make distnoted behave, it may be
> in the interest of others using Mavericks to have this incorporated
> into an official point release and close this bug (the distnoted bug
> for those affected can be quite severe, locking up the entire machine
> in my case). Mavericks is inevitable for many mac users and some
> people may not be ready to transition to 24.4 for whatever reasons.

There will not be any release for the 24.3 branch.  24.4 is next.

> 
> The modified inline patch (only relevant if you use Japanese or some
> other language for writing text in Emacs and want seamless language
> switching while using various keys/commands) for the current trunk:
> 
> https://gist.github.com/anonymous/8517045

The patch is way too big to be incorporated into Emacs in the current feature freeze.

	Jan D.

> 
> On Sun, Jan 19, 2014 at 7:49 PM, canoeberry <emacs <at> jpayne.net> wrote:
>> Ironically, the leak was fixed by ... YOU!
>> 
>> On 19 Jan 2014, at 09:34, Jan Djärv [via Emacs] <[hidden email]> wrote:
>> 
>> Hello.
>> 
>> 18 jan 2014 kl. 23:52 skrev canoeberry <<a
>> href="x-msg://11/user/SendEmail.jtp?type=node&amp;node=310868&amp;i=0"
>> target="_top" rel="nofollow" link="external">[hidden email]>:
>> 
>>> I had downloaded a nightly and was so happy to see that the memory leak
>>> was
>>> gone. However, the nightly has a ton of other problems with a package that
>>> is near and dear to my heart at the moment: mumamo.
>>> 
>>> So I have downloaded the source and compiled it and tried to patch it with
>>> the suggestion involving a patch early in this bug report, but that has
>>> not
>>> solved the problem. Then I remembered that I could get stack traces, which
>>> I
>>> have done:
>> 
>> You are better off trying to get mumamo working with trunk.  There are so
>> many differences between 24.3 and trunk.  It is no trivial task to identify
>> which has memory leak fixes.
>> 
>>> 
>>> Call stack: [thread 0x7fff71dce310]: | 0x1 | start | main emacs.c:1528 |
>>> Frecursive_edit keyboard.c:844 | recursive_edit_1 keyboard.c:1148 |
>>> internal_catch eval.c:1060 | command_loop_2 keyboard.c:1168 |
>>> internal_condition_case eval.c:1290 | command_loop_1 keyboard.c:1459 |
>>> read_key_sequence keyboard.c:9234 | read_char keyboard.c:2059 |
>>> wait_reading_process_output process.c:4743 |
>>> detect_input_pending_run_timers
>>> keyboard.c:6680 | readable_events keyboard.c:3355 | timer_check
>>> keyboard.c:4378 | call1 eval.c:2572 | Ffuncall eval.c:2850 |
>>> funcall_lambda
>>> eval.c:3010 | exec_byte_code bytecode.c:1096 |
>>> internal_lisp_condition_case
>>> eval.c:1243 | eval_sub eval.c:2149 | exec_byte_code bytecode.c:900 |
>>> Ffuncall eval.c:2759 | Fapply eval.c:2255 | Ffuncall eval.c:2850 |
>>> funcall_lambda eval.c:3010 | exec_byte_code bytecode.c:900 | Ffuncall
>>> eval.c:2775 | Finput_pending_p keyboard.c:6687 | gobble_input
>>> keyboard.c:6768 | ns_read_socket nsterm.m:3424 | -[NSApplication run] |
>>> -[NSApplication _installMemoryStatusDispatchSources] |
>>> dispatch_source_create | _os_object_alloc_realized | class_createInstance
>>> |
>>> calloc | malloc_zone_calloc
>>> Leak: 0x1040efe20  size=160  zone: DefaultMallocZone_0x100630000
>>> OS_dispatch_source  ObjC  libdispatch.dylib
>>> 0x71162c20 0x00007fff 0x00000001 0x00000000 ,.q............
>>> 0x89abcdef 0xffffffff 0x71164480 0x00007fff .........D.q....
>>> 0x00000000 0x00000000 0x00000000 0x00000000 ................
>>> 0x00000000 0x00000000 0x00000000 0x00000000 ................
>>> 0x00000000 0x00000000 0x00000000 0x00000000 ................
>>> 0x00000001 0x00000000 0x00000175 0x00000000 ........u.......
>>> 0x8316090c 0x00007fff 0x00804760 0x00000001 ........`G......
>>> 0x040e2120 0x00000001 0x00000002 0x0000004c !..........L...
>>> ...
>>> 
>>> The last line of code in emacs that produces this leak is:
>>> 
>>>     if (++apploopnr != 1)
>>>       {
>>>         emacs_abort ();
>>>       }
>>>     [NSApp run];
>>>     --apploopnr;
>>> 
>>> well it's the --apploopnr according to leaks! A little weird if you ask
>>> me.
>> The stack trace clearly states that it is in NSApp run (i.e. NSApplication
>> run), so the trace is off by one line.  This happens often.
>> 
>>        Jan D.
>> 
>> 
>> 
>> 
>> 
>> 
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://emacs.1067599.n5.nabble.com/bug-15946-24-3-Mac-OS-X-Mavericks-distnoted-process-tp303500p310868.html
>> To unsubscribe from bug#15946: 24.3; Mac OS X, Mavericks, distnoted process,
>> click here.
>> NAML
>> 
>> 
>> Jonathan Payne
>> 
>> ________________________________
>> View this message in context: Re: bug#15946: 24.3; Mac OS X, Mavericks,
>> distnoted process
>> Sent from the Emacs - Bugs mailing list archive at Nabble.com.
> 
> 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 20 Jan 2014 12:02:01 GMT) Full text and rfc822 format available.

Message #95 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Payne <emacs <at> jpayne.net>
To: 15946 <at> debbugs.gnu.org
Subject: a patch against emacs 24.3.1 for fixing the distnoted memory leak
Date: Mon, 20 Jan 2014 12:01:30 +0000
This is FYI for people who do not want to wait for emacs 24.4 and cannot use one of the current nightlies to get around the Mavericks distnoted issue.

I am not a Mac programmer unfortunately, so take this with a grain of salt. My analysis of the problem is this:

1) When Mavericks came out a memory leak was discovered and fixed by Jan D. who is a frequent contributor to ns (Next Step) emacs for Mac OS X.

2) His fix, I think, was to avoid calling Application.run 20 times / second by introducing a variable called "shouldKeepRunning" into the Application.run method.

3) Repeatedly calling Application.run was causing a 160 byte leak each time inside emacs. But I think it was also causing a problem with distnoted, and I am speculating (knowing NOTHING ABOUT IT) that each call to run() was causing some sort of registration with distnoted. That registration, I assume, creates some sort of context in distnoted that is substantially larger than 160 bytes. So the leak in emacs was relatively slow, the one in distnoted was much larger.

This would also explain why distnoted would get slower as time goes by because it has hundreds of thousands of registrations, all for emacs, which I assume it was still trying to deliver notifications to, but really, I have no idea what I am talking about.

So, I applied part of Jan D's patch to emacs-24.3 that addressed this particular problem, and presto-chango, the leak is gone, distnoted is happy, and all my current elisp packages work because it's still emacs-24.3 and not emacs-24.4 which I assume is what's being created in the trunk today.

So - should I post this particular patch some place? Are other people interested in having this patch?

JP





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 20 Jan 2014 12:33:01 GMT) Full text and rfc822 format available.

Message #98 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: SB <richstyles <at> gmail.com>
To: Jonathan Payne <emacs <at> jpayne.net>
Cc: "15946 <at> debbugs.gnu.org" <15946 <at> debbugs.gnu.org>
Subject: Re: bug#15946: a patch against emacs 24.3.1 for fixing the distnoted
 memory leak
Date: Mon, 20 Jan 2014 21:32:03 +0900
Great detective work. I'd like to see the patch! ;)

Even if it's superseded by the next release (24.4), some people might
be stuck on 24.3 for whatever reason and right now this bug thread is
the best reference for information.

In the mean time, some more experienced people can look at the patch
and further isolate the relevant changes for a tighter patch or
confirm your work. People with the bug can build with your patch and
confirm whether this bug is fixed by it too.

On Mon, Jan 20, 2014 at 9:01 PM, Jonathan Payne <emacs <at> jpayne.net> wrote:
> This is FYI for people who do not want to wait for emacs 24.4 and cannot use one of the current nightlies to get around the Mavericks distnoted issue.
>
> I am not a Mac programmer unfortunately, so take this with a grain of salt. My analysis of the problem is this:
>
> 1) When Mavericks came out a memory leak was discovered and fixed by Jan D. who is a frequent contributor to ns (Next Step) emacs for Mac OS X.
>
> 2) His fix, I think, was to avoid calling Application.run 20 times / second by introducing a variable called "shouldKeepRunning" into the Application.run method.
>
> 3) Repeatedly calling Application.run was causing a 160 byte leak each time inside emacs. But I think it was also causing a problem with distnoted, and I am speculating (knowing NOTHING ABOUT IT) that each call to run() was causing some sort of registration with distnoted. That registration, I assume, creates some sort of context in distnoted that is substantially larger than 160 bytes. So the leak in emacs was relatively slow, the one in distnoted was much larger.
>
> This would also explain why distnoted would get slower as time goes by because it has hundreds of thousands of registrations, all for emacs, which I assume it was still trying to deliver notifications to, but really, I have no idea what I am talking about.
>
> So, I applied part of Jan D's patch to emacs-24.3 that addressed this particular problem, and presto-chango, the leak is gone, distnoted is happy, and all my current elisp packages work because it's still emacs-24.3 and not emacs-24.4 which I assume is what's being created in the trunk today.
>
> So - should I post this particular patch some place? Are other people interested in having this patch?
>
> JP
>
>
>
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 20 Jan 2014 16:48:04 GMT) Full text and rfc822 format available.

Message #101 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Payne <jpayne <at> flipboard.com>
To: 15946 <at> debbugs.gnu.org
Subject: a patch against emacs 24.3.1 for fixing the distnoted memory leak
Date: Mon, 20 Jan 2014 10:43:57 +0000
This is FYI for people who do not want to wait for emacs 24.4 and cannot use one of the current nightlies to get around the Mavericks distnoted issue.

I am not a Mac programmer unfortunately, so take this with a grain of salt. My analysis of the problem is this:

1) When Mavericks came out a memory leak was discovered and fixed by Jan D. who is a frequent contributor to ns (Next Step) emacs for Mac OS X.

2) His fix, I think, was to avoid calling Application.run 20 times / second by introducing a variable called "shouldKeepRunning" into the Application.run method.

3) Repeatedly calling Application.run was causing a 160 byte leak each time inside emacs. But I think it was also causing a problem with distnoted, and I am speculating (knowing NOTHING ABOUT IT) that each call to run() was causing some sort of registration with distnoted. That registration, I assume, creates some sort of context in distnoted that is substantially larger than 160 bytes. So the leak in emacs was relatively slow, the one in distnoted was much larger.

This would also explain why distnoted would get slower as time goes by because it has hundreds of thousands of registrations, all for emacs, which I assume it was still trying to deliver notifications to, but really, I have no idea what I am talking about.

So, I applied part of Jan D's patch to emacs-24.3 that addressed this particular problem, and presto-chango, the leak is gone, distnoted is happy, and all my current elisp packages work because it's still emacs-24.3 and not emacs-24.4 which I assume is what's being created in the trunk today.

So - should I post this particular patch some place? Are other people interested in having this patch?

JP





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Sat, 26 Dec 2015 01:15:01 GMT) Full text and rfc822 format available.

Message #104 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: SB <richstyles <at> gmail.com>, 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Sat, 26 Dec 2015 02:14:33 +0100
Jan Djärv <jan.h.d <at> swipnet.se> writes:

> Hello.
>
> 20 jan 2014 kl. 10:53 skrev SB <richstyles <at> gmail.com>:
>
>> After reading reports in this thread that it was fixed in the trunk I
>> went and applied the aforementioned inline patch to the current trunk
>> and indeed the distnoted issue seems fixed. Whereas with my patch to
>> the inline patch the problem seemed a little more tolerable and still
>> required occasionally killing distnoted (and Emacs.app crashed
>> although less frequently).
>> 
>> If there is a single commit that can make distnoted behave, it may be
>> in the interest of others using Mavericks to have this incorporated
>> into an official point release and close this bug (the distnoted bug
>> for those affected can be quite severe, locking up the entire machine
>> in my case). Mavericks is inevitable for many mac users and some
>> people may not be ready to transition to 24.4 for whatever reasons.
>
> There will not be any release for the 24.3 branch.  24.4 is next.
>
>> 
>> The modified inline patch (only relevant if you use Japanese or some
>> other language for writing text in Emacs and want seamless language
>> switching while using various keys/commands) for the current trunk:
>> 
>> https://gist.github.com/anonymous/8517045
>
> The patch is way too big to be incorporated into Emacs in the current feature freeze.

Is this still a problem on Mavericks with Emacs 25?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Reply sent to Alan Third <alan <at> idiocy.org>:
You have taken responsibility. (Sun, 17 Jul 2016 20:58:01 GMT) Full text and rfc822 format available.

Notification sent to Donald Tillman <don <at> till.com>:
bug acknowledged by developer. (Sun, 17 Jul 2016 20:58:02 GMT) Full text and rfc822 format available.

Message #109 received at 15946-done <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: SB <richstyles <at> gmail.com>, Jan Djärv <jan.h.d <at> swipnet.se>,
 15946-done <at> debbugs.gnu.org
Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
Date: Sun, 17 Jul 2016 21:57:34 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Is this still a problem on Mavericks with Emacs 25?

No response in 29 weeks, I think we can close this one.
-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15946; Package emacs. (Mon, 18 Jul 2016 02:02:02 GMT) Full text and rfc822 format available.

Message #112 received at 15946 <at> debbugs.gnu.org (full text, mbox):

From: Donald Tillman <don <at> till.com>
To: 15946 <at> debbugs.gnu.org
Subject: Re: bug#15946: closed (Re: bug#15946: 24.3;
 Mac OS X, Mavericks, distnoted process)
Date: Sun, 17 Jul 2016 19:00:50 -0700
[Message part 1 (text/plain, inline)]
Yes, this was fixed long ago.  I've been using the builds from emacsformacosx.com and the problem has not recurred.

And thanks, 'great job, it's appreciated.

  -- Don

--
Don Tillman
Palo Alto, California


> On Jul 17, 2016, at 1:58 PM, GNU bug Tracking System <help-debbugs <at> gnu.org> wrote:
> 
> Your bug report
> 
> #15946: 24.3; Mac OS X, Mavericks, distnoted process
> 
> which was filed against the emacs package, has been closed.
> 
> The explanation is attached below, along with your original report.
> If you require more details, please reply to 15946 <at> debbugs.gnu.org.
> 
> -- 
> 15946: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15946
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org with problems
> 
> From: Alan Third <alan <at> idiocy.org>
> Subject: Re: bug#15946: 24.3; Mac OS X, Mavericks, distnoted process
> Date: July 17, 2016 at 1:57:34 PM PDT
> To: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: SB <richstyles <at> gmail.com>, Jan Djärv <jan.h.d <at> swipnet.se>, 15946-done <at> debbugs.gnu.org
> 
> 
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> 
>> Is this still a problem on Mavericks with Emacs 25?
> 
> No response in 29 weeks, I think we can close this one.
> -- 
> Alan Third
> 
> 
> 
> 
> From: Donald Tillman <don <at> till.com>
> Subject: 24.3; Mac OS X, Mavericks, distnoted process
> Date: November 21, 2013 at 10:18:09 AM PST
> To: bug-gnu-emacs <at> gnu.org
> 
> 
> --text follows this line--
> This bug report will be sent to the Bug-GNU-Emacs mailing list
> and the GNU bug tracker at debbugs.gnu.org.  Please check that
> the From: line contains a valid email address.  After a delay of up
> to one day, you should receive an acknowledgment at that address.
> 
> Please write in English if possible, as the Emacs maintainers
> usually do not have translators for other languages.
> 
> Please describe exactly what actions triggered the bug, and
> the precise symptoms of the bug.  If you can, give a recipe
> starting from `emacs -Q':
> 
> ----
> 
> Hi!
> 
> I use Emacs on Mac OS X, Mavericks, Intel MacBook Pro, downloaded from emacsformacosx.com.
> 
> Running Emacs, a process named "distnoted" starts around 1% or 2% of the CPU, and after a while, slowly works its way up to 50% to 100% of the CPU.  Yoiks!  Actually there appear to be 3 distnoted processes, but only one eats up the CPU.
> 
> Quitting Emacs brings distnoted down to under 1% within seconds. 
> 
>  -- Don
> 
> 
> 
> If Emacs crashed, and you have the Emacs process in the gdb debugger,
> please include the output from the following gdb commands:
>    `bt full' and `xbacktrace'.
> For information about debugging Emacs, please read the file
> /Applications/Emacs.app/Contents/Resources/etc/DEBUG.
> 
> 
> In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
> of 2013-03-12 on bob.porkrind.org
> Windowing system distributor `Apple', version 10.3.1265
> Configured using:
> `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
> '--with-ns' 'build_alias=i686-apple-darwin'
> 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
> -isystem
> /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
> -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''
> 
> Important settings:
>  locale-coding-system: nil
>  default enable-multibyte-characters: t
> 
> Major mode: Fundamental
> 
> Minor modes in effect:
>  tooltip-mode: t
>  mouse-wheel-mode: t
>  tool-bar-mode: t
>  menu-bar-mode: t
>  file-name-shadow-mode: t
>  global-font-lock-mode: t
>  blink-cursor-mode: t
>  auto-composition-mode: t
>  auto-encryption-mode: t
>  auto-compression-mode: t
>  buffer-read-only: t
>  line-number-mode: t
>  transient-mark-mode: t
> 
> Recent input:
> <help-echo> M-x r e p o r t SPC e m a <tab> <retur
> n>
> 
> Recent messages:
> For information about GNU Emacs and the GNU system, type C-h C-a.
> 
> Load-path shadows:
> None found.
> 
> Features:
> (shadow sort gnus-util mail-extr warnings emacsbug message format-spec
> rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
> rfc2231 mailabbrev gmm-utils mailheader sendmail rainbow-mode-autoloads
> svg-clock-autoloads package rmail rfc2047 rfc2045 ietf-drums mm-util
> mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
> lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
> fringe tabulated-list newcomment lisp-mode register page menu-bar
> rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
> facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
> tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
> czech european ethiopic indian cyrillic chinese case-table epa-hook
> jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
> cus-face macroexp files text-properties overlay sha1 md5 base64 format
> env code-pages mule custom widget hashtable-print-readable backquote
> make-network-process ns multi-tty emacs)
> 
> 
> --
> Don Tillman
> Palo Alto, California
> don <at> till.com
> http://www.till.com
> 
> 
> 
> 
> 
> 
> 
> 



[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 15 Aug 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.