From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3286: NS hang in event handling Date: Wed, 13 May 2009 23:17:43 -0700 Message-ID: Reply-To: David Reitter , 3286@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242282874 14656 80.91.229.12 (14 May 2009 06:34:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2009 06:34:34 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 14 08:34:26 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M4UUB-000720-Vm for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2009 08:32:08 +0200 Original-Received: from localhost ([127.0.0.1]:58115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4UUB-0003k2-BG for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 May 2009 02:32:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4UU7-0003iF-41 for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 02:32:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4UU2-0003d7-ET for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 02:32:02 -0400 Original-Received: from [199.232.76.173] (port=53090 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4UU2-0003d0-Bn for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 02:31:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56765) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M4UU1-0005UY-Nu for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 02:31:58 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4E6Vtad002588; Wed, 13 May 2009 23:31:55 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4E6P46U032498; Wed, 13 May 2009 23:25:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: David Reitter Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 14 May 2009 06:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3286 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124228187630914 (code B ref -1); Thu, 14 May 2009 06:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 14 May 2009 06:17:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4E6HqLT030907 for ; Wed, 13 May 2009 23:17:53 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:36652 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1M4UGN-0005cU-Bv for emacs-pretest-bug@gnu.org; Thu, 14 May 2009 02:17:51 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1M4UGL-0003MF-Rp for emacs-pretest-bug@gnu.org; Thu, 14 May 2009 02:17:51 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:45213) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4UGL-0003Lr-EQ for emacs-pretest-bug@gnu.org; Thu, 14 May 2009 02:17:49 -0400 Original-Received: by fxm17 with SMTP id 17so1152569fxm.42 for ; Wed, 13 May 2009 23:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=91JBI+5DaIS/xBW5IYL0W7B0Vq3dawhF1hdy8vhXGuw=; b=f9QCcgoHDc6UEOonG39oO+6HXEuq6oFLo0KavjprBa9hX4+VYqKXXHTeNGYa2FEh0b AqTlvfoxBhUqlIztDQLMmBPDIfHMl4W8WxmraA8t0hDYk+vi5QJNzwnberBBiaQb3vfM GUHxJjN0BiuE+x0sm/yI5r6PxzwiM6EKWZOjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=XnNr0osGRJiK+jUUk6A2HXmjc76z2HBa05eutOMybbhnk3xtDDD5cp28BILz18Il3+ StBuzsVqLNZVz5aAHbD8uMCB81aN3MVooR99EyBr2H6iQ5a3EfP9FI9a3cCeFnUPiCoz /wCgE6DqRPzP5/cNXSJdnSynlKuNPCEPCCH94= Original-Received: by 10.103.214.8 with SMTP id r8mr1309010muq.6.1242281868486; Wed, 13 May 2009 23:17:48 -0700 (PDT) Original-Received: from ?192.168.251.177? ([69.26.225.190]) by mx.google.com with ESMTPS id 23sm1170939mun.16.2009.05.13.23.17.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 13 May 2009 23:17:47 -0700 (PDT) X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 14 May 2009 02:32:02 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27879 gmane.emacs.pretest.bugs:24421 Archived-At: I can reproduce a hang (C-g doesn't work) pretty reliably in a current build (NS port, on OS X 10.5.7) using this recipe: [Prerequisite: ESS must be installed] Emacs -q (actually, Aquamacs) Evaluate the bit of code shown at the bottom of this e-mail C-x b test-buffer RET M-x R-mode RET M-x R RET ;; to open an R process then switch back to test-buffer and start typing randomly. I don't need to type much to reproduce this. Emacs wil hang and not react to anything except changing faces when the mouse cursor is moved over text with `mouse-face' properties. I don't get this if I simplify `ess-maybe-show-arg-list' to just show a message. If you want me to do something specific with gdb, then I can do that of course. (defvar ess-arglist-show-timer nil) (progn (if ess-arglist-show-timer (cancel-timer ess-arglist-show-timer)) (setq ess-arglist-show-timer (run-with-idle-timer 0.2 t (defun ess-maybe-show-arg-list () (interactive) (and (eq major-mode 'ess-mode) (or (not (current-message)) (and (equal ess-r-args-show-as 'tooltip) ess-has-tooltip)) ;; to do check tooltip (condition-case nil (ess-r-args-show) ;; avoid showing error if not over function (error nil))))))) (defun ess-r-args-current-function () "Returns the name of the R function assuming point is currently within the argument list or nil if no possible function name is found." (save-excursion (condition-case nil (up-list -1) (error "Can't find opening parenthesis.")) (let ((posend (point))) (backward-sexp 1) (let ((rfunname (buffer-substring-no-properties posend (point)))) (if (posix-string-match "^[a-zA-Z0-9_\.]+$" rfunname) rfunname nil))))) from ESS: #0 0x9021e286 in mach_msg_trap () #1 0x90225a7c in mach_msg () #2 0x9012a04e in CFRunLoopRunSpecific () #3 0x9012ac78 in CFRunLoopRunInMode () #4 0x9272b28c in RunCurrentEventLoopInMode () #5 0x9272b0a5 in ReceiveNextEventCommon () #6 0x9272af19 in BlockUntilNextEventMatchingListInMode () #7 0x93f15d0d in _DPSNextEvent () #8 0x93f155c0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #9 0x93f0e5fb in -[NSApplication run] () #10 0x001a6083 in ns_read_socket () #11 0x000c0a41 in read_avail_input () #12 0x000c0bb5 in gobble_input () #13 0x001a6454 in ns_select () #14 0x00185c02 in wait_reading_process_output () #15 0x00187198 in Faccept_process_output () #16 0x0013d750 in Ffuncall () #17 0x0017e10a in Fbyte_code () #18 0x0013cfa4 in funcall_lambda () #19 0x0013d4ab in Ffuncall () #20 0x0017e10a in Fbyte_code () #21 0x0013cfa4 in funcall_lambda () #22 0x0013d4ab in Ffuncall () #23 0x0017e10a in Fbyte_code () #24 0x0013cfa4 in funcall_lambda () #25 0x0013d4ab in Ffuncall () #26 0x0017e10a in Fbyte_code () #27 0x0013cfa4 in funcall_lambda () #28 0x001402f9 in apply_lambda () #29 0x0013fea2 in Feval () #30 0x001415b2 in internal_lisp_condition_case () #31 0x0014163b in Fcondition_case () #32 0x001401a8 in Feval () #33 0x00140b5f in Fand () #34 0x001401a8 in Feval () #35 0x0013d1b1 in funcall_lambda () #36 0x0013d4ab in Ffuncall () #37 0x0013e0a0 in Fapply () #38 0x0013d6a6 in Ffuncall () #39 0x0017e10a in Fbyte_code () #40 0x00140146 in Feval () #41 0x001415b2 in internal_lisp_condition_case () #42 0x0017eb1e in Fbyte_code () #43 0x0013cfa4 in funcall_lambda () #44 0x0013d4ab in Ffuncall () #45 0x0013db39 in call1 () #46 0x000b8aea in timer_check () #47 0x000c1858 in detect_input_pending_run_timers () #48 0x00185cd1 in wait_reading_process_output () #49 0x00004226 in sit_for () #50 0x000c761d in read_char () #51 0x000c9133 in read_key_sequence () #52 0x000cb4b0 in command_loop_1 () #53 0x0013baad in internal_condition_case () #54 0x000b77b8 in command_loop_2 () #55 0x0013b98c in internal_catch () #56 0x000be29b in recursive_edit_1 () #57 0x000be454 in Frecursive_edit () #58 0x000b691b in main ()