From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12247: 24.2.50; Leak in NextStep autorelease Date: Wed, 22 Aug 2012 09:34:01 +0200 Message-ID: <9C1D444D-A62B-4F54-A2F7-AEE089CB629D@swipnet.se> References: <02A2C1DB-D0AD-49C9-90C7-4C2259C838B2@swipnet.se> <2B91EB88-36A9-44B1-A494-390EB7DB6491@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345620895 25779 80.91.229.3 (22 Aug 2012 07:34:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2012 07:34:55 +0000 (UTC) Cc: 12247-done@debbugs.gnu.org To: Ivan Andrus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 09:34:55 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 1T45Sl-0001hy-NM for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 09:34:51 +0200 Original-Received: from localhost ([::1]:48404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T45Sj-0002Sh-TX for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 03:34:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T45Sb-0002Qs-Fv for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 03:34:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T45SZ-0000ld-CV for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 03:34:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T45SZ-0000lO-83 for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 03:34:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T45Sv-0007BV-Nf for bug-gnu-emacs@gnu.org; Wed, 22 Aug 2012 03:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Aug 2012 07:35:01 +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-done@debbugs.gnu.org id=D12247.134562087227578 (code D ref 12247); Wed, 22 Aug 2012 07:35:01 +0000 Original-Received: (at 12247-done) by debbugs.gnu.org; 22 Aug 2012 07:34:32 +0000 Original-Received: from localhost ([127.0.0.1]:42579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T45SR-0007Aj-QP for submit@debbugs.gnu.org; Wed, 22 Aug 2012 03:34:32 -0400 Original-Received: from mailout.attendit.se ([83.140.103.4]:38108) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T45SO-0007AZ-8P for 12247-done@debbugs.gnu.org; Wed, 22 Aug 2012 03:34:30 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.attendit.se (Postfix) with ESMTP id 9A721500F6 for <12247-done@debbugs.gnu.org>; Wed, 22 Aug 2012 09:28:32 +0200 (CEST) Original-Received: (qmail 15952 invoked by uid 89); 22 Aug 2012 07:33:44 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 22 Aug 2012 07:33:44 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 4453E7FA05E; Wed, 22 Aug 2012 09:34:01 +0200 (CEST) In-Reply-To: <2B91EB88-36A9-44B1-A494-390EB7DB6491@gmail.com> X-Mailer: Apple Mail (2.1278) 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:63387 Archived-At: 22 aug 2012 kl. 08:00 skrev Ivan Andrus: > Indeed that fixes it. I never would have guessed it was the cursor. >=20 > Thanks, Thanks for testing, closing bug. Jan D. > Ivan >=20 > On Aug 21, 2012, at 10:51 PM, Jan Dj=E4rv wrote: >=20 >> 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 >=20 > -Ivan