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: Tue, 21 Aug 2012 15:49:24 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345556990 29265 80.91.229.3 (21 Aug 2012 13:49:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 13:49:50 +0000 (UTC) To: 12247@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 21 15:49:50 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 1T3oq5-0000Qi-UA for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 15:49:50 +0200 Original-Received: from localhost ([::1]:54067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3oq4-0008QE-Ja for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 09:49:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3oq0-0008Q8-US for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 09:49:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3opz-0000wo-Hg for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 09:49:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3opz-0000wj-Du for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 09:49:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T3oqI-0001sR-4D for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 09:50: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: Tue, 21 Aug 2012 13:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12247 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.13455569987199 (code B ref -1); Tue, 21 Aug 2012 13:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2012 13:49:58 +0000 Original-Received: from localhost ([127.0.0.1]:41233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3oqD-0001s4-GQ for submit@debbugs.gnu.org; Tue, 21 Aug 2012 09:49:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45319) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3oqB-0001rx-Bo for submit@debbugs.gnu.org; Tue, 21 Aug 2012 09:49:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3opq-0000vr-OA for submit@debbugs.gnu.org; Tue, 21 Aug 2012 09:49:36 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:35409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3opq-0000vn-LG for submit@debbugs.gnu.org; Tue, 21 Aug 2012 09:49:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3opp-0008Q4-AJ for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 09:49:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3opj-0000vF-VI for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 09:49:33 -0400 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:59001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3opj-0000vA-Kf for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 09:49:27 -0400 Original-Received: by bkcjc3 with SMTP id jc3so2299931bkc.0 for ; Tue, 21 Aug 2012 06:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=Eoe+XvMDlcdh0H7WQW61gY3iEmT2CZ9jhM1+o9MOm8E=; b=YETeLnFr7c7zVkaWn3AniT1U9oB6YeQeunOdN8R/91vYMec92GPh6B3YPuCJfPVdrb OBnMWLeuvC3jrsoIM79kzgw8beKxIm5ItMn1+AuMqzBNVuH1GHyRJThaV/QngiQ/myhM GNTluwwV4R1OOeQOttnIe0hgmiT67Tkz/IKbftANRixtsvm5Y2H1/K/bQ7GQrrrwm3C0 Apjoybda5kF68j2VEspNl58DTknzYb+xys04iltEg08RwndaRoRZSnOeGFZiBpnKpDEO Z8AjnKF6zkFFB8Cf/1LKLuABSq4A2IjmgjjZS+kA0gnGtGH2td7/UsThUjyldfj9AHfD Jccw== Original-Received: by 10.204.129.208 with SMTP id p16mr5332083bks.129.1345556966529; Tue, 21 Aug 2012 06:49: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 n5sm871973bkv.14.2012.08.21.06.49.25 (version=SSLv3 cipher=OTHER); Tue, 21 Aug 2012 06:49:26 -0700 (PDT) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:63343 Archived-At: 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: 2012-08-21 12:26:07.872 Emacs[58915:3403] *** __NSAutoreleaseNoPool(): = Object 0x1007c9200 of class NSEvent autoreleased with no pool in place - = just leaking Setting the environment variable NSAutoreleaseHaltOnNoPool=3DYES and running under gdb I get the following backtrace: Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to process 59016] 0x00007fff81ab8d61 in __NSAutoreleaseNoPool () (gdb) thread apply all bt Thread 5 (process 59016): #0 0x00007fff80bb2a2a in __workq_kernreturn () #1 0x00007fff80bb2e3c in _pthread_wqthread () #2 0x00007fff80bb2aa5 in start_wqthread () 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 () Thread 3 (process 59016): #0 0x00007fff80bb2a2a in __workq_kernreturn () #1 0x00007fff80bb2e3c in _pthread_wqthread () #2 0x00007fff80bb2aa5 in start_wqthread () 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 () 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 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'' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction 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 Recent input: M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. 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)