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: Tue, 21 Aug 2012 22:51:19 +0200 Message-ID: <02A2C1DB-D0AD-49C9-90C7-4C2259C838B2@swipnet.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345582315 25720 80.91.229.3 (21 Aug 2012 20:51:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 20:51:55 +0000 (UTC) Cc: 12247@debbugs.gnu.org To: Ivan Andrus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 22:51: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 1T3vQS-0006Lc-Mn for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 22:51:48 +0200 Original-Received: from localhost ([::1]:33820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3vQR-0000ns-62 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 16:51:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3vQN-0000nY-Fy for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 16:51:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3vQL-00085G-M3 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 16:51:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3vQL-000859-Hs for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 16:51:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T3vQg-0005dV-1S for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 16:52: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: Tue, 21 Aug 2012 20:52: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-submit@debbugs.gnu.org id=B12247.134558230721644 (code B ref 12247); Tue, 21 Aug 2012 20:52:01 +0000 Original-Received: (at 12247) by debbugs.gnu.org; 21 Aug 2012 20:51:47 +0000 Original-Received: from localhost ([127.0.0.1]:42019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3vQQ-0005d1-6i for submit@debbugs.gnu.org; Tue, 21 Aug 2012 16:51:46 -0400 Original-Received: from mailout.attendit.se ([83.140.103.4]:43610) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3vQO-0005cs-1q for 12247@debbugs.gnu.org; Tue, 21 Aug 2012 16:51:45 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.attendit.se (Postfix) with ESMTP id 0FA4D50100 for <12247@debbugs.gnu.org>; Tue, 21 Aug 2012 22:45:52 +0200 (CEST) Original-Received: (qmail 17969 invoked by uid 89); 21 Aug 2012 20:51:03 -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; 21 Aug 2012 20:51:03 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 2D9EA7FA05E; Tue, 21 Aug 2012 22:51:20 +0200 (CEST) In-Reply-To: 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:63355 Archived-At: Hello. 21 aug 2012 kl. 15:49 skrev Ivan Andrus: > 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 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? Thanks, Jan D. > 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