[O] Executing debug-enabled code hangs
Hi, I use org-mode a lot with BEGIN_SRC R sections that I execute manually with C-c C-c in an *R* session buffer. Sometimes I go to that session buffer and execute some code manually, and occasionally I turn on debugging for a function with debug(func). If I then go back to my org-mode buffer and execute that function again, Emacs hangs. I can't get back to the *R* session in order to step through the function or disable debugging, so I have to force-quit Emacs. I know, I should remember to turn off debugging for those functions, but sometimes I forget, and the consequence is that I lose the whole session. Known problem? This is on: * OS X 10.6.6 * Aquamacs 2.2, which is based on GNU Emacs 23.3.1 * Org-mode 7.5 * ess version 5.13 I do have a big huge thread stack trace that Aquamacs generated, if that would be helpful. Thanks. -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com
Re: [O] Executing debug-enabled code hangs
ken.willi...@thomsonreuters.com wrote: Hi, I use org-mode a lot with BEGIN_SRC R sections that I execute manually with C-c C-c in an *R* session buffer. Sometimes I go to that session buffer and execute some code manually, and occasionally I turn on debugging for a function with debug(func). If I then go back to my org-mode buffer and execute that function again, Emacs hangs. I can't get back to the *R* session in order to step through the function or disable debugging, so I have to force-quit Emacs. I know, I should remember to turn off debugging for those functions, but sometimes I forget, and the consequence is that I lose the whole session. Known problem? This is on: * OS X 10.6.6 * Aquamacs 2.2, which is based on GNU Emacs 23.3.1 * Org-mode 7.5 * ess version 5.13 I do have a big huge thread stack trace that Aquamacs generated, if that would be helpful. It wouldn't hurt. Nick
Re: [O] Executing debug-enabled code hangs
On 6/7/11 12:04 PM, Nick Dokos nicholas.do...@hp.com wrote: ken.willi...@thomsonreuters.com wrote: I do have a big huge thread stack trace that Aquamacs generated, if that would be helpful. It wouldn't hurt. OK, here it is: In GNU Emacs 23.3.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-03-18 on braeburn.aquamacs.org - Aquamacs Distribution 2.2 Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns' '--without-x' 'CC=gcc' 'CFLAGS=-O3 -fno-tree-pre -falign-loops -arch i386' 'LDFLAGS=-O3 -fno-tree-pre -falign-loops -arch i386'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Command line: (/Applications/Aquamacs.app/Contents/MacOS/Aquamacs) PATH: /bin:/etc:/usr/bin:/usr/etc:/usr/sbin:/sbin:/Users/u0048513/bin:/usr/local/ bin:/Users/u0048513/p4/tools/FileTools:/Users/u0048513/p4/tools/perforce:/u sr/local/git/bin:/usr/local/mysql/bin:/usr/local/texlive/2009/bin/universal -darwin:/Users/u0048513/Downloads/hadoop-0.20.2/bin:.:/usr/bin:/bin:/usr/sb in:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/usr /texbin:/usr/local/texlive/2010/bin:/usr/local/texlive/2009/bin:/usr/local/ teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darw in-current exec-path: (/bin /etc /usr/bin /usr/etc /usr/sbin /sbin /Users/u0048513/bin /usr/local/bin /Users/u0048513/p4/tools/FileTools /Users/u0048513/p4/tools/perforce /usr/local/git/bin /usr/local/mysql/bin /usr/local/texlive/2009/bin/universal-darwin /Users/u0048513/Downloads/hadoop-0.20.2/bin . /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin /opt/local/bin /usr/local/git/bin /Applications/Aquamacs.app/Contents/MacOS/bin /usr/texbin /usr/local/texlive/2010/bin /usr/local/texlive/2009/bin /usr/local/teTeX/bin/powerpc-apple-darwin-current /usr/local/teTeX/bin/i386-apple-darwin-current) Process: Aquamacs [83471] Path:/Applications/Aquamacs.app/Contents/MacOS/Aquamacs Identifier: Aquamacs Version: ??? (???) Code Type: X86 (Native) Parent Process: launchd [232] Date/Time: 2011-06-06 13:12:43.405 -0500 OS Version: Mac OS X 10.6.6 (10J567) Report Version: 6 Interval Since Last Report: 858988 sec Crashes Since Last Report: 1 Per-App Crashes Since Last Report: 1 Anonymous UUID: CEF6C8A4-C36D-45C4-9EE6-1C1E031C20AF Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: abort() called Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x909a2176 __kill + 10 1 libSystem.B.dylib 0x909a2168 kill$UNIX2003 + 32 2 org.gnu.Aquamacs0x000b7173 fatal_error_signal + 307 3 libSystem.B.dylib 0x909a746b _sigtramp + 43 4 libSystem.B.dylib 0x909a2176 __kill + 10 5 libSystem.B.dylib 0x909a2168 kill$UNIX2003 + 32 6 libSystem.B.dylib 0x90a3489d raise + 26 7 libSystem.B.dylib 0x90a4a9bc abort + 93 8 org.gnu.Aquamacs0x000208ba check_message_stack + 42 9 org.gnu.Aquamacs0x000b674c shut_down_emacs + 204 10 org.gnu.Aquamacs0x000b71bf fatal_error_signal + 383 11 libSystem.B.dylib 0x909a746b _sigtramp + 43 12 ??? 00 0 + 0 13 ??? 0x307ef055 0 + 813625429 Thread 1: Dispatch queue: com.apple.libdispatch-manager 0 libSystem.B.dylib 0x90967982 kevent + 10 1 libSystem.B.dylib 0x9096809c _dispatch_mgr_invoke + 215 2 libSystem.B.dylib 0x90967559 _dispatch_queue_invoke + 163 3 libSystem.B.dylib 0x909672fe _dispatch_worker_thread2 + 240 4 libSystem.B.dylib 0x90966d81 _pthread_wqthread + 390 5 libSystem.B.dylib 0x90966bc6 start_wqthread + 30 Thread 2: 0 libSystem.B.dylib 0x909410fa mach_msg_trap + 10 1 libSystem.B.dylib 0x90941867 mach_msg + 68 2 ...MultitouchSupport.framework 0x93fc7f57 mt_DequeueDataFromDriver + 489 3 ...MultitouchSupport.framework 0x93fc801f mt_DequeueMultitouchDataFromDriverThreadEntry + 176 4 libSystem.B.dylib 0x9096e85d _pthread_start + 345 5 libSystem.B.dylib 0x9096e6e2 thread_start + 34 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x ebx: 0x000b704e ecx: 0xbfffd4ac edx: 0x909a2176 edi: 0x0006 esi: