From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Halley Newsgroups: gmane.emacs.devel Subject: UI Unresponsive Again on macOS Date: Fri, 10 Mar 2017 06:40:00 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489156826 12358 195.159.176.226 (10 Mar 2017 14:40:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 14:40:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 10 15:40:17 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmLiI-0002J4-43 for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2017 15:40:14 +0100 Original-Received: from localhost ([::1]:39431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmLiN-0004Qh-Op for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2017 09:40:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmLiE-0004OC-Fb for emacs-devel@gnu.org; Fri, 10 Mar 2017 09:40:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmLiC-0001iJ-Mr for emacs-devel@gnu.org; Fri, 10 Mar 2017 09:40:10 -0500 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:33340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmLiC-0001fI-Dw for emacs-devel@gnu.org; Fri, 10 Mar 2017 09:40:08 -0500 Original-Received: by mail-pf0-x22d.google.com with SMTP id w189so42614921pfb.0 for ; Fri, 10 Mar 2017 06:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=play-bow.org; s=google; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=hz04ivo6JgEu9Rc5jyUAfweGAqrFzIYxpCFg3cRs4ys=; b=gZqUCg2ZWxrOVjl2WM+uDQNnYYBkZ+bELjBNJKMEAqsXQcoWD2B58+d5wLsp2NsnFR aKS9S3Wm9S/fNIt5uiZQXh+cbfdrFQi/JFQ5ODDAa+RhhmYp2CA4n28cL15PHMKa4N6T fOuEdOcbWlSunj5fqUgzF9F+oXRBCICNflDig= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=hz04ivo6JgEu9Rc5jyUAfweGAqrFzIYxpCFg3cRs4ys=; b=rjTfltkL9GDXXQIs7YuBbrS34A+pV1Nl07Er3BBB5kBCH91K0DlPFIaM1pSvEf4ouN Y1u3A/lCUDo5bgSIc5tn5OSR8YJ6ssWZr0lBioKBXCVRziJOtD1qs6+zRd6nPz44wLOw 6aLWPEy8LngXuQlMWWuT8+c82Iz9+tS2rCYKbzhAPe6yxdiMkpcRQYFwWA4Fx5X4ZH5W UEz8NHFAQifndnAZNyiQp3ct8BFBaX7x4St2JiIaWvG3/ZPXD5wxE7vHtL5R/xvr2ovc ye19YVmHMUAbQVIEmR8ezE8uWa0AvpGonjxUhZh8o7qMeAmHsQS87yvvYwO4MKBHPNen VgqA== X-Gm-Message-State: AMke39nzyzrA2ezuwuC+l8Q/mYDfTr8qMnDToUw3WPobjubQyVesZQ14RSFvVg4HdFoH0g== X-Received: by 10.98.10.202 with SMTP id 71mr21326476pfk.54.1489156805014; Fri, 10 Mar 2017 06:40:05 -0800 (PST) Original-Received: from ?IPv6:2602:30a:2ce4:c900:a893:d848:7285:bbe5? ([2602:30a:2ce4:c900:a893:d848:7285:bbe5]) by smtp.gmail.com with ESMTPSA id z68sm19374213pgz.11.2017.03.10.06.40.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Mar 2017 06:40:03 -0800 (PST) X-Mailer: Apple Mail (2.3259) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212888 Archived-At: I build from the master branch about once a week. I had no problem with = last week's build made early in the morning California time on Sunday = the 6th, but the build I just made this morning becomes completely = unresponsive after a short time. I don't have an exact recipe to = reproduce -- I was just typing, and then stopped for a bit, and then it = became completely unresponsive. This happens every time I try to use = it. I suspect one or both of these changes: a65236214d9202fb69a6ba5169d4ac1a4bcb0b0d 3bd2e9e975ed29daaf03ca7559e4664aade0674f as they are new since my last working build and seem to be relevant. I obtained backtraces of all the threads. I did two snapshots of thread = 1 as it seemed to be spinning a bit. (lldb) thread list Process 85104 stopped * thread #1: tid =3D 0x408ea9, 0x00007fff8d86790a = libsystem_platform.dylib`_platform_memcmp + 298, queue =3D = 'com.apple.main-thread', stop reason =3D signal SIGSTOP thread #2: tid =3D 0x408ec9, 0x00007fff8d789f4a = libsystem_kernel.dylib`__select + 10 thread #3: tid =3D 0x408ed6, 0x00007fff8d78238a = libsystem_kernel.dylib`mach_msg_trap + 10, name =3D = 'com.apple.NSEventThread' thread #4: tid =3D 0x409120, 0x00007fff8d78a4e2 = libsystem_kernel.dylib`__workq_kernreturn + 10 (lldb) bt * thread #1: tid =3D 0x408ea9, 0x00007fff8d86790a = libsystem_platform.dylib`_platform_memcmp + 298, queue =3D = 'com.apple.main-thread', stop reason =3D signal SIGSTOP * frame #0: 0x00007fff8d86790a = libsystem_platform.dylib`_platform_memcmp + 298 frame #1: 0x00007fff780a6b0b CoreFoundation`__CFStringEqual + 235 frame #2: 0x00007fff78098f70 CoreFoundation`CFEqual + 432 frame #3: 0x00007fff7810382a CoreFoundation`CFRunLoopRunSpecific + = 90 frame #4: 0x00007fff7768fa5c HIToolbox`RunCurrentEventLoopInMode + = 240 frame #5: 0x00007fff7768f799 HIToolbox`ReceiveNextEventCommon + 184 frame #6: 0x00007fff7768f6c6 = HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71 frame #7: 0x00007fff75c355b4 AppKit`_DPSNextEvent + 1120 frame #8: 0x00007fff763afd6b AppKit`-[NSApplication(NSEvent) = _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2789 frame #9: 0x00000001001b3fcb Emacs`ns_select(nfds=3D6, = readfds=3D, writefds=3D, = exceptfds=3D0x0000000000000000, timeout=3D0x00007fff92e0be40, = sigmask=3D0x0000000000000000) + 811 at nsterm.m:4186 [opt] frame #10: 0x00000001001a0b88 = Emacs`really_call_select(arg=3D0x00007fff5fbfebb0) + 88 at thread.c:566 = [opt] frame #11: 0x000000010011e64b = Emacs`flush_stack_call_func(func=3D, arg=3D) + = 43 at alloc.c:5111 [opt] frame #12: 0x00000001001a0b27 = Emacs`thread_select(func=3D, max_fds=3D, = rfds=3D, wfds=3D, efds=3D, = timeout=3D, sigmask=3D0x0000000000000000) + 55 at = thread.c:589 [opt] frame #13: 0x0000000100184620 = Emacs`wait_reading_process_output(time_limit=3D, = nsecs=3D, read_kbd=3D, = do_display=3D, wait_for_cell=3D0, wait_proc=3D, = just_wait_proc=3D) + 4096 at process.c:5342 [opt] frame #14: 0x0000000100008185 Emacs`sit_for(timeout=3D, = reading=3D, display_option=3D1) + 261 at dispnew.c:5763 = [opt] frame #15: 0x00000001000c4237 Emacs`read_char(commandflag=3D1, = map=3D4363902419, prev_event=3D0, used_mouse_menu=3D0x00007fff5fbff7ef, = end_time=3D0x0000000000000000) + 5511 at keyboard.c:2722 [opt] frame #16: 0x00000001000c0d8e = Emacs`read_key_sequence(keybuf=3D, bufsize=3D30, = prompt=3D, dont_downcase_last=3D, = can_return_switch_frame=3D, = fix_current_buffer=3D, prevent_redisplay=3D) + = 1854 at keyboard.c:9109 [opt] frame #17: 0x00000001000bf4ed Emacs`command_loop_1 + 1229 at = keyboard.c:1370 [opt] frame #18: 0x000000010013cc07 = Emacs`internal_condition_case(bfun=3D(Emacs`command_loop_1 at = keyboard.c:1261), handlers=3D, hfun=3D(Emacs`cmd_error at = keyboard.c:940)) + 87 at eval.c:1324 [opt] frame #19: 0x00000001000ce5e0 = Emacs`command_loop_2(ignore=3D) + 48 at keyboard.c:1112 = [opt] frame #20: 0x000000010013c4ce = Emacs`internal_catch(tag=3D, func=3D(Emacs`command_loop_2 = at keyboard.c:1108), arg=3D0) + 78 at eval.c:1091 [opt] frame #21: 0x00000001000be71e Emacs`command_loop + 158 at = keyboard.c:1091 [opt] frame #22: 0x00000001000be62f Emacs`recursive_edit_1 + 111 at = keyboard.c:697 [opt] frame #23: 0x00000001000be863 Emacs`Frecursive_edit + 227 at = keyboard.c:768 [opt] frame #24: 0x00000001000bd43d Emacs`main(argc=3D0, = argv=3D) + 6077 at emacs.c:1683 [opt] frame #25: 0x00007fff8d65b255 libdyld.dylib`start + 1 (lldb) c Process 85104 resuming Process 85104 stopped (lldb) bt * thread #1: tid =3D 0x408ea9, 0x00007fff780d14a2 = CoreFoundation`__CFRunLoopFindMode + 82, stop reason =3D signal SIGSTOP * frame #0: 0x00007fff780d14a2 CoreFoundation`__CFRunLoopFindMode + 82 frame #1: 0x00007fff781038aa CoreFoundation`CFRunLoopRunSpecific + = 218 frame #2: 0x00007fff7768fa5c HIToolbox`RunCurrentEventLoopInMode + = 240 frame #3: 0x00007fff7768f799 HIToolbox`ReceiveNextEventCommon + 184 frame #4: 0x00007fff7768f6c6 = HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71 frame #5: 0x00007fff75c355b4 AppKit`_DPSNextEvent + 1120 frame #6: 0x00007fff763afd6b AppKit`-[NSApplication(NSEvent) = _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2789 frame #7: 0x00000001001b3fcb Emacs`ns_select(nfds=3D6, = readfds=3D, writefds=3D, = exceptfds=3D0x0000000000000000, timeout=3D0x00007fff92e0be40, = sigmask=3D0x0000000000000000) + 811 at nsterm.m:4186 [opt] frame #8: 0x00000001001a0b88 = Emacs`really_call_select(arg=3D0x00007fff5fbfebb0) + 88 at thread.c:566 = [opt] frame #9: 0x000000010011e64b = Emacs`flush_stack_call_func(func=3D, arg=3D) + = 43 at alloc.c:5111 [opt] frame #10: 0x00000001001a0b27 = Emacs`thread_select(func=3D, max_fds=3D, = rfds=3D, wfds=3D, efds=3D, = timeout=3D, sigmask=3D0x0000000000000000) + 55 at = thread.c:589 [opt] frame #11: 0x0000000100184620 = Emacs`wait_reading_process_output(time_limit=3D, = nsecs=3D, read_kbd=3D, = do_display=3D, wait_for_cell=3D0, wait_proc=3D, = just_wait_proc=3D) + 4096 at process.c:5342 [opt] frame #12: 0x0000000100008185 Emacs`sit_for(timeout=3D, = reading=3D, display_option=3D1) + 261 at dispnew.c:5763 = [opt] frame #13: 0x00000001000c4237 Emacs`read_char(commandflag=3D1, = map=3D4363902419, prev_event=3D0, used_mouse_menu=3D0x00007fff5fbff7ef, = end_time=3D0x0000000000000000) + 5511 at keyboard.c:2722 [opt] frame #14: 0x00000001000c0d8e = Emacs`read_key_sequence(keybuf=3D, bufsize=3D30, = prompt=3D, dont_downcase_last=3D, = can_return_switch_frame=3D, = fix_current_buffer=3D, prevent_redisplay=3D) + = 1854 at keyboard.c:9109 [opt] frame #15: 0x00000001000bf4ed Emacs`command_loop_1 + 1229 at = keyboard.c:1370 [opt] frame #16: 0x000000010013cc07 = Emacs`internal_condition_case(bfun=3D(Emacs`command_loop_1 at = keyboard.c:1261), handlers=3D, hfun=3D(Emacs`cmd_error at = keyboard.c:940)) + 87 at eval.c:1324 [opt] frame #17: 0x00000001000ce5e0 = Emacs`command_loop_2(ignore=3D) + 48 at keyboard.c:1112 = [opt] frame #18: 0x000000010013c4ce = Emacs`internal_catch(tag=3D, func=3D(Emacs`command_loop_2 = at keyboard.c:1108), arg=3D0) + 78 at eval.c:1091 [opt] frame #19: 0x00000001000be71e Emacs`command_loop + 158 at = keyboard.c:1091 [opt] frame #20: 0x00000001000be62f Emacs`recursive_edit_1 + 111 at = keyboard.c:697 [opt] frame #21: 0x00000001000be863 Emacs`Frecursive_edit + 227 at = keyboard.c:768 [opt] frame #22: 0x00000001000bd43d Emacs`main(argc=3D0, = argv=3D) + 6077 at emacs.c:1683 [opt] frame #23: 0x00007fff8d65b255 libdyld.dylib`start + 1 (lldb) thread select 2 (lldb) bt * thread #2: tid =3D 0x408ec9, 0x00007fff8d789f4a = libsystem_kernel.dylib`__select + 10 * frame #0: 0x00007fff8d789f4a libsystem_kernel.dylib`__select + 10 frame #1: 0x00000001001b68b7 Emacs`-[EmacsApp = fd_handler:](self=3D, _cmd=3D, = unused=3D) + 295 at nsterm.m:5493 [opt] frame #2: 0x00007fff79b28c6d Foundation`__NSThread__start__ + 1243 frame #3: 0x00007fff8d872aab libsystem_pthread.dylib`_pthread_body + = 180 frame #4: 0x00007fff8d8729f7 libsystem_pthread.dylib`_pthread_start = + 286 frame #5: 0x00007fff8d8721fd libsystem_pthread.dylib`thread_start + = 13 (lldb) thread select 3 (lldb) bt * thread #3: tid =3D 0x408ed6, 0x00007fff8d78238a = libsystem_kernel.dylib`mach_msg_trap + 10, name =3D = 'com.apple.NSEventThread' * frame #0: 0x00007fff8d78238a libsystem_kernel.dylib`mach_msg_trap + = 10 frame #1: 0x00007fff8d7817d7 libsystem_kernel.dylib`mach_msg + 55 frame #2: 0x00007fff78104c94 = CoreFoundation`__CFRunLoopServiceMachPort + 212 frame #3: 0x00007fff78104121 CoreFoundation`__CFRunLoopRun + 1361 frame #4: 0x00007fff78103974 CoreFoundation`CFRunLoopRunSpecific + = 420 frame #5: 0x00007fff75d82a62 AppKit`_NSEventThread + 205 frame #6: 0x00007fff8d872aab libsystem_pthread.dylib`_pthread_body + = 180 frame #7: 0x00007fff8d8729f7 libsystem_pthread.dylib`_pthread_start = + 286 frame #8: 0x00007fff8d8721fd libsystem_pthread.dylib`thread_start + = 13 (lldb) thread select 4 (lldb) bt * thread #4: tid =3D 0x409120, 0x00007fff8d78a4e2 = libsystem_kernel.dylib`__workq_kernreturn + 10 * frame #0: 0x00007fff8d78a4e2 = libsystem_kernel.dylib`__workq_kernreturn + 10 frame #1: 0x00007fff8d872791 = libsystem_pthread.dylib`_pthread_wqthread + 1426 frame #2: 0x00007fff8d8721ed libsystem_pthread.dylib`start_wqthread = + 13