From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.bugs Subject: bug#1107: #1107 - 23.0.60; Emacs --daemon crashes when emacsclient tries to establish a connection on OS X - Emacs bug report logs Date: Tue, 25 Nov 2008 09:47:03 -0500 Message-ID: References: <200811250620.mAP6KrBx009202@mothra.ics.uci.edu> Reply-To: Adrian Robert , 1107@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227625867 20029 80.91.229.12 (25 Nov 2008 15:11:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2008 15:11:07 +0000 (UTC) Cc: 1107@emacsbugs.donarmstrong.com, William Farrington To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 16:12:10 2008 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 1L4zZo-0007Rl-Fh for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 16:11:45 +0100 Original-Received: from localhost ([127.0.0.1]:38418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4zYe-00023p-Lz for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 10:10:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4zYb-00022r-Lk for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2008 10:10:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4zYa-00021n-Sr for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2008 10:10:29 -0500 Original-Received: from [199.232.76.173] (port=55953 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4zYa-00021g-PH for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2008 10:10:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40672) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L4zYa-0005Ok-2p for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2008 10:10:28 -0500 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 mAPFAAWv008310; Tue, 25 Nov 2008 07:10:11 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAPEt4SU003312; Tue, 25 Nov 2008 06:55:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Adrian Robert Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Tue, 25 Nov 2008 14:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1107 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 1107-submit@emacsbugs.donarmstrong.com id=B1107.12276244461864 (code B ref 1107); Tue, 25 Nov 2008 14:55:04 +0000 Original-Received: (at 1107) by emacsbugs.donarmstrong.com; 25 Nov 2008 14:47:26 +0000 Original-Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAPElMcq001857 for <1107@emacsbugs.donarmstrong.com>; Tue, 25 Nov 2008 06:47:23 -0800 Original-Received: by yx-out-2324.google.com with SMTP id 8so1096289yxg.31 for <1107@emacsbugs.donarmstrong.com>; Tue, 25 Nov 2008 06:47:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=tdeU9gNa4R6ipXEsV2BMXnpO14qNo9rX5zcfduu+SrQ=; b=fcGa4e6QA/xL8N9FmdLn2rpsKklfshNzq21VOcOojcV4wBDoTvziPFgRJY+JUoPIWh WLwOpcm5QCgHaTNAtOdKj8JrysQBAkZb7UDZq9VsOegCVpDBmZ0QcdO3Uawd8Z3sYUUP IRhmFP/gUgctkzRCxOuQMWXz6790sJdG0dFOI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=RWS8/XKk4wpD3S3M5VRxnp9uQpUegrMnLvLhZh+tlKIrmvLlappIUiaP6OB7kybA92 /XNTPpbuGuj54H7jnh2n5TpSgEkmQYs6/VwHR/LupzB9JIng31GizmAtcTdjB7VAVlj6 8Mc8T9zoUzelI9a3EHO3Ap342nME1mzXNr0uQ= Original-Received: by 10.151.107.8 with SMTP id j8mr1279135ybm.119.1227624441644; Tue, 25 Nov 2008 06:47:21 -0800 (PST) Original-Received: from ?10.0.1.198? ([72.169.150.82]) by mx.google.com with ESMTPS id q26sm9684304ele.5.2008.11.25.06.47.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Nov 2008 06:47:20 -0800 (PST) In-Reply-To: <200811250620.mAP6KrBx009202@mothra.ics.uci.edu> X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 25 Nov 2008 10:10:29 -0500 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:22680 Archived-At: On Nov 25, 2008, at 1:20 AM, Dan Nicolaescu wrote: > Adrian Robert writes: > >> I just tried to replicate this locally and failed. No crash. >> However, it also doesn't work -- emacsclient just always says "can't >> find socket; have you started the server?". >> >> This is new. Emacsclient always worked before, up to and including >> multi-tty. Could something in the new daemon support have affected >> this? Was there anything in particular that changed as far as how >> the >> client and server communicate? >> >> gnuserv, which I use, still works. > > Can you please clarify, if you are doing > > emacs --daemon > > then you can connect with gnuclient, but cannot with emacsclient? I'm trying emacs -Q/-q/normal --daemon, or "run emacs -Q/-q/normal [no opts] + M-x server-start". All give the same result of no socket found for emacsclient. If I start emacs (-q/-Q/normal) and do "M-x gnuserv-start", then gnuclient works. Now I just tried on X11 on Mac, and it works, although there is a delay of seconds the first time emacsclient is run before the file shows up in emacs. And, I tried under --enable-cocoa-experimenal-ctrl-g and got the same behavior, with these exceptions: - if there is an emacs window active (no --daemon) the mouse must be moved over emacs to get it to pick up the file -- the first time, but not subsequent times - if there is no window active, a crash ensues, sometimes after a pause (stack trace below) Some of this difference must have something to do with how the socket event works its way into the input loop, maybe only for the first event. If you can summarize what changed in this area with the new impl it would help me look into it. thanks, Adrian --------------------- #0 0x9210837c in __CFRunLoopFindMode () #1 0x92109f78 in CFRunLoopAddSource () #2 0x9211132c in CFSetApplyFunction () #3 0x92109f5c in CFRunLoopAddSource () #4 0x920eabf4 in CFMachPortCreateWithPort () #5 0x920eacc8 in CFMachPortCreate () #6 0x920edb64 in _CFXNotificationCenterCreate () #7 0x920edc60 in _CFXNotificationGetHostCenter () #8 0x91ba71c4 in +[NSDistributedNotificationCenter notificationCenterForType:] () #9 0x952095f8 in +[NSDynamicSystemColor initialize] () #10 0x932a9ab4 in _class_initialize () #11 0x932a8010 in _class_lookupMethodAndLoadCache () #12 0x932ba0c8 in objc_msgSend () #13 0x95208f10 in +[NSApplication initialize] () #14 0x932a9ab4 in _class_initialize () #15 0x932a9934 in _class_initialize () #16 0x932a8010 in _class_lookupMethodAndLoadCache () #17 0x932ba0c8 in objc_msgSend () #18 0x0016a760 in ns_term_init (display_name=33765435) at nsterm.m:3736 #19 0x0017a0cc in Fx_open_connection (display=33765435, resource_string=, must_succeed=25165881) at nsfns.m:1762 #20 0x00107fc8 in Ffuncall (nargs=, args=) at eval.c:3050 #21 0x00142c9c in Fbyte_code (bytestr=, vector=, maxdepth=48) at bytecode.c:678 #22 0x00107a1c in funcall_lambda (fun=2495124, nargs=0, arg_vector=0xbfffb604) at eval.c:3231 #23 0x0010813c in Ffuncall (nargs=, args=) at eval.c:3101 #24 0x00142c9c in Fbyte_code (bytestr=, vector=, maxdepth=32) at bytecode.c:678 #25 0x00107a1c in funcall_lambda (fun=2284540, nargs=2, arg_vector=0xbfffb7e4) at eval.c:3231 #26 0x0010813c in Ffuncall (nargs=, args=) at eval.c:3101 #27 0x00142c9c in Fbyte_code (bytestr=, vector=, maxdepth=40) at bytecode.c:678 #28 0x00107a1c in funcall_lambda (fun=8747220, nargs=3, arg_vector=0xbfffb9d4) at eval.c:3231 #29 0x0010813c in Ffuncall (nargs=, args=) at eval.c:3101 #30 0x00142c9c in Fbyte_code (bytestr=, vector=, maxdepth=136) at bytecode.c:678 #31 0x001071fc in Feval (form=) at eval.c:2381 #32 0x0010a1f4 in internal_lisp_condition_case (var=25503185, bodyform=8098837, handlers=8098077) at eval.c:1456 #33 0x00143690 in Fbyte_code (bytestr=, vector=, maxdepth=48) at bytecode.c:868 #34 0x001071fc in Feval (form=) at eval.c:2381 #35 0x00105820 in internal_catch (tag=, func=0x106d60 , arg=8100637) at eval.c: 1247 #36 0x00143648 in Fbyte_code (bytestr=, vector=, maxdepth=16) at bytecode.c:853 #37 0x00107a1c in funcall_lambda (fun=8749588, nargs=2, arg_vector=0xbfffc604) at eval.c:3231 #38 0x0010813c in Ffuncall (nargs=, args=) at eval.c:3101 #39 0x00109d3c in Fapply (nargs=2, args=0xbfffc688) at eval.c:2532 #40 0x00109db4 in apply1 (fn=51659257, arg=) at eval.c:2793 #41 0x0010553c in internal_condition_case_1 (bfun=0x1483a0 , arg=7822085, handlers=25205497, hfun=0x1483b0 ) at eval.c:1559 #42 0x00148a94 in read_process_output (proc=8574004, channel=) at process.c:5341 #43 0x0014ef18 in wait_reading_process_output (time_limit=0, microsecs=0, read_kbd=, do_display=1, wait_for_cell=25165833, wait_proc=0x0, just_wait_proc=0) at process.c:4994 #44 0x0009c5bc in read_char (commandflag=1, nmaps=2, maps=0xbfffe520, prev_event=25165833, used_mouse_menu=0xbfffe58c, end_time=0x0) at keyboard.c:4038 #45 0x0009f4fc in read_key_sequence (keybuf=0xbfffe698, bufsize=30, prompt=25165833, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9344 #46 0x000a16a8 in command_loop_1 () at keyboard.c:1621 #47 0x00105998 in internal_condition_case (bfun=0xa1260 , handlers=25205497, hfun=0x98820 ) at eval.c:1511 #48 0x00091de0 in command_loop_2 () at keyboard.c:1338 #49 0x00105820 in internal_catch (tag=, func=0x91da0 , arg=25165833) at eval.c:1247 #50 0x00091a90 in command_loop () at keyboard.c:1317 #51 0x00091bb8 in recursive_edit_1 () at keyboard.c:942 #52 0x00091d44 in Frecursive_edit () at keyboard.c:1004 #53 0x00091390 in main (argc=, argv=0xbffff148) at emacs.c:1777 Lisp Backtrace: Unsafe to call functions on thread 1: function: _class_lookupMethodAndLoadCache on stack "x-open-connection" (0xbfffb414) "ns-initialize-window-system" (0xbfffb604) "make-frame-on-display" (0xbfffb7e4) "server-create-window-system-frame" (0xbfffb9d4) "byte-code" (0xbfffbae4) "byte-code" (0xbfffbff4) "server-process-filter" (0xbfffc604)