From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Purcell Newsgroups: gmane.emacs.bugs Subject: bug#17751: 24.4.50; More memory leaks under OS X Mavericks Date: Tue, 10 Jun 2014 21:55:33 +0100 Message-ID: <4E76EFA4-1364-44C7-BBEC-7B8AA30675C7@sanityinc.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1402433854 5943 80.91.229.3 (10 Jun 2014 20:57:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2014 20:57:34 +0000 (UTC) To: 17751@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 10 22:57:28 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WuT6d-0002rk-NO for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jun 2014 22:57:19 +0200 Original-Received: from localhost ([::1]:42127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuT6d-0004UK-5W for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jun 2014 16:57:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuT6T-0004TO-Mw for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2014 16:57:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuT6M-0004a5-UQ for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2014 16:57:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuT6M-0004Zz-QO for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2014 16:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WuT6M-0004jI-Bw for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2014 16:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Jun 2014 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140243376718102 (code B ref -1); Tue, 10 Jun 2014 20:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jun 2014 20:56:07 +0000 Original-Received: from localhost ([127.0.0.1]:43235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WuT5T-0004hu-22 for submit@debbugs.gnu.org; Tue, 10 Jun 2014 16:56:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49378) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WuT5P-0004hM-FH for submit@debbugs.gnu.org; Tue, 10 Jun 2014 16:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuT5D-00043M-90 for submit@debbugs.gnu.org; Tue, 10 Jun 2014 16:55:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuT5D-00043I-6B for submit@debbugs.gnu.org; Tue, 10 Jun 2014 16:55:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuT57-0004RF-9A for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2014 16:55:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuT51-000420-AR for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2014 16:55:45 -0400 Original-Received: from h1189701.stratoserver.net ([85.214.32.38]:40398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuT50-00041Z-Lj for bug-gnu-emacs@gnu.org; Tue, 10 Jun 2014 16:55:38 -0400 Original-Received: from [192.168.1.103] (host86-153-252-168.range86-153.btcentralplus.com [86.153.252.168]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id ADD18820089 for ; Tue, 10 Jun 2014 22:55:35 +0200 (CEST) X-Mailer: Apple Mail (2.1878.2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90225 Archived-At: Even with this recent nightly Emacs build from emacsformacosx.com, I've been suffering from the distnoted memory/CPU-ballooning issue addressed = in #15946, with that process reaching > 100% CPU and several GB in memory. Quitting Emacs solves the problem. In the discussion on #15946, Jan D suggested running "leaks" on Emacs to see what's going on, so I tried that: Starting with an "emacs -Q", I can fire up the "leaks" command in a loop and watch Emacs start to leak memory. While Emacs is the front-most application and the mouse is moving above it, new leaks appear. When the mouse stops, the leaks stop appearing. While the cursor blinks (as it does, by default), new leaks appear. When the cursor stops blinking after a few seconds, the leaks stop appearing. (Unless the mouse is also moving.) As I write this message in the clean "emacs -Q" instance, "leaks" tells me: Process 60460: 53511 leaks for 11106784 total leaked bytes. So 11MB leaked in the space of a few minutes and a few lines typed, with just a couple of buffers open! The leaks look like this: Leak: 0x10c1d62a0 size=3D160 zone: DefaultMallocZone_0x1006c5000 = OS_dispatch_source ObjC libdispatch.dylib 0x762d8c20 0x00007fff 0x00000001 0x00000000 .-v............ 0x89abcdef 0xffffffff 0x762da480 0x00007fff ..........-v.... 0x00000000 0x00000000 0x00000000 0x00000000 ................ 0x00000000 0x00000000 0x00000000 0x00000000 ................ 0x00000000 0x00000000 0x00000000 0x00000000 ................ 0x00000001 0x00000000 0x00009cc4 0x00000000 ................ 0x8979a90c 0x00007fff 0x014002f0 0x00000001 ..y.......@..... 0x0c1d6390 0x00000001 0x00000002 0x0000004c .c..........L... ... Commenters in #15946 noted that they felt like application switching was causing leaks, and what I'm seeing points to event handling or timer = loops. Any insights into what might be going on? This strikes me as a serious = issue. In GNU Emacs 24.4.50.1 (x86_64-apple-darwin, NS appkit-1038.36 Version = 10.6.8 (Build 10K549)) of 2014-06-04 on bob.porkrind.org Repository revision: eliz@gnu.org-20140604075416-fzf3twev7l2gdfgm Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --host=3Dx86_64-apple-darwin --build=3Di686-apple-darwin --with-ns' Configured features: ACL LIBXML2 ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: s-x M-x r e p o r t - e m a c s =20 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. kill-region: The mark is not set now, so there is no region Making completion list... user-error: End of history; no default available Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 nadvice 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 cocoa ns multi-tty emacs) Memory information: ((conses 16 80671 6737) (symbols 48 18479 0) (miscs 40 37 114) (strings 32 12454 4751) (string-bytes 1 326584) (vectors 16 9358) (vector-slots 8 370915 6294) (floats 8 58 214) (intervals 56 191 0) (buffers 960 12))