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#18705: 24.3.93; Hang in ns_select -> [NSApp run] -> oo Date: Wed, 15 Oct 2014 19:50:52 +0200 Message-ID: References: <20141013071339.GA29064@home.blackbean.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1413395493 31781 80.91.229.3 (15 Oct 2014 17:51:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2014 17:51:33 +0000 (UTC) Cc: 18705@debbugs.gnu.org To: Jim Radford Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 19:51:24 2014 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 1XeSjG-0000tG-2I for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 19:51:18 +0200 Original-Received: from localhost ([::1]:46003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeSjF-0007Jf-PJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Oct 2014 13:51:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeSj6-0007IS-WE for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 13:51:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeSj0-0000gl-JT for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 13:51:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeSj0-0000gV-Ge for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 13:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XeSiz-0004Zx-Pc for bug-gnu-emacs@gnu.org; Wed, 15 Oct 2014 13:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Oct 2014 17:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18705 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18705-submit@debbugs.gnu.org id=B18705.141339546117594 (code B ref 18705); Wed, 15 Oct 2014 17:51:01 +0000 Original-Received: (at 18705) by debbugs.gnu.org; 15 Oct 2014 17:51:01 +0000 Original-Received: from localhost ([127.0.0.1]:44705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeSix-0004Zg-PK for submit@debbugs.gnu.org; Wed, 15 Oct 2014 13:51:00 -0400 Original-Received: from mailfe08.swip.net ([212.247.154.225]:46521 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeSit-0004ZT-NE for 18705@debbugs.gnu.org; Wed, 15 Oct 2014 13:50:57 -0400 X-T2-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 541286908; Wed, 15 Oct 2014 19:50:52 +0200 In-Reply-To: <20141013071339.GA29064@home.blackbean.org> X-Mailer: Apple Mail (2.1878.6) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:94545 Hello. Cocoa does not allow you to disconnect and connect the GUI like X can. So running a Cocoa compiled Emacs as --daemon does not make much sense. You are seeing the consequence of this. So basically, don't do this. :-) Jan D. 13 okt 2014 kl. 09:13 skrev Jim Radford : > I often cannot connect to "emacs --daemon" with emacsclient because > instead of select()ing on the appropriate sockets it's stuck in [NSApp > run] waiting for an event which will never come. Note at this time > there are no Cocoa windows open (I don't use them) so no events will > *ever* come (unless I, say, open and close the about box which = triggers > an escape from the hang). Here's the backtrace when this occurs. >=20 > frame #9: 0x00007fff940cc89b AppKit`-[NSApplication = nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 > frame #10: 0x00000001001a659f Emacs`-[EmacsApp = run](self=3D0x0000000100a26910, _cmd=3D) + 223 at = nsterm.m:4494 > frame #11: 0x00000001001a5219 Emacs`ns_select(nfds=3D, = readfds=3D0x00007fff5fbfea00, writefds=3D0x00007fff5fbfe980, = exceptfds=3D, timeout=3D, = sigmask=3D) + 809 at nsterm.m:3748 > frame #12: 0x0000000100179811 = Emacs`wait_reading_process_output(time_limit=3D, = nsecs=3D, read_kbd=3D-1, do_display=3Dtrue, = wait_for_cell=3D4328534074, wait_proc=3D0x0000000000000000, = just_wait_proc=3D) + 2209 at process.c:4601 > frame #13: 0x00000001000c1ce4 = Emacs`read_decoded_event_from_main_queue [inlined] = kbd_buffer_get_event(kbp=3D, used_mouse_menu=3D,= end_time=3D) + 807 at keyboard.c:3906 > frame #14: 0x00000001000c19bd = Emacs`read_decoded_event_from_main_queue [inlined] = read_event_from_main_queue(end_time=3D, = local_getcjmp=3D) + 1569 at keyboard.c:2246 > frame #15: 0x00000001000c139c = Emacs`read_decoded_event_from_main_queue(end_time=3D, = local_getcjmp=3D, prev_event=3D, = used_mouse_menu=3D) + 44 at keyboard.c:2310 > frame #16: 0x00000001000c021e Emacs`read_char(commandflag=3D1, = map=3D4322429222, prev_event=3D4328534074, = used_mouse_menu=3D0x00007fff5fbff1ff, end_time=3D0x0000000000000000) + = 5918 at keyboard.c:2895 > frame #17: 0x00000001000bc9d3 = Emacs`read_key_sequence(bufsize=3D, keybuf=3D, = prompt=3D, dont_downcase_last=3D, = can_return_switch_frame=3D, = fix_current_buffer=3D, prevent_redisplay=3D) + = 1859 at keyboard.c:9088 > frame #18: 0x00000001000bc064 Emacs`command_loop_1 + 5188 at = keyboard.c:1452 > frame #19: 0x000000010013714b = Emacs`internal_condition_case(bfun=3D0x00000001000bac20, = handlers=3D, hfun=3D) + 251 at eval.c:1354 > frame #20: 0x00000001000cc4ae = Emacs`command_loop_2(ignore=3D) + 62 at keyboard.c:1177 > frame #21: 0x0000000100136ae3 = Emacs`internal_catch(tag=3D, func=3D0x00000001000cc470, = arg=3D4328534074) + 243 at eval.c:1118 > frame #22: 0x00000001000ba1ed Emacs`recursive_edit_1 [inlined] = command_loop + 91 at keyboard.c:1156 > frame #23: 0x00000001000ba192 Emacs`recursive_edit_1 + 130 at = keyboard.c:777 > frame #24: 0x00000001000ba39c Emacs`Frecursive_edit + 236 at = keyboard.c:848 > frame #25: 0x00000001000b8fec Emacs`main(argc=3D0, = argv=3D) + 5836 at emacs.c:1646 > frame #26: 0x00007fff928685fd libdyld.dylib`start + 1 >=20 > In GNU Emacs 24.3.93.2 (x86_64-apple-darwin13.3.0, NS = apple-appkit-1265.21) > of 2014-09-20 > Windowing system distributor `Apple', version 10.3.1265 > Configured using: > `configure --prefix=3D/tmp/emacs --with-ns' >=20 >=20