From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.bugs Subject: bug#12247: 24.2.50; Leak in NextStep autorelease Date: Wed, 22 Aug 2012 08:00:24 +0200 Message-ID: <2B91EB88-36A9-44B1-A494-390EB7DB6491@gmail.com> References: <02A2C1DB-D0AD-49C9-90C7-4C2259C838B2@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345615251 17984 80.91.229.3 (22 Aug 2012 06:00:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2012 06:00:51 +0000 (UTC) Cc: 12247@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 08:00:49 2012 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 1T43zj-0000Yn-Rk for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 08:00:48 +0200 Original-Received: from localhost ([::1]:54519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T43zi-0004CJ-AZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 02:00:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T43ze-0004C3-3B for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 02:00:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T43zc-0000Qm-6Z for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 02:00:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T43zc-0000Qi-0a for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 02:00:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T43zy-0004D9-El for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 02:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Aug 2012 06:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12247 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12247-submit@debbugs.gnu.org id=B12247.134561525616176 (code B ref 12247); Wed, 22 Aug 2012 06:01:02 +0000 Original-Received: (at 12247) by debbugs.gnu.org; 22 Aug 2012 06:00:56 +0000 Original-Received: from localhost ([127.0.0.1]:42479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T43zq-0004Co-M8 for submit@debbugs.gnu.org; Wed, 22 Aug 2012 02:00:55 -0400 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:56024) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T43zm-0004Cf-FM for 12247@debbugs.gnu.org; Wed, 22 Aug 2012 02:00:52 -0400 Original-Received: by wibhm6 with SMTP id hm6so416658wib.15 for <12247@debbugs.gnu.org>; Tue, 21 Aug 2012 23:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=/2ADH0a9SD91uy+mWA9IBx03xz2cAqxQz8Lb0vi0Y2U=; b=erYQjxPwDghhA4NdqcZ0ukfntvuXf4srcIgtTjwCqS3QaSfbMJdv+fW/QavUJwkuf+ lb+Rlf5oPBWVwzYeo25qw0+IOxygh8iV61eeNsAiu32wvyDlznsTFR2gACVwTvIcGKfW AroSsYZ//sYazNwOY6HQNSDNA4PtlX/a5FgVLe0rolCqvYgP2vGb1iWAXywHuLM+h/mk 0ndM2TotYAFy2adsB9KQwkNk2ClczEPblIk9IM7b7agM5g7/tsLY3vlmcvribL18kPwQ suGCisyROlFmFqzpoJnKi3RcyWK4FxOwr+LpzpmhZ6S/A8pMg6z45owsZ/lmHQZLOvLa 3IGg== Original-Received: by 10.180.96.199 with SMTP id du7mr2920306wib.21.1345615226838; Tue, 21 Aug 2012 23:00:26 -0700 (PDT) Original-Received: from [10.0.2.25] (catv-80-99-177-93.catv.broadband.hu. [80.99.177.93]) by mx.google.com with ESMTPS id k20sm37572564wiv.11.2012.08.21.23.00.25 (version=SSLv3 cipher=OTHER); Tue, 21 Aug 2012 23:00:26 -0700 (PDT) In-Reply-To: <02A2C1DB-D0AD-49C9-90C7-4C2259C838B2@swipnet.se> X-Mailer: Apple Mail (2.1084) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63379 Archived-At: Indeed that fixes it. I never would have guessed it was the cursor. Thanks, Ivan On Aug 21, 2012, at 10:51 PM, Jan Dj=E4rv wrote: > Hello. >=20 > 21 aug 2012 kl. 15:49 skrev Ivan Andrus: >=20 >> Starting from `emacs -Q` with a NextStep build (well, Cocoa actually) >> run M-x shell RET and every half second the following message is = printed >> to the console: >>=20 >> 2012-08-21 12:26:07.872 Emacs[58915:3403] *** = __NSAutoreleaseNoPool(): Object 0x1007c9200 of class NSEvent = autoreleased with no pool in place - just leaking >>=20 >=20 > That would be the blinking cursor. > I can't reproduce this on 10.7. However, I have checked in a fix. = Can you test it? >=20 > Thanks, >=20 > Jan D. >=20 >=20 >> Setting the environment variable NSAutoreleaseHaltOnNoPool=3DYES and >> running under gdb I get the following backtrace: >>=20 >>=20 >> Program received signal SIGTRAP, Trace/breakpoint trap. >> [Switching to process 59016] >> 0x00007fff81ab8d61 in __NSAutoreleaseNoPool () >> (gdb) thread apply all bt >>=20 >> Thread 5 (process 59016): >> #0 0x00007fff80bb2a2a in __workq_kernreturn () >> #1 0x00007fff80bb2e3c in _pthread_wqthread () >> #2 0x00007fff80bb2aa5 in start_wqthread () >>=20 >> Thread 4 (process 59016): >> #0 0x00007fff81ab8d61 in __NSAutoreleaseNoPool () >> #1 0x00007fff81a03e79 in _CFAutoreleasePoolAddObject () >> #2 0x00007fff81a03be6 in -[NSObject(NSObject) autorelease] () >> #3 0x00007fff8659265e in +[NSEvent = otherEventWithType:location:modifierFlags:timestamp:windowNumber:context:s= ubtype:data1:data2:] () >> #4 0x000000010018eb6e in ns_send_appdefined (value=3D) at nsterm.m:3394 >> #5 0x000000010019079a in -[EmacsApp fd_handler:] (self=3D, _cmd=3D, unused=3D) at nsterm.m:4653 >> #6 0x00007fff82d91114 in __NSThread__main__ () >> #7 0x00007fff80bd1fd6 in _pthread_start () >> #8 0x00007fff80bd1e89 in thread_start () >>=20 >> Thread 3 (process 59016): >> #0 0x00007fff80bb2a2a in __workq_kernreturn () >> #1 0x00007fff80bb2e3c in _pthread_wqthread () >> #2 0x00007fff80bb2aa5 in start_wqthread () >>=20 >> Thread 2 (process 59016): >> #0 0x00007fff80bb1c0a in kevent () >> #1 0x00007fff80bb3add in _dispatch_mgr_invoke () >> #2 0x00007fff80bb37b4 in _dispatch_queue_invoke () >> #3 0x00007fff80bb32de in _dispatch_worker_thread2 () >> #4 0x00007fff80bb2c08 in _pthread_wqthread () >> #5 0x00007fff80bb2aa5 in start_wqthread () >>=20 >> Thread 1 (process 59016): >> #0 0x00007fff80b98d7a in mach_msg_trap () >> #1 0x00007fff80b993ed in mach_msg () >> #2 0x00007fff819fa902 in __CFRunLoopRun () >> #3 0x00007fff819f9d8f in CFRunLoopRunSpecific () >> #4 0x00007fff890bb7ee in RunCurrentEventLoopInMode () >> #5 0x00007fff890bb5f3 in ReceiveNextEventCommon () >> #6 0x00007fff890bb4ac in BlockUntilNextEventMatchingListInMode () >> #7 0x00007fff86378eb2 in _DPSNextEvent () >> #8 0x00007fff86378801 in -[NSApplication = nextEventMatchingMask:untilDate:inMode:dequeue:] () >> #9 0x00007fff8633e68f in -[NSApplication run] () >> #10 0x000000010019ac26 in ns_select (nfds=3D, readfds=3D0x7fff5fbfdca0, = writefds=3D0x7fff5fbfdc20, exceptfds=3D, timeout=3D0x7fff5fbfdd40, sigmask=3D) at nsterm.m:3573 >> #11 0x000000010016a27d in wait_reading_process_output = (time_limit=3D, = nsecs=3D0, read_kbd=3D-1, do_display=3D1, wait_for_cell=3D4320145466, = wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4680 >> #12 0x00000001000b6bf6 in read_char (commandflag=3D1, nmaps=3D2, = maps=3D0x7fff5fbfe190, prev_event=3D, used_mouse_menu=3D0x7fff5fbfe3b4, end_time=3D0x0) at = keyboard.c:3915 >> #13 0x00000001000b8ca5 in read_key_sequence (keybuf=3D0x7fff5fbfe470, = bufsize=3D30, prompt=3D4320145466, dont_downcase_last=3D0, = can_return_switch_frame=3D1, fix_current_buffer=3D1) at keyboard.c:9372 >> #14 0x00000001000bb0ae in command_loop_1 () at keyboard.c:1510 >> #15 0x0000000100122605 in internal_condition_case (bfun=3D0x1000bae50 = , handlers=3D4320212330, hfun=3D0x1000b1580 ) = at eval.c:1322 >> #16 0x00000001000af137 in command_loop_2 (ignore=3D) at keyboard.c:1204 >> #17 0x000000010012270b in internal_catch (tag=3D, func=3D0x1000af100 , = arg=3D4320145466) at eval.c:1079 >> #18 0x00000001000af7ac in recursive_edit_1 () at keyboard.c:1183 >> #19 0x00000001000af91b in Frecursive_edit () at keyboard.c:868 >> #20 0x00000001000a8df0 in main (argc=3D2, argv=3D0x7fff5fbfea48) at = emacs.c:1662 >>=20 >>=20 >>=20 >> In GNU Emacs 24.2.50.2 (i386-apple-darwin10.8.0, NS = apple-appkit-1038.36) >> of 2012-08-20 on oroszlan.local >> Bzr revision: 109700 jlf@foxtail.org-20120820160851-cooolx696cb26xc0 >> Windowing system distributor `Apple', version 10.3.1038 >> Configured using: >> `configure '--with-ns'' >>=20 >> Important settings: >> value of $LC_CTYPE: UTF-8 >> locale-coding-system: utf-8-unix >> default enable-multibyte-characters: t >>=20 >> Major mode: Lisp Interaction >>=20 >> 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 >> 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 >>=20 >> Recent input: >> M-x r e p o r >>=20 >> Recent messages: >> For information about GNU Emacs and the GNU system, type C-h C-a. >> Making completion list... >>=20 >> Load-path shadows: >> None found. >>=20 >> Features: >> (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 = mml >> mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev >> gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util >> mail-prsvr mail-utils help-mode easymenu 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 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) >>=20 >>=20 >=20 -Ivan