From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: help-debbugs@gnu.org Resent-Date: Mon, 04 Jan 2021 17:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45658 X-GNU-PR-Package: debbugs.gnu.org X-GNU-PR-Keywords: To: Jimmy Yuen Ho Wong Received: via spool by submit@debbugs.gnu.org id=B.160978147916068 (code B ref -1); Mon, 04 Jan 2021 17:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2021 17:31:19 +0000 Received: from localhost ([127.0.0.1]:60163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwThO-0004B5-Qm for submit@debbugs.gnu.org; Mon, 04 Jan 2021 12:31:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:38582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwThM-0004Ax-UL for submit@debbugs.gnu.org; Mon, 04 Jan 2021 12:31:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwThM-0002ZM-Lv for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 12:31:16 -0500 Received: from outbound.soverin.net ([116.202.65.218]:39203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwThJ-0005U3-Gv for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 12:31:16 -0500 Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id DF3716057A for ; Mon, 4 Jan 2021 17:31:08 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1609781468; bh=PJayV6N7y6dRYEpOdTOitPYrP1g+Xncr7gtEk6WfEyc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=gROfR/OcZLbAD8YWS5ChSsfl8rtWyrB7ZJzpqAAPHrGyLkU7whHzfaaSJB04Ip0CH VMnSutRx4yFTOJ6PE/22Is1Q1xzXiUaSL3Ws/QiZVH86GgSSoXut3gp90fDfG7AFqK a9bb77DpScPWn7GTr88zDs0gKRNRvecTZHtw0GV3sa7FXBqEdTs+VFkIZmXV1wH/PD 89VN1wJzX9Lk4t6s5JFleVg+SIWOHVaKnxhnCtzlvrCf5ew+dZwVFsdpwiI5Ysz+qr ig+PFSVaamzSg0dlFqZVsSaMzy6RR8K3DZii2ivLVm33TCVcUUmATcBegeY1sGIhqo +T1ZghETEGEnw== Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 2E5C7202999B95; Mon, 4 Jan 2021 17:31:06 +0000 (GMT) Date: Mon, 4 Jan 2021 17:31:06 +0000 From: Alan Third Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=116.202.65.218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) On Mon, Jan 04, 2021 at 02:51:31AM +0000, Jimmy Yuen Ho Wong wrote: > On Fri, Jan 1, 2021 at 10:41 AM Alan Third wrote: > > > > On Fri, Jan 01, 2021 at 03:26:46AM +0000, Jimmy Yuen Ho Wong wrote: > > > I've just seen show up on the emacs-27 branch. I'm seeing the exact same > > > stack trace. However, I'm unable to confirm the two funcalls actually > > > correspond to "mouse-fixup-help-message" and "mouse-pixel-position", as I > > > don't know which commands in LLDB to type. Any help with this will be > > > appreciated. > > > > > > I don't know how to reproduce this consistently, but it seems to happen most > > > often after I cmd-tab to a different app's window from Emacs. > > > > Hi, it's probably bug#45541 which I've just pushed a fix for to the > > emacs-27 branch. > > Hi Alan, > > So instead of crashing at `ns_mouse_position`, it now freezes at > `ns_select`. Although I was able to send a USR2, I wasn't able to > debug on the LISP side since my entire Emacs froze with a spinning > beach ball. Please let me know if there's anyway I can debug this > further as I'm not too familiar with LLDB. Is this still mostly when you switch away from Emacs? Can you do "bt all" and send the whole output? -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 04 14:37:43 2021 Received: (at control) by debbugs.gnu.org; 4 Jan 2021 19:37:43 +0000 Received: from localhost ([127.0.0.1]:60344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwVfj-0001A9-CD for submit@debbugs.gnu.org; Mon, 04 Jan 2021 14:37:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwVfh-00019v-EY for control@debbugs.gnu.org; Mon, 04 Jan 2021 14:37:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43312) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwVfa-0006mg-L9 for control@debbugs.gnu.org; Mon, 04 Jan 2021 14:37:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kwVfZ-00066x-SQ for control@debbugs.gnu.org; Mon, 04 Jan 2021 14:37:34 -0500 Subject: control message for bug 45658 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 04 Jan 2021 14:37:33 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) reassign 45658 emacs From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jan 2021 18:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jimmy Yuen Ho Wong Cc: 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.1609959234463 (code B ref 45658); Wed, 06 Jan 2021 18:54:02 +0000 Received: (at 45658) by debbugs.gnu.org; 6 Jan 2021 18:53:54 +0000 Received: from localhost ([127.0.0.1]:45555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxDwQ-00007P-Cp for submit@debbugs.gnu.org; Wed, 06 Jan 2021 13:53:54 -0500 Received: from outbound.soverin.net ([116.202.65.218]:33961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxDwM-000077-NA for 45658@debbugs.gnu.org; Wed, 06 Jan 2021 13:53:52 -0500 Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 348636020F for <45658@debbugs.gnu.org>; Wed, 6 Jan 2021 18:53:44 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1609959223; bh=S82XBMX9JnGK2Gf84JVhRyzuKppuHrCQltstnkduQCw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TYks4F6yc3r35DR9/q38mYNuDjqYTqPGCawh7EJMw9lyuZGTJyYWl561iBORZh+5F z1J1kd5jiNZKEWCgtWm0UuKEirQVYdGZ4TH/Zb7ZltaC43mGY/KqrAGsHT/sUU/nzs 5VABWRaaJwX1hEA4/wepzwN/Vhx8mbiPZ/mxSwfmF4DrAMEmweph7cTp5QTkEuCWzv cGs/d9gLhbiGYH6/ErRrqsyzk0SsS14VCOmqThDgfAoUMFpOsxj6x3cAnVEWLzV93c 7oWykP/9n1s9qDYVtTjVGSmcOXdY0OBujYmXp+9luOnn8b6qacZlPHO2hrvCuj0LlF EsmZlU1lEgJRw== Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 342A32029A1DF4; Wed, 6 Jan 2021 18:53:41 +0000 (GMT) Date: Wed, 6 Jan 2021 18:53:41 +0000 From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Jan 06, 2021 at 07:04:37AM +0000, Jimmy Yuen Ho Wong wrote: > > Is this still mostly when you switch away from Emacs? > > Yes. I'm on Catalina and here's my configure flags if that helps: > > "--disable-silent-rules --prefix=/opt/local --with-ns --with-libgmp > --with-json --with-xml2 --with-modules --with-lcms2 --with-rsvg > --with-gnutls 'CFLAGS=-pipe -O0 -ggdb3 > -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk > -arch x86_64' 'CPPFLAGS=-I/opt/local/include > -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk' > 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie > -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk > -arch x86_64'" > > > Can you do "bt all" and send the whole output? Thanks. I've raised a bug report for this. Unfortunately I can't see what's causing this just now... My best guess is that there's a missed ns_send_appdefined somewhere. Can you switch to the thread that's running fd_handler and see what it's doing? There are only two branches, so it should be easy to work out which one is in use. > (lldb) bt all > > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP > * frame #0: 0x00007fff6a0ccdfa libsystem_kernel.dylib`mach_msg_trap + 10 > frame #1: 0x00007fff6a0cd1fd libsystem_kernel.dylib`mach_msg + 201 > frame #2: 0x00007fff2fedbef5 CoreFoundation`__CFRunLoopServiceMachPort + 247 > frame #3: 0x00007fff2feda9c2 CoreFoundation`__CFRunLoopRun + 1319 > frame #4: 0x00007fff2fed9e3e CoreFoundation`CFRunLoopRunSpecific + 462 > frame #5: 0x00007fff2eb06abd HIToolbox`RunCurrentEventLoopInMode + 292 > frame #6: 0x00007fff2eb067d5 HIToolbox`ReceiveNextEventCommon + 584 > frame #7: 0x00007fff2eb06579 > HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64 > frame #8: 0x00007fff2d14c039 AppKit`_DPSNextEvent + 883 > frame #9: 0x00007fff2d14a880 AppKit`-[NSApplication(NSEvent) > _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 > frame #10: 0x00007fff2d13c58e AppKit`-[NSApplication run] + 658 > frame #11: 0x000000010036c5fa Emacs`-[EmacsApp > run](self=0x000000010525e180, _cmd="run") at nsterm.m:5602:9 > frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=30, > readfds=0x00007ffeefbfd1f0, writefds=0x00007ffeefbfd170, > exceptfds=0x0000000000000000, timeout=0x00007ffeefbfd148, > sigmask=0x0000000000000000) at nsterm.m:4690:3 > frame #13: 0x00000001002f567a > Emacs`wait_reading_process_output(time_limit=10, nsecs=0, read_kbd=-1, > do_display=true, wait_for_cell=0x0000000000000000, > wait_proc=0x0000000000000000, just_wait_proc=0) at process.c:5577:18 > frame #14: 0x0000000100010bfe > Emacs`sit_for(timeout=0x000000000000002a, reading=true, > display_option=1) at dispnew.c:6064:3 > frame #15: 0x0000000100173432 Emacs`read_char(commandflag=1, > map=0x00000001de6881f3, prev_event=0x0000000000000000, > used_mouse_menu=0x00007ffeefbfdddf, end_time=0x0000000000000000) at > keyboard.c:2738:11 > frame #16: 0x000000010016e569 > Emacs`read_key_sequence(keybuf=0x00007ffeefbfe0e0, > prompt=0x0000000000000000, dont_downcase_last=false, > can_return_switch_frame=true, fix_current_buffer=true, > prevent_redisplay=false) at keyboard.c:9554:12 > frame #17: 0x000000010016cf89 Emacs`command_loop_1 at keyboard.c:1350:15 > frame #18: 0x0000000100269a9f > Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at > keyboard.c:1236), handlers=0x0000000000000090, hfun=(Emacs`cmd_error > at keyboard.c:919)) at eval.c:1356:25 > frame #19: 0x0000000100184cdc > Emacs`command_loop_2(ignore=0x0000000000000000) at keyboard.c:1091:11 > frame #20: 0x000000010026940a > Emacs`internal_catch(tag=0x000000000000c840, > func=(Emacs`command_loop_2 at keyboard.c:1087), > arg=0x0000000000000000) at eval.c:1117:25 > frame #21: 0x000000010016bf1a Emacs`command_loop at keyboard.c:1070:2 > frame #22: 0x000000010016bda0 Emacs`recursive_edit_1 at keyboard.c:714:9 > frame #23: 0x000000010016c0e9 Emacs`Frecursive_edit at keyboard.c:786:3 > frame #24: 0x00000001001695b4 Emacs`main(argc=1, > argv=0x00007ffeefbfe690) at emacs.c:2066:3 > frame #25: 0x00007fff69f8bcc9 libdyld.dylib`start + 1 > thread #4, name = 'gmain' > frame #0: 0x00007fff6a0d50fe libsystem_kernel.dylib`__select + 10 > frame #1: 0x0000000102045174 libglib-2.0.0.dylib`g_poll + 546 > frame #2: 0x0000000102038f63 > libglib-2.0.0.dylib`g_main_context_iterate + 340 > frame #3: 0x0000000102039011 > libglib-2.0.0.dylib`g_main_context_iteration + 55 > frame #4: 0x000000010203a0c1 libglib-2.0.0.dylib`glib_worker_main + 30 > frame #5: 0x000000010205a844 libglib-2.0.0.dylib`g_thread_proxy + 90 > frame #6: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > frame #7: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > thread #7 > frame #0: 0x00007fff6a0d187e libsystem_kernel.dylib`__pselect + 10 > frame #1: 0x00007fff6a0d179b > libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 42 > frame #2: 0x000000010036def3 Emacs`-[EmacsApp > fd_handler:](self=0x000000010525e180, _cmd="fd_handler:", > unused=0x0000000000000000) at nsterm.m:6100:20 > frame #3: 0x00007fff3256d7b2 Foundation`__NSThread__start__ + 1064 > frame #4: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > frame #5: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > thread #11, name = 'com.apple.NSEventThread' > frame #0: 0x00007fff6a0ccdfa libsystem_kernel.dylib`mach_msg_trap + 10 > frame #1: 0x00007fff6a0cd170 libsystem_kernel.dylib`mach_msg + 60 > frame #2: 0x00007fff2fedbef5 CoreFoundation`__CFRunLoopServiceMachPort + 247 > frame #3: 0x00007fff2feda9c2 CoreFoundation`__CFRunLoopRun + 1319 > frame #4: 0x00007fff2fed9e3e CoreFoundation`CFRunLoopRunSpecific + 462 > frame #5: 0x00007fff2d2ed954 AppKit`_NSEventThread + 132 > frame #6: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > frame #7: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > thread #127 > frame #0: 0x00007fff6a0ce4ce libsystem_kernel.dylib`__workq_kernreturn + 10 > frame #1: 0x00007fff6a18caa1 libsystem_pthread.dylib`_pthread_wqthread + 390 > frame #2: 0x00007fff6a18bb77 libsystem_pthread.dylib`start_wqthread + 15 -- Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2021 23:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.161023455312511 (code B ref 45658); Sat, 09 Jan 2021 23:23:01 +0000 Received: (at 45658) by debbugs.gnu.org; 9 Jan 2021 23:22:33 +0000 Received: from localhost ([127.0.0.1]:52716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyNZ2-0003Fi-Rl for submit@debbugs.gnu.org; Sat, 09 Jan 2021 18:22:33 -0500 Received: from mail-lf1-f48.google.com ([209.85.167.48]:40444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyNZ1-0003FV-0H for 45658@debbugs.gnu.org; Sat, 09 Jan 2021 18:22:32 -0500 Received: by mail-lf1-f48.google.com with SMTP id m12so31992611lfo.7 for <45658@debbugs.gnu.org>; Sat, 09 Jan 2021 15:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=saIWksyeZdz5TZe5Ww7F4KnhhEZWCCt6oPlD/YEOh/c=; b=F1GNeGgdGiidOCGDM03PjMt+YcqT+joBtD9OF+DHiRzAqiH2FOPjODHHa3gI+llhxx IR+wKQTMkgO8Bf9T7Q/7b9XUgtUmtGVoLiS2IxwlTfRFT2qyjg6L2/1dmMli5PJSc/ZE I3Z0PW5OBb4OCosC4DFYssggrNpfa6t/fLnjWavLOyM9Qy8yx7yXbVcq7Nj2nDcoFxwp SQJ/jfy8Sl/bJ2BSJOKJaC9jT/acRDjDkdF2FXrTgaMKmwQKjS/vISTcD/auUBWhN+TC mjf4G2ncA9gnGWWQL20SE1M0kn7nAcETWO1M15yqAvyXTZFiQf+lm1amUGvd+Lt3zDB7 PynA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=saIWksyeZdz5TZe5Ww7F4KnhhEZWCCt6oPlD/YEOh/c=; b=kRy0JsmSLNWdmyVFKoQTwcSmEh/3GDor+UJV0B1MmKEp3d41a2Vf4OADpsoXmE4ks0 qFs7MaIoZW6iH+ouSM6WOmrqzWRZ7y527YeQEWIMe9voiR7FYLyOr4cYvF51FPZi+olb EwvwiYrchk/OEMKZqq+CmQbmDUJkNHd0uOdxOTcp2I4nF7mgFuKxV0lxMhsjo9UQdBn7 rIcTRR9QehYfvHURin/DmJDgEX6cnAu9MBial3uGB/ScuSy9oztnPkjmg+ACni4Vj632 YwXQY+5D/jfbEF7NxHnOESCU+f3BmVwDcRfFLfeaeNGroc1PsDmmY1YtjNl0CtSv+9zN WjcQ== X-Gm-Message-State: AOAM531qQ8ouvPgLdI66mFndQbnLDPMOEjAqHbbqQncXen8MSFDS0kgd VEHXJGQHxSuZumnxibld8ng4tTCfxicJgq3CMdU= X-Google-Smtp-Source: ABdhPJzsfsS5u63rkkWlZtPSc7HgKoO28hQNLDrDHhls43c8opBK+/A+nsK1AGDvoDCU1EdYn0WZ2TaEmwBQZwU9BVw= X-Received: by 2002:a05:651c:1102:: with SMTP id d2mr4142841ljo.398.1610234544703; Sat, 09 Jan 2021 15:22:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jimmy Yuen Ho Wong Date: Sat, 9 Jan 2021 23:21:48 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ok I've just reproduced this again, this time simply by opening a file in the terminal with emacsclient, in the hope Emacs.app will open it. I've switched to the thread running fd_handler (nsterm.m:6100:20 right?) This is the frame variables: (EmacsApp *) self = 0x0000000105425d00 (SEL) _cmd = "fd_handler:" (id) unused = nil (int) result = 1 (int) waiting = 0 (int) nfds = 31 (char) c = 'g' (fd_set) readfds = { fds_bits = { [0] = 0 [1] = 0 [2] = 0 [3] = 0 [4] = 0 [5] = 0 [6] = 0 [7] = 0 [8] = 0 [9] = 0 [10] = 0 [11] = 0 [12] = 0 [13] = 0 [14] = 0 [15] = 0 [16] = 0 [17] = 0 [18] = 0 [19] = 0 [20] = 0 [21] = 0 [22] = 0 [23] = 0 [24] = 0 [25] = 0 [26] = 0 [27] = 0 [28] = 0 [29] = 0 [30] = 0 [31] = 0 } } (fd_set) writefds = { fds_bits = { [0] = 0 [1] = 0 [2] = 0 [3] = 0 [4] = 0 [5] = 0 [6] = 0 [7] = 0 [8] = 0 [9] = 0 [10] = 0 [11] = 0 [12] = 0 [13] = 0 [14] = 0 [15] = 0 [16] = 0 [17] = 0 [18] = 0 [19] = 0 [20] = 0 [21] = 0 [22] = 0 [23] = 0 [24] = 0 [25] = 0 [26] = 0 [27] = 0 [28] = 0 [29] = 0 [30] = 0 [31] = 0 } } (fd_set *) wfds = 0x000070000fbc0c18 (timespec) timeout = (tv_sec = 4, tv_nsec = 994588000) (timespec *) tmo = 0x000070000fbc0c00 (NSAutoreleasePool *) pool = 0x00000001051db650 Jimmy On Wed, Jan 6, 2021 at 6:53 PM Alan Third wrote: > > On Wed, Jan 06, 2021 at 07:04:37AM +0000, Jimmy Yuen Ho Wong wrote: > > > Is this still mostly when you switch away from Emacs? > > > > Yes. I'm on Catalina and here's my configure flags if that helps: > > > > "--disable-silent-rules --prefix=/opt/local --with-ns --with-libgmp > > --with-json --with-xml2 --with-modules --with-lcms2 --with-rsvg > > --with-gnutls 'CFLAGS=-pipe -O0 -ggdb3 > > -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk > > -arch x86_64' 'CPPFLAGS=-I/opt/local/include > > -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk' > > 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie > > -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk > > -arch x86_64'" > > > > > Can you do "bt all" and send the whole output? > > Thanks. I've raised a bug report for this. Unfortunately I can't see > what's causing this just now... My best guess is that there's a missed > ns_send_appdefined somewhere. Can you switch to the thread that's > running fd_handler and see what it's doing? There are only two > branches, so it should be easy to work out which one is in use. > > > (lldb) bt all > > > > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP > > * frame #0: 0x00007fff6a0ccdfa libsystem_kernel.dylib`mach_msg_trap + 10 > > frame #1: 0x00007fff6a0cd1fd libsystem_kernel.dylib`mach_msg + 201 > > frame #2: 0x00007fff2fedbef5 CoreFoundation`__CFRunLoopServiceMachPort + 247 > > frame #3: 0x00007fff2feda9c2 CoreFoundation`__CFRunLoopRun + 1319 > > frame #4: 0x00007fff2fed9e3e CoreFoundation`CFRunLoopRunSpecific + 462 > > frame #5: 0x00007fff2eb06abd HIToolbox`RunCurrentEventLoopInMode + 292 > > frame #6: 0x00007fff2eb067d5 HIToolbox`ReceiveNextEventCommon + 584 > > frame #7: 0x00007fff2eb06579 > > HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64 > > frame #8: 0x00007fff2d14c039 AppKit`_DPSNextEvent + 883 > > frame #9: 0x00007fff2d14a880 AppKit`-[NSApplication(NSEvent) > > _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 > > frame #10: 0x00007fff2d13c58e AppKit`-[NSApplication run] + 658 > > frame #11: 0x000000010036c5fa Emacs`-[EmacsApp > > run](self=0x000000010525e180, _cmd="run") at nsterm.m:5602:9 > > frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=30, > > readfds=0x00007ffeefbfd1f0, writefds=0x00007ffeefbfd170, > > exceptfds=0x0000000000000000, timeout=0x00007ffeefbfd148, > > sigmask=0x0000000000000000) at nsterm.m:4690:3 > > frame #13: 0x00000001002f567a > > Emacs`wait_reading_process_output(time_limit=10, nsecs=0, read_kbd=-1, > > do_display=true, wait_for_cell=0x0000000000000000, > > wait_proc=0x0000000000000000, just_wait_proc=0) at process.c:5577:18 > > frame #14: 0x0000000100010bfe > > Emacs`sit_for(timeout=0x000000000000002a, reading=true, > > display_option=1) at dispnew.c:6064:3 > > frame #15: 0x0000000100173432 Emacs`read_char(commandflag=1, > > map=0x00000001de6881f3, prev_event=0x0000000000000000, > > used_mouse_menu=0x00007ffeefbfdddf, end_time=0x0000000000000000) at > > keyboard.c:2738:11 > > frame #16: 0x000000010016e569 > > Emacs`read_key_sequence(keybuf=0x00007ffeefbfe0e0, > > prompt=0x0000000000000000, dont_downcase_last=false, > > can_return_switch_frame=true, fix_current_buffer=true, > > prevent_redisplay=false) at keyboard.c:9554:12 > > frame #17: 0x000000010016cf89 Emacs`command_loop_1 at keyboard.c:1350:15 > > frame #18: 0x0000000100269a9f > > Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at > > keyboard.c:1236), handlers=0x0000000000000090, hfun=(Emacs`cmd_error > > at keyboard.c:919)) at eval.c:1356:25 > > frame #19: 0x0000000100184cdc > > Emacs`command_loop_2(ignore=0x0000000000000000) at keyboard.c:1091:11 > > frame #20: 0x000000010026940a > > Emacs`internal_catch(tag=0x000000000000c840, > > func=(Emacs`command_loop_2 at keyboard.c:1087), > > arg=0x0000000000000000) at eval.c:1117:25 > > frame #21: 0x000000010016bf1a Emacs`command_loop at keyboard.c:1070:2 > > frame #22: 0x000000010016bda0 Emacs`recursive_edit_1 at keyboard.c:714:9 > > frame #23: 0x000000010016c0e9 Emacs`Frecursive_edit at keyboard.c:786:3 > > frame #24: 0x00000001001695b4 Emacs`main(argc=1, > > argv=0x00007ffeefbfe690) at emacs.c:2066:3 > > frame #25: 0x00007fff69f8bcc9 libdyld.dylib`start + 1 > > thread #4, name = 'gmain' > > frame #0: 0x00007fff6a0d50fe libsystem_kernel.dylib`__select + 10 > > frame #1: 0x0000000102045174 libglib-2.0.0.dylib`g_poll + 546 > > frame #2: 0x0000000102038f63 > > libglib-2.0.0.dylib`g_main_context_iterate + 340 > > frame #3: 0x0000000102039011 > > libglib-2.0.0.dylib`g_main_context_iteration + 55 > > frame #4: 0x000000010203a0c1 libglib-2.0.0.dylib`glib_worker_main + 30 > > frame #5: 0x000000010205a844 libglib-2.0.0.dylib`g_thread_proxy + 90 > > frame #6: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > > frame #7: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > > thread #7 > > frame #0: 0x00007fff6a0d187e libsystem_kernel.dylib`__pselect + 10 > > frame #1: 0x00007fff6a0d179b > > libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 42 > > frame #2: 0x000000010036def3 Emacs`-[EmacsApp > > fd_handler:](self=0x000000010525e180, _cmd="fd_handler:", > > unused=0x0000000000000000) at nsterm.m:6100:20 > > frame #3: 0x00007fff3256d7b2 Foundation`__NSThread__start__ + 1064 > > frame #4: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > > frame #5: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > > thread #11, name = 'com.apple.NSEventThread' > > frame #0: 0x00007fff6a0ccdfa libsystem_kernel.dylib`mach_msg_trap + 10 > > frame #1: 0x00007fff6a0cd170 libsystem_kernel.dylib`mach_msg + 60 > > frame #2: 0x00007fff2fedbef5 CoreFoundation`__CFRunLoopServiceMachPort + 247 > > frame #3: 0x00007fff2feda9c2 CoreFoundation`__CFRunLoopRun + 1319 > > frame #4: 0x00007fff2fed9e3e CoreFoundation`CFRunLoopRunSpecific + 462 > > frame #5: 0x00007fff2d2ed954 AppKit`_NSEventThread + 132 > > frame #6: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > > frame #7: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > > thread #127 > > frame #0: 0x00007fff6a0ce4ce libsystem_kernel.dylib`__workq_kernreturn + 10 > > frame #1: 0x00007fff6a18caa1 libsystem_pthread.dylib`_pthread_wqthread + 390 > > frame #2: 0x00007fff6a18bb77 libsystem_pthread.dylib`start_wqthread + 15 > > -- > Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2021 23:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.161023525413701 (code B ref 45658); Sat, 09 Jan 2021 23:35:01 +0000 Received: (at 45658) by debbugs.gnu.org; 9 Jan 2021 23:34:14 +0000 Received: from localhost ([127.0.0.1]:52740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyNkM-0003Yt-BF for submit@debbugs.gnu.org; Sat, 09 Jan 2021 18:34:14 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:35910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyNkH-0003Yc-8n for 45658@debbugs.gnu.org; Sat, 09 Jan 2021 18:34:12 -0500 Received: by mail-lf1-f45.google.com with SMTP id o13so32107482lfr.3 for <45658@debbugs.gnu.org>; Sat, 09 Jan 2021 15:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=xisfQzdOwccQWzQvmCI1WL4mCXOISbZZM6z27O6wFxk=; b=ISC1z1lnZBWpswneoTZxC/W9X8lZ3l9kWd5J8/1D2tSFP/MBHzgzT+QSSeWwiTumhZ pNA2YBqE+xdeLqJUAHplsAM/3iUC8br4HgWS90ciqhLDFLrXcP3cBjye3WVnqBPAJfSk hPrRw1rdouOWI40gXa5ZSU9rwLGkQaldEtMGZvM2l5DmQGHYmIJmcrsxn4ilTGmM+XKj +/feZ0J/mQmnhJKoqvitrAJ9gORuXkTT0a/brgG+BycJvJg2QtKptWvluGbJlsxX4GDi z7EMZvL2XVoEC0STp5IC/g4VdbX2vhHQaK2eXDyMHxzJs9rHrKmibBy2SwwPnksSobkh GegQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=xisfQzdOwccQWzQvmCI1WL4mCXOISbZZM6z27O6wFxk=; b=TiiiyXEn5Te2pku/hOG5K+GkgdBFFPZtK4LzjSPFsJTl7uIxudHGhSAXOrfWJJAy1l Z5Pwh0XApOBEpbZDrBpAnw2iWHmzoOhJzUfpKAB8AEmI+TRQ466K0ck2xkVmkw0Ult5H z44cMuVksvsmoGUXwE3NVwl3wyo9g6gukFvaVMlV2u5x6HsCvp2ETWcQjUpGLpt2rgTV y+TEA/beFMHHdhLeo3pwnk0KWyJ7RFmw1aA66xXSaS/ksbwT7jYn2UFop/YkbM8oiotJ 06QebyUt3u9Ro9vBWxr6phBsglWnIZ5PTFTSemltOHZQX+BvmNM+sBs1R5xGAejU0jb3 Dd5g== X-Gm-Message-State: AOAM531FTqRFM9vtT0xGB3h8nW2R3gax6t2y8g6F1Y95V8prA4b2vI5E E2tdFTl/qEmkg8vmlZboA1J5oxMIK5vw3YHBN2Y= X-Google-Smtp-Source: ABdhPJwK5sku+NozI8imMayO3TUUZGZGZZiiIf3E/cp4RWp3NRpg4X8HpUJC7bAMa2mwdZWmduXkA6HevrJq4A/UK8Q= X-Received: by 2002:a05:6512:3e6:: with SMTP id n6mr4105616lfq.262.1610235243021; Sat, 09 Jan 2021 15:34:03 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jimmy Yuen Ho Wong Date: Sat, 9 Jan 2021 23:33:26 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Missed a variable in the last reply (fd_set) fds = { fds_bits = { [0] = 32 [1] = 0 [2] = 0 [3] = 0 [4] = 0 [5] = 0 [6] = 0 [7] = 0 [8] = 0 [9] = 0 [10] = 0 [11] = 0 [12] = 0 [13] = 0 [14] = 0 [15] = 0 [16] = 0 [17] = 0 [18] = 0 [19] = 0 [20] = 0 [21] = 0 [22] = 0 [23] = 0 [24] = 0 [25] = 0 [26] = 0 [27] = 0 [28] = 0 [29] = 0 [30] = 0 [31] = 0 } } Jimmy On Sat, Jan 9, 2021 at 11:21 PM Jimmy Yuen Ho Wong wrote: > > Ok I've just reproduced this again, this time simply by opening a file > in the terminal with emacsclient, in the hope Emacs.app will open it. > I've switched to the thread running fd_handler (nsterm.m:6100:20 > right?) This is the frame variables: > > (EmacsApp *) self = 0x0000000105425d00 > (SEL) _cmd = "fd_handler:" > (id) unused = nil > (int) result = 1 > (int) waiting = 0 > (int) nfds = 31 > (char) c = 'g' > (fd_set) readfds = { > fds_bits = { > [0] = 0 > [1] = 0 > [2] = 0 > [3] = 0 > [4] = 0 > [5] = 0 > [6] = 0 > [7] = 0 > [8] = 0 > [9] = 0 > [10] = 0 > [11] = 0 > [12] = 0 > [13] = 0 > [14] = 0 > [15] = 0 > [16] = 0 > [17] = 0 > [18] = 0 > [19] = 0 > [20] = 0 > [21] = 0 > [22] = 0 > [23] = 0 > [24] = 0 > [25] = 0 > [26] = 0 > [27] = 0 > [28] = 0 > [29] = 0 > [30] = 0 > [31] = 0 > } > } > (fd_set) writefds = { > fds_bits = { > [0] = 0 > [1] = 0 > [2] = 0 > [3] = 0 > [4] = 0 > [5] = 0 > [6] = 0 > [7] = 0 > [8] = 0 > [9] = 0 > [10] = 0 > [11] = 0 > [12] = 0 > [13] = 0 > [14] = 0 > [15] = 0 > [16] = 0 > [17] = 0 > [18] = 0 > [19] = 0 > [20] = 0 > [21] = 0 > [22] = 0 > [23] = 0 > [24] = 0 > [25] = 0 > [26] = 0 > [27] = 0 > [28] = 0 > [29] = 0 > [30] = 0 > [31] = 0 > } > } > (fd_set *) wfds = 0x000070000fbc0c18 > (timespec) timeout = (tv_sec = 4, tv_nsec = 994588000) > (timespec *) tmo = 0x000070000fbc0c00 > (NSAutoreleasePool *) pool = 0x00000001051db650 > > > Jimmy > > On Wed, Jan 6, 2021 at 6:53 PM Alan Third wrote: > > > > On Wed, Jan 06, 2021 at 07:04:37AM +0000, Jimmy Yuen Ho Wong wrote: > > > > Is this still mostly when you switch away from Emacs? > > > > > > Yes. I'm on Catalina and here's my configure flags if that helps: > > > > > > "--disable-silent-rules --prefix=/opt/local --with-ns --with-libgmp > > > --with-json --with-xml2 --with-modules --with-lcms2 --with-rsvg > > > --with-gnutls 'CFLAGS=-pipe -O0 -ggdb3 > > > -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk > > > -arch x86_64' 'CPPFLAGS=-I/opt/local/include > > > -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk' > > > 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie > > > -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk > > > -arch x86_64'" > > > > > > > Can you do "bt all" and send the whole output? > > > > Thanks. I've raised a bug report for this. Unfortunately I can't see > > what's causing this just now... My best guess is that there's a missed > > ns_send_appdefined somewhere. Can you switch to the thread that's > > running fd_handler and see what it's doing? There are only two > > branches, so it should be easy to work out which one is in use. > > > > > (lldb) bt all > > > > > > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP > > > * frame #0: 0x00007fff6a0ccdfa libsystem_kernel.dylib`mach_msg_trap + 10 > > > frame #1: 0x00007fff6a0cd1fd libsystem_kernel.dylib`mach_msg + 201 > > > frame #2: 0x00007fff2fedbef5 CoreFoundation`__CFRunLoopServiceMachPort + 247 > > > frame #3: 0x00007fff2feda9c2 CoreFoundation`__CFRunLoopRun + 1319 > > > frame #4: 0x00007fff2fed9e3e CoreFoundation`CFRunLoopRunSpecific + 462 > > > frame #5: 0x00007fff2eb06abd HIToolbox`RunCurrentEventLoopInMode + 292 > > > frame #6: 0x00007fff2eb067d5 HIToolbox`ReceiveNextEventCommon + 584 > > > frame #7: 0x00007fff2eb06579 > > > HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64 > > > frame #8: 0x00007fff2d14c039 AppKit`_DPSNextEvent + 883 > > > frame #9: 0x00007fff2d14a880 AppKit`-[NSApplication(NSEvent) > > > _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 > > > frame #10: 0x00007fff2d13c58e AppKit`-[NSApplication run] + 658 > > > frame #11: 0x000000010036c5fa Emacs`-[EmacsApp > > > run](self=0x000000010525e180, _cmd="run") at nsterm.m:5602:9 > > > frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=30, > > > readfds=0x00007ffeefbfd1f0, writefds=0x00007ffeefbfd170, > > > exceptfds=0x0000000000000000, timeout=0x00007ffeefbfd148, > > > sigmask=0x0000000000000000) at nsterm.m:4690:3 > > > frame #13: 0x00000001002f567a > > > Emacs`wait_reading_process_output(time_limit=10, nsecs=0, read_kbd=-1, > > > do_display=true, wait_for_cell=0x0000000000000000, > > > wait_proc=0x0000000000000000, just_wait_proc=0) at process.c:5577:18 > > > frame #14: 0x0000000100010bfe > > > Emacs`sit_for(timeout=0x000000000000002a, reading=true, > > > display_option=1) at dispnew.c:6064:3 > > > frame #15: 0x0000000100173432 Emacs`read_char(commandflag=1, > > > map=0x00000001de6881f3, prev_event=0x0000000000000000, > > > used_mouse_menu=0x00007ffeefbfdddf, end_time=0x0000000000000000) at > > > keyboard.c:2738:11 > > > frame #16: 0x000000010016e569 > > > Emacs`read_key_sequence(keybuf=0x00007ffeefbfe0e0, > > > prompt=0x0000000000000000, dont_downcase_last=false, > > > can_return_switch_frame=true, fix_current_buffer=true, > > > prevent_redisplay=false) at keyboard.c:9554:12 > > > frame #17: 0x000000010016cf89 Emacs`command_loop_1 at keyboard.c:1350:15 > > > frame #18: 0x0000000100269a9f > > > Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at > > > keyboard.c:1236), handlers=0x0000000000000090, hfun=(Emacs`cmd_error > > > at keyboard.c:919)) at eval.c:1356:25 > > > frame #19: 0x0000000100184cdc > > > Emacs`command_loop_2(ignore=0x0000000000000000) at keyboard.c:1091:11 > > > frame #20: 0x000000010026940a > > > Emacs`internal_catch(tag=0x000000000000c840, > > > func=(Emacs`command_loop_2 at keyboard.c:1087), > > > arg=0x0000000000000000) at eval.c:1117:25 > > > frame #21: 0x000000010016bf1a Emacs`command_loop at keyboard.c:1070:2 > > > frame #22: 0x000000010016bda0 Emacs`recursive_edit_1 at keyboard.c:714:9 > > > frame #23: 0x000000010016c0e9 Emacs`Frecursive_edit at keyboard.c:786:3 > > > frame #24: 0x00000001001695b4 Emacs`main(argc=1, > > > argv=0x00007ffeefbfe690) at emacs.c:2066:3 > > > frame #25: 0x00007fff69f8bcc9 libdyld.dylib`start + 1 > > > thread #4, name = 'gmain' > > > frame #0: 0x00007fff6a0d50fe libsystem_kernel.dylib`__select + 10 > > > frame #1: 0x0000000102045174 libglib-2.0.0.dylib`g_poll + 546 > > > frame #2: 0x0000000102038f63 > > > libglib-2.0.0.dylib`g_main_context_iterate + 340 > > > frame #3: 0x0000000102039011 > > > libglib-2.0.0.dylib`g_main_context_iteration + 55 > > > frame #4: 0x000000010203a0c1 libglib-2.0.0.dylib`glib_worker_main + 30 > > > frame #5: 0x000000010205a844 libglib-2.0.0.dylib`g_thread_proxy + 90 > > > frame #6: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > > > frame #7: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > > > thread #7 > > > frame #0: 0x00007fff6a0d187e libsystem_kernel.dylib`__pselect + 10 > > > frame #1: 0x00007fff6a0d179b > > > libsystem_kernel.dylib`pselect$DARWIN_EXTSN + 42 > > > frame #2: 0x000000010036def3 Emacs`-[EmacsApp > > > fd_handler:](self=0x000000010525e180, _cmd="fd_handler:", > > > unused=0x0000000000000000) at nsterm.m:6100:20 > > > frame #3: 0x00007fff3256d7b2 Foundation`__NSThread__start__ + 1064 > > > frame #4: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > > > frame #5: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > > > thread #11, name = 'com.apple.NSEventThread' > > > frame #0: 0x00007fff6a0ccdfa libsystem_kernel.dylib`mach_msg_trap + 10 > > > frame #1: 0x00007fff6a0cd170 libsystem_kernel.dylib`mach_msg + 60 > > > frame #2: 0x00007fff2fedbef5 CoreFoundation`__CFRunLoopServiceMachPort + 247 > > > frame #3: 0x00007fff2feda9c2 CoreFoundation`__CFRunLoopRun + 1319 > > > frame #4: 0x00007fff2fed9e3e CoreFoundation`CFRunLoopRunSpecific + 462 > > > frame #5: 0x00007fff2d2ed954 AppKit`_NSEventThread + 132 > > > frame #6: 0x00007fff6a190109 libsystem_pthread.dylib`_pthread_start + 148 > > > frame #7: 0x00007fff6a18bb8b libsystem_pthread.dylib`thread_start + 15 > > > thread #127 > > > frame #0: 0x00007fff6a0ce4ce libsystem_kernel.dylib`__workq_kernreturn + 10 > > > frame #1: 0x00007fff6a18caa1 libsystem_pthread.dylib`_pthread_wqthread + 390 > > > frame #2: 0x00007fff6a18bb77 libsystem_pthread.dylib`start_wqthread + 15 > > > > -- > > Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2021 00:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jimmy Yuen Ho Wong Cc: 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.161023690416322 (code B ref 45658); Sun, 10 Jan 2021 00:02:01 +0000 Received: (at 45658) by debbugs.gnu.org; 10 Jan 2021 00:01:44 +0000 Received: from localhost ([127.0.0.1]:52771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOAx-0004FC-JX for submit@debbugs.gnu.org; Sat, 09 Jan 2021 19:01:43 -0500 Received: from outbound.soverin.net ([116.202.65.218]:38887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOAu-0004Ev-AX for 45658@debbugs.gnu.org; Sat, 09 Jan 2021 19:01:41 -0500 Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id AACB360199 for <45658@debbugs.gnu.org>; Sun, 10 Jan 2021 00:01:33 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1610236893; bh=09p3MsAbnupqvQz8OFkiBu6MQGS9sVyRoqSu9KxV8fo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qr2RIeBkh3fgTD+dhZmaI9g0GA+F++8BIH+5507o5Zll+eeK60A0OVl7Iw9giQQNn ORn3fzIpf/686yhHobS1ejk16sSZ9Orah7fciDS7v3CnlaRgryALkKvruXO9FiXoId SGOou3uaGWiA3/pdTgp9nyAf9UaE48fCc9AtoOdO3IUQLA0cH+PmPF1JYWErP/nk1Z 9FJGwM/PSuXCEincQMScIApDUAldjS4G7ohyyh0qPcDUJ0SVfmEDN2r5Fe8HG828LR iu3u2SMCBtf8V3Akod3tqmCrsy2dOVtgH0sVWZWkziVx/ovq0H1tkfCuxBEIpfUo0Y YFTQESh/TjO0g== Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 4F7A22029C80D5; Sun, 10 Jan 2021 00:01:31 +0000 (GMT) Date: Sun, 10 Jan 2021 00:01:31 +0000 From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, Jan 09, 2021 at 11:21:48PM +0000, Jimmy Yuen Ho Wong wrote: > Ok I've just reproduced this again, this time simply by opening a file > in the terminal with emacsclient, in the hope Emacs.app will open it. > I've switched to the thread running fd_handler (nsterm.m:6100:20 > right?) This is the frame variables: That all looks pretty much like I'd expect. Can you check if it ever reaches the end of ns_select? You could either stick a breakpoint at, say, like 4733 of nsterm.m, or make it print to the console or whatever. I suspect that since you're seeing a spinning wheel it's not reaching the end, but we may as well find out for sure. You're running macOS 10.15, yes? Do you use Homebrew or something else? Does 'emacs -q' also freeze up? -- Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2021 00:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.161023962920527 (code B ref 45658); Sun, 10 Jan 2021 00:48:02 +0000 Received: (at 45658) by debbugs.gnu.org; 10 Jan 2021 00:47:09 +0000 Received: from localhost ([127.0.0.1]:52796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOsu-0005L1-UA for submit@debbugs.gnu.org; Sat, 09 Jan 2021 19:47:09 -0500 Received: from mail-lf1-f52.google.com ([209.85.167.52]:33594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyOsr-0005KU-JO for 45658@debbugs.gnu.org; Sat, 09 Jan 2021 19:47:07 -0500 Received: by mail-lf1-f52.google.com with SMTP id v67so4013372lfa.0 for <45658@debbugs.gnu.org>; Sat, 09 Jan 2021 16:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=LyyFJULT4pgKgZOK7ZSJS454/xAB2xaBMR6XLRcAumI=; b=aGiTLLKj7/5/M6Ztu1nrdR73aae3GWN8ads0CbDH37smtVJx6ff+HCTpSRO8jexcq1 yVBmNdSkvSRmNmr0ff5pMxW9TF9CrPzBWFp+qyESVMxt26Ttr/UwB46fj6kXMwMpMH+A kngxerI+6wdtW6RJDn7Nqc2H756cv8BgbbMoekqiikhMXUtp88SPlkMBdxBE3iNzXu4K sr49trsrFGKaltEg7arBPbeeA220VDrvo2cZNf8N2Y3hGDg1NnmLdd6V/p7AHj5+UkLi cPNBs5swDH+adbrrbsu9zqD8+wHCvSTFqP7cRcQ2x/yHysneuHSu9ed2liuhAGTRN/fG NSGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=LyyFJULT4pgKgZOK7ZSJS454/xAB2xaBMR6XLRcAumI=; b=uG5oQbMAg0WE6Y0yaIHLxFUxdkaMlNMAZ5KXjsfV5RNrDBd4apq9rZp15QQA77/Qzn NQTPKKOZ1QSzWLEwec/kYJ/p2SQTV3mnGot0PQ9aSL5DiGy1T52mrHNIEV0rWQSx7hHA SOs0pYYiKu+wBQHysa2ng4RS+C5wqsaMtDKjkCLAwR7SAuZLiOiJiO8Jjcmeo/UJMmS1 jr2jlayGzNHqTM0c9dwp2RWW1fGn0P5l4lRisVzGcHNTb8X0egWyNhZQceFb1aa3Tedo exsgpOGOF/fP3FiL1hJcMy4Sw9C9ei0MhWaOXAp8f3ndbk8lDhDYisIDot9EgBzoaZjW YLFg== X-Gm-Message-State: AOAM5337Nhik55Zkq9FxOAEZmFToFG3uekq9zExT1xAhQ8yabXuuckT/ tLyJsVxM/SSAeXfQOZcay+m7BI9VKu+t13T3Bvg= X-Google-Smtp-Source: ABdhPJwl2S8+b6w7kSsdgpB39F6xHx8hZUJkg4OAiqwrjDFbNgELJdf2mgPctB0hUwnM3fpR7W0rEkZanqPuSWZAa0o= X-Received: by 2002:ac2:4249:: with SMTP id m9mr4937506lfl.594.1610239619459; Sat, 09 Jan 2021 16:46:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jimmy Yuen Ho Wong Date: Sun, 10 Jan 2021 00:46:23 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The breakpoint at 4733 does get reached, there's no beach ball for this initially, just an unresponsive frame. I can't Cmd-TAB to it, I have to use the mouse to select it in Mission Control. The windows sometimes freeze, sometimes go blank then freeze. This bug can occasionally be produced by issuing `EDITOR=emacsclient git rebase -i HEAD~2` in the terminal, but not consistently. I'm on Catalina, not on Homebrew, I just checked out the emacs repo and switched to the emacs 27 branch. I'm on the latest commit. > Does 'emacs -q' also freeze up I don't have a way to reproduce this bug consistently so I don't know. Jimmy On Sun, Jan 10, 2021 at 12:01 AM Alan Third wrote: > > On Sat, Jan 09, 2021 at 11:21:48PM +0000, Jimmy Yuen Ho Wong wrote: > > Ok I've just reproduced this again, this time simply by opening a file > > in the terminal with emacsclient, in the hope Emacs.app will open it. > > I've switched to the thread running fd_handler (nsterm.m:6100:20 > > right?) This is the frame variables: > > That all looks pretty much like I'd expect. > > Can you check if it ever reaches the end of ns_select? You could > either stick a breakpoint at, say, like 4733 of nsterm.m, or make it > print to the console or whatever. > > I suspect that since you're seeing a spinning wheel it's not reaching > the end, but we may as well find out for sure. > > You're running macOS 10.15, yes? > > Do you use Homebrew or something else? > > Does 'emacs -q' also freeze up? > -- > Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2021 10:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jimmy Yuen Ho Wong Cc: 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.161027452314350 (code B ref 45658); Sun, 10 Jan 2021 10:29:02 +0000 Received: (at 45658) by debbugs.gnu.org; 10 Jan 2021 10:28:43 +0000 Received: from localhost ([127.0.0.1]:53138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyXxi-0003jN-Pj for submit@debbugs.gnu.org; Sun, 10 Jan 2021 05:28:42 -0500 Received: from outbound.soverin.net ([116.202.65.218]:50795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyXxd-0003j4-A7 for 45658@debbugs.gnu.org; Sun, 10 Jan 2021 05:28:41 -0500 Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 151A1600DF for <45658@debbugs.gnu.org>; Sun, 10 Jan 2021 10:28:31 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1610274510; bh=tw3obHgTdaMp6JjiYCsxJi6j5BVJ49FVmTxEGVHfHlM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KTQeKjyEiazoWz5jXviXixY/smADhETyXSHCHrvrWGU5nNyo9Hv6851JqBhNkxe79 54ffbcrxQogIm37P9GMCve6SEITAyApPss/eSq+qFL27iom3eUCFHe9jVv+51aTtAd weRtrbOzIn2M459WWV7KFOnntOkHX8cqFvE6WH+Uiil3KbXfr6W89ZQlpRFVJgoljR Xvalmhh1UWGFiNkNSkfUbukdCDDzB03ADe2reewpdJ3L3SEPcLB6nZyJAjjeScWkJK PpmJwLJiI2Fj0mthmzAoMJOCWCLtLGUd/6jFRihKIxACUJpympbl26srmy7MGSK5l1 iKyKT5mVDhYJQ== Received: by breton.holly.idiocy.org (Postfix, from userid 501) id DD73D2029C8C3C; Sun, 10 Jan 2021 10:28:28 +0000 (GMT) Date: Sun, 10 Jan 2021 10:28:28 +0000 From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sun, Jan 10, 2021 at 12:46:23AM +0000, Jimmy Yuen Ho Wong wrote: > The breakpoint at 4733 does get reached, there's no beach ball for > this initially, just an unresponsive frame. I can't Cmd-TAB to it, I > have to use the mouse to select it in Mission Control. The windows > sometimes freeze, sometimes go blank then freeze. This bug can > occasionally be produced by issuing `EDITOR=emacsclient git rebase -i > HEAD~2` in the terminal, but not consistently. > > I'm on Catalina, not on Homebrew, I just checked out the emacs repo > and switched to the emacs 27 branch. I'm on the latest commit. Out of interest, can you try using the master branch for a while and see if the same thing happens there? -- Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2021 09:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.161061801932416 (code B ref 45658); Thu, 14 Jan 2021 09:54:01 +0000 Received: (at 45658) by debbugs.gnu.org; 14 Jan 2021 09:53:39 +0000 Received: from localhost ([127.0.0.1]:37241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzzJz-0008Ql-9e for submit@debbugs.gnu.org; Thu, 14 Jan 2021 04:53:39 -0500 Received: from mail-lf1-f41.google.com ([209.85.167.41]:33846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzzJx-0008QX-DU for 45658@debbugs.gnu.org; Thu, 14 Jan 2021 04:53:37 -0500 Received: by mail-lf1-f41.google.com with SMTP id o19so7200395lfo.1 for <45658@debbugs.gnu.org>; Thu, 14 Jan 2021 01:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Pjcu4bkQAvXeL5JQ8zox4abV7HSF86qjE4ubvcIk5yg=; b=YN1EmwF9/h15Do+Zyp50J1b8/HJqUb9oT1yYUvDlh1Ni6Am1+CYak3W/zPVqcdn7jB aAdKLn4JwlOIbrKxqxQijay7G1gSA9V84QoFGb0kF3OclYYdDJKjvI4VlCQQM1Yw+p4H 79K6tRlA+XZ9iHOafSGJ7qLKO9eE/XuVzX7XiiHKU931gffItNAwbrVbl8JVT99B5xMj ZJfqbE5lBlBa3b06z/meJTmZd08sZYS+IVfUKpgKumaTist66E5eYnpGajbQnrR5PsEI lVO0BRuK9h8ptib0bQW22TdTgpbOT5GGMNHF5Hx5U3KvqLr1a3AWPRDkNfsUabQXvGXN GsyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Pjcu4bkQAvXeL5JQ8zox4abV7HSF86qjE4ubvcIk5yg=; b=F+HhlV+mtHYrvyoqSA60VyymuOiGTh/IvjHGZBHajG4IM7+BSF/c+VNtnSHdKcpQf9 3r0RO92c+7yujuDBNwd3RSvvHtxs6VR4WYifvlN8LV9nddMMmXlYT/SeT9EZGonmDQvw NgMh0Dhp4qTMVNMnIpIKjPXO9yKyCXgaFM/G5XDKGWNSjhUzfDOzGDiHoVEOoC6du16a +sCI7JN2tU2RW99OFWrl9ITaqLJvyOL2jvxbLHTkhLpcvhcnf1mXCMcw1/gFy52eBj1N ZgqOLbYY+UxDzWABkxPEbkLwRmsnfujkLJzThtzQF3wNNXADvx3iSv7qtY9eR5l9XQQe tuVQ== X-Gm-Message-State: AOAM5339fIq6Qfb5I3pEeVwQF0k+k7+0FxE74DnVmP9FtK9p8lSQEN+I Hc3hS0E1wFQrMyb86oK9Q9Vk2nUSATRuMCpVWSk= X-Google-Smtp-Source: ABdhPJzPLZnmzMV2NFzIPU4WkZZ41aQvMbIKwvVHVX4z2n0QS+2h8QxQG48dEdfFKsDuSzew22lnuBxf5VFFYQps9DI= X-Received: by 2002:ac2:43c1:: with SMTP id u1mr3114355lfl.38.1610618011264; Thu, 14 Jan 2021 01:53:31 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jimmy Yuen Ho Wong Date: Thu, 14 Jan 2021 09:52:55 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I can't really use it. It's broken at least 4 packages I need to use at the moment. Jimmy On Sun, Jan 10, 2021 at 10:28 AM Alan Third wrote: > > On Sun, Jan 10, 2021 at 12:46:23AM +0000, Jimmy Yuen Ho Wong wrote: > > The breakpoint at 4733 does get reached, there's no beach ball for > > this initially, just an unresponsive frame. I can't Cmd-TAB to it, I > > have to use the mouse to select it in Mission Control. The windows > > sometimes freeze, sometimes go blank then freeze. This bug can > > occasionally be produced by issuing `EDITOR=emacsclient git rebase -i > > HEAD~2` in the terminal, but not consistently. > > > > I'm on Catalina, not on Homebrew, I just checked out the emacs repo > > and switched to the emacs 27 branch. I'm on the latest commit. > > Out of interest, can you try using the master branch for a while and > see if the same thing happens there? > -- > Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 02:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: 45658@debbugs.gnu.org, Jimmy Yuen Ho Wong Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.16346953596387 (code B ref 45658); Wed, 20 Oct 2021 02:03:01 +0000 Received: (at 45658) by debbugs.gnu.org; 20 Oct 2021 02:02:39 +0000 Received: from localhost ([127.0.0.1]:52356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md0wB-0001ex-4X for submit@debbugs.gnu.org; Tue, 19 Oct 2021 22:02:39 -0400 Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:32970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md0w9-0001ei-DB for 45658@debbugs.gnu.org; Tue, 19 Oct 2021 22:02:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634695351; bh=YpTdV/TcZl9AT8cpdYGq0PWYGtWQpWCVjm6KSsIizz0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=T4qHD73PFBvNPorwNKuklBt6d3o23PNB3JZiaF0cZuiyImnOB3uRTUiB8s4FfiBNUPyoneEen2dGznVrSLSnfHkMzpy5XA7kbpybcNlqL3WvoP5yJU6EUOpcl/NIqLq5qOguDv8ZhPomsE0bMcH7qNoW4flBKzk76omj5tVUCF2IdRxMT5F7RmxgcRdnO4A7smZk8VA736b5h/aGKMXPkVBs2t/OMXim/2IUsf1f/8ieXZiG2GihoqcLTXiB/YDh+zoMZVk68IBAJ1oKdjEkexrLqQ0kDqg4Fh9iKGH0oZ92/trnczhPO1nCEmFmBLARRfadNg6GvDnRgSV44ZP6LQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634695351; bh=fwvoh49lJn3YM3a+bN/I9BKdJNzgXrvRUY5BYeyMh6F=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=QHFGOM/dbJtU/wwH2KE5C9mqk4jgkYW+FBtyeC3V22ZmL3DdB7uTGpRL0ITBIHb7nEg8p3IoOh1TiBreiIbMs2qk0uX7+9YID8wr8XSSyAj1M0ya7fV9TPu8wRRukP7zoPPEypm3zPnTyYt1hsAwJLrqZ7OSg1S29PuAUKt6lLQ3Tgp46TFaRkyHwXN9ILrLme8EcAipepgps00G0knhfLTvAo/wXp8wIDvwblJsqzGKT9AQnnLrCX/Gducgj5kWRJkoblVGeCCjTU4NVKnRiNwwRO7BRbawXqzotLvfY5CeEWMa/v1+p6BDOSSy7BrBDyojXxRU+MNOINhFVBkUlQ== X-YMail-OSG: R24qSvsVM1lQGkqKcKEJBo3q8dqzNB9otxemgjHXacOVJ93SY5KUIX.aK7M442E oJ9oNA_XyNhQjEYT3XaINgkFDYVMXfkG4_Ua85GY._jJMllqtK5CzQXybp2m3Dr9FI9RVaxLU_Gc q9FVa3_Y5aVfYiTJSf11JokC0Lw82JjZbM52IwhkU2TDamMf1rYy3SDk_AUS8VRj4igP0NoPGY3z GByt6GiCK1NNLLLqWF0PnO.72t9SeXiDhZIKXQvB90l8AO87YjI75189rd1QCPRW_lU..yM2OrI2 uRXlXhHUy2QN2K6O6Srr8.04E7RpGA3L122HOpp4oBGG_WIRuU_Gwdr4rii03HZ2wTheQsAzo0Et Wsg8hxXpCba77U7etnbAADK2XIJBF3PIEiv38Y6Nsj4LD3EIRsSefph.Ab3B4QlCF99wKsp7VKGX HSvnVrms5mViCXvGhOFdQ53jEfHsIWluwJOj.UvIPV0L.7Lv3Ng4Lx6BVR1GfHv9n19DVxUJRz8A kJRUItoQXO8j6SkBzOHbKC.RPQXRnpz5ITrQEKrGZpr5Mc9TQ3QwjK1a6v5.Nz2X_4bL6IxAG9pS tzWbkmYSvfivmt.qDs04btDNAZFmyYzTMxwmeOnTrybgziBWabhZvGTAypNkr7Y2k2ENgC8ejYaX B0gw5M8EAWsOx0g3ZyiwymA4dOv7C989DibNAGCDPYkZQmXs3nTvLasfQgMxc4n1pbxq3H2Kxp5J Vd0U8F0h1Aa3FZ301p6skxiqI9HWsrE_Ju5YSVSnnd8KDjZkxQAVsHWnZFSm9dVb7qLWd5mIuVzX CaxE0TQNd8Ipo_eUXvzkZ96NobCHF7jCb7UiTFupsAeapRuUJiDtyXxW25S7Bi6C3l2mF328PkQi mw06AqyWzkFvjtfCeZXw04Ih80SxHIW7xVCX8qBIpEqpBQb_Nwwfy3OjS..ae3LV2_OdKxMDMp.z 0yBLltymM3Qx_rRz4f0EzD_8VvglXM9msYapr0lpsKZPDYznk8_K6Yes_mn_FlqE5KMHuKMhQHdW LsS8NYJnrAkB4Xsyhy2.eN_Eiv43DyylPAmztdk_lZa3N0HW7nScK0A3SMosKXQL_F25OSETkJNR OHFwYQ1w1j4dXqi8sJ3bYlThHK3f3oIL3EAFFyFdAxkNUYNfTpu8nawdQQgmPkBsSHITodUie0.B Sb7m4RDhTS1M6u1EIce.S1hrRlywy6QlYeYXMOk8rGLpe0__5N1BJ4SiUx1Ky6xqwWsioEd651gT vh0_41M3H1326Hw05kz80ru4.0zhPGw9t1K84YfClIOnOYqpLa1k5w7t0ynOb_vRUT.rKXnM.bn_ uVB9xMT4eSfHi5O2IjVVKVyOs1g3SLhX81QSY8N_PLZYNFnKxkTDQDVH2lH.RxhbxpY_TJnyJ2SO JfqpqfGT78qkmuc.pQRITsb5cOInydEpTj0jKtDAkbTvxfuWQ5SPS9gqk35KKlJhGg3RaU9tSM6w KvP4unOSNvmaJA14kpQmaAOxGRVbhbnXg.jPPIEXuy6bjgiLU3lHBSLdYc70lwD2wjtQOr8s_iSI tMPC4PNYhnCjk9uV6_w6H9RmgVU8Ao3ysdgXuoodOh5r9NRqWlS16m8U61_WsAeUhxP0rbDSZdDk jOosl0Ey6_KIUca3x3jaMsywLW2c7uXPMloCqNuoq_6450OhDff2EnU8k3.QrKFB.j4W8qfP6U43 DW2r0pB0fxim52TXnAKFo4jA1UKeomM9VtLjsNI5My.HY4x3mCKEARU.osFEHdh5XkcRl7wtsyz0 MsUV23c44bhMwkRIytN39BQfOaBkgIGS3JyOoOZMXy5kabN3ShNBHx4awBdIeCUc7OqxhmyJ6Izq iBoxR4pzgaGQldJzFTEBIfPo.CknJVLUfOT3dcm5sfGOBFeH3ddFTWmdFsf1yFsXwp2gQ9JfY9vc hE_pLYyNFnC6k252OKpqT8HnMOYn9y0fjE_xYJO80GXJLwT6pmZLm3wsSQHgQs6OBHVBv7svTVtl EKN3pIYUUVtvJmd.9Q3Y_F_QLq5e4kqmcDzM.1jFN_qIvemmnhfUwJECWSGSb0IMVG_bH5bSPZVq wYoD2BDyUfEimvAFsVGyPvit2UVYWCclsKUsLBokKE_QBVHmi4T1bml2zyrI7aB29IYM_QtnCjuE Mwqtf1OQnDjtWyg4UGRZzrezQC7Uw_3fBRAB1z7blHut5AMI_hDgg.uux8RbadM4owT20swMbWcL yUf9ZO.1POT1f5uzY8bitmQ0N2ylMuwHgp72iXsA9yyDzLWhRz2QU X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Wed, 20 Oct 2021 02:02:31 +0000 Received: by kubenode502.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 4c81a0dc58731f12785e95b4fa9936bb; Wed, 20 Oct 2021 02:02:26 +0000 (UTC) From: Po Lu References: Date: Wed, 20 Oct 2021 10:02:23 +0800 In-Reply-To: (Alan Third's message of "Wed, 6 Jan 2021 18:53:41 +0000") Message-ID: <878ryoe9n4.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.19116 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 983 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > ns_send_appdefined somewhere. Can you switch to the thread that's > running fd_handler and see what it's doing? There are only two > branches, so it should be easy to work out which one is in use. >> frame #8: 0x00007fff2d14c039 AppKit`_DPSNextEvent + 883 >> frame #9: 0x00007fff2d14a880 AppKit`-[NSApplication(NSEvent) >> _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 >> frame #10: 0x00007fff2d13c58e AppKit`-[NSApplication run] + 658 >> frame #11: 0x000000010036c5fa Emacs`-[EmacsApp >> run](self=0x000000010525e180, _cmd="run") at nsterm.m:5602:9 >> frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=30, >> readfds=0x00007ffeefbfd1f0, writefds=0x00007ffeefbfd170, >> exceptfds=0x0000000000000000, timeout=0x00007ffeefbfd148, >> sigmask=0x0000000000000000) at nsterm.m:4690:3 Does it also make sense for this to occur on GNUstep? I have just seen a very similar bug there, but I lost the backtrace :( From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 20:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Po Lu Cc: 45658@debbugs.gnu.org, Jimmy Yuen Ho Wong Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.1634761495408 (code B ref 45658); Wed, 20 Oct 2021 20:25:01 +0000 Received: (at 45658) by debbugs.gnu.org; 20 Oct 2021 20:24:55 +0000 Received: from localhost ([127.0.0.1]:55555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdI8t-00006V-HW for submit@debbugs.gnu.org; Wed, 20 Oct 2021 16:24:55 -0400 Received: from outbound.soverin.net ([116.202.126.228]:36035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdI8r-00006G-Qq for 45658@debbugs.gnu.org; Wed, 20 Oct 2021 16:24:54 -0400 Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 76EE951; Wed, 20 Oct 2021 20:24:47 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1634761486; bh=2bwKbKPVRxTM8tL5cAAZVU19TD1wRdMtFVS+Dq3MVOY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dxBYNSOg8v9GFgEjxoaALV4jjjad6rLD62BqBxNpk5bIdMKEJexNYdziW19w9+dx0 ebrW75jeeTe4ja7/lqCH6b+GlI8+eWhHWligBxIuzgMVGcefbDeMKhBUSaQvIVaEpd ydW87ELKrKyc0MPuvMj9Jl/FkePf9e6lDRaXgX36b8ng/1szUEiRbf9C/9o6n0/hox nxt99bT+gfmu537KD9silYiys+/w9ZNkBdaMS64SQhI+tWyblECb60KOyx3He1DiQh RvawbCWrI0CFOi/SkMOmYD3lH2ey6X2xUVCHCC+3kosKE0GW50HHXbtnB9wdXFhtOq oJOTSvvFdQ36w== Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mdI8i-000c0z-6r; Wed, 20 Oct 2021 21:24:44 +0100 Date: Wed, 20 Oct 2021 21:24:44 +0100 From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Po Lu , Jimmy Yuen Ho Wong , 45658@debbugs.gnu.org References: <878ryoe9n4.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878ryoe9n4.fsf@yahoo.com> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Oct 20, 2021 at 10:02:23AM +0800, Po Lu wrote: > Alan Third writes: > > > ns_send_appdefined somewhere. Can you switch to the thread that's > > running fd_handler and see what it's doing? There are only two > > branches, so it should be easy to work out which one is in use. > > >> frame #8: 0x00007fff2d14c039 AppKit`_DPSNextEvent + 883 > >> frame #9: 0x00007fff2d14a880 AppKit`-[NSApplication(NSEvent) > >> _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 > >> frame #10: 0x00007fff2d13c58e AppKit`-[NSApplication run] + 658 > >> frame #11: 0x000000010036c5fa Emacs`-[EmacsApp > >> run](self=0x000000010525e180, _cmd="run") at nsterm.m:5602:9 > >> frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=30, > >> readfds=0x00007ffeefbfd1f0, writefds=0x00007ffeefbfd170, > >> exceptfds=0x0000000000000000, timeout=0x00007ffeefbfd148, > >> sigmask=0x0000000000000000) at nsterm.m:4690:3 > > Does it also make sense for this to occur on GNUstep? I have just seen > a very similar bug there, but I lost the backtrace :( It doesn't make any sense to me for it to happen anywhere. ;) If it happens on macOS I don't see why it shouldn't happen on GNUstep, unless it's a bug in Cocoa and not in GNUstep. I wasn't able to replicate the crash and I don't have any real clue what was causing it for Jimmy. -- Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 20:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: Po Lu , 45658@debbugs.gnu.org Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.16347623591764 (code B ref 45658); Wed, 20 Oct 2021 20:40:02 +0000 Received: (at 45658) by debbugs.gnu.org; 20 Oct 2021 20:39:19 +0000 Received: from localhost ([127.0.0.1]:55568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdIMp-0000SO-Bt for submit@debbugs.gnu.org; Wed, 20 Oct 2021 16:39:19 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:41550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdIMn-0000SB-B2 for 45658@debbugs.gnu.org; Wed, 20 Oct 2021 16:39:18 -0400 Received: by mail-wr1-f42.google.com with SMTP id t2so42072wrb.8 for <45658@debbugs.gnu.org>; Wed, 20 Oct 2021 13:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:subject:from:in-reply-to:cc :date:message-id:references:to; bh=cqUPqLfvGt73Mk24qpzjctOkVRArmfO1DqlIiyoMaa8=; b=qPV9nE+wiQ9Omew5dorauss+uHMB0MChbwBnqt09Ol9HMUkJk4x5+Q1AMdiASfLuwT VMMqu8rFQm+JBIch6NZl0N6cRggNhfjXGNoGSwy8DdPsL0cUqdjkLtPz+P86ZThnlXkd Oxr8e/27ixAcepqUH6LzzmXqbepSlLHkukzoktXBgtWaTofa+O1wWcp92lC2vMykWq4X sEQieMewGe07UarXOx5fVzUC+GY6GZVzf2e0A8KFUP3M9gNkCLdfg3C3KvBZQ4/0BQNY xG1ocnA2eWxW2gUEK3UjTbR1NlJgaFPwBRaLHoYAlCPzUuAnWWpFY3g3dK2Na3lWoGHS jlZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:mime-version:subject :from:in-reply-to:cc:date:message-id:references:to; bh=cqUPqLfvGt73Mk24qpzjctOkVRArmfO1DqlIiyoMaa8=; b=7OoXA3WV3koTnPIw5YXcl8e+S98kXIZ5jcIqyXCJ4NvhWl9UXu/2fqyx5kLd/GajLV ylc4cJxH0TVxbuKB4de4a4JU/bLKtPMsyGkOBQJY6QfVreND8bb4Y0dsNGZUQg61ywVD oLNZCXUWOLbNRFTXU3lH5zv9ysHIcRBURjElMvrxpJU21wGzsSYesTrqHr4htXm2QDOk HVnBu/HWuDifU0SLY7J+tJfJTm8G02sAO36ezYPM/5vH7aaoQsh9PJlOZRxdcs3XaWfZ QULJKCh0OAlmpVn8aoHuRPeClgg51Figl7D+IHiEFySumxa6JMf7hqiiVzGuijg8SuY4 4dmA== X-Gm-Message-State: AOAM5302cmx5RHbydqw+xjsEjJjuDTqA/NAimHT+f5GGgt7dR0mtUf+n 0kIdGvY4CvdHmmNQpa1aaQQ= X-Google-Smtp-Source: ABdhPJxMW2PnJeQCjcQ89BZyYe/2bxpb3kvHZx+P3cJd48GQHf6L3eKcCMK6UwoE9Jc/yPEFJ2n3AA== X-Received: by 2002:adf:b19b:: with SMTP id q27mr1838828wra.125.1634762351354; Wed, 20 Oct 2021 13:39:11 -0700 (PDT) Received: from smtpclient.apple ([152.37.76.19]) by smtp.gmail.com with ESMTPSA id g2sm3049650wrb.20.2021.10.20.13.39.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Oct 2021 13:39:11 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) From: Jimmy Yuen Ho Wong In-Reply-To: Date: Wed, 20 Oct 2021 21:39:10 +0100 Message-Id: References: X-Mailer: iPhone Mail (19A404) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I haven't seen this for quite some time now, but then I've switched to emacs= 28 some time ago too. I'm not sure if it's still a problem on emacs 27. > On 20 Oct 2021, at 9:24 pm, Alan Third wrote: > =EF=BB=BFOn Wed, Oct 20, 2021 at 10:02:23AM +0800, Po Lu wrote: >> Alan Third writes: >>=20 >>> ns_send_appdefined somewhere. Can you switch to the thread that's >>> running fd_handler and see what it's doing? There are only two >>> branches, so it should be easy to work out which one is in use. >>=20 >>>> frame #8: 0x00007fff2d14c039 AppKit`_DPSNextEvent + 883 >>>> frame #9: 0x00007fff2d14a880 AppKit`-[NSApplication(NSEvent) >>>> _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 >>>> frame #10: 0x00007fff2d13c58e AppKit`-[NSApplication run] + 658 >>>> frame #11: 0x000000010036c5fa Emacs`-[EmacsApp >>>> run](self=3D0x000000010525e180, _cmd=3D"run") at nsterm.m:5602:9 >>>> frame #12: 0x000000010036a8eb Emacs`ns_select(nfds=3D30, >>>> readfds=3D0x00007ffeefbfd1f0, writefds=3D0x00007ffeefbfd170, >>>> exceptfds=3D0x0000000000000000, timeout=3D0x00007ffeefbfd148, >>>> sigmask=3D0x0000000000000000) at nsterm.m:4690:3 >>=20 >> Does it also make sense for this to occur on GNUstep? I have just seen >> a very similar bug there, but I lost the backtrace :( >=20 > It doesn't make any sense to me for it to happen anywhere. ;) >=20 > If it happens on macOS I don't see why it shouldn't happen on GNUstep, > unless it's a bug in Cocoa and not in GNUstep. I wasn't able to > replicate the crash and I don't have any real clue what was causing it > for Jimmy. > --=20 > Alan Third From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jan 2022 17:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jimmy Yuen Ho Wong Cc: Po Lu , 45658@debbugs.gnu.org, Alan Third Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.164364958627000 (code B ref 45658); Mon, 31 Jan 2022 17:20:01 +0000 Received: (at 45658) by debbugs.gnu.org; 31 Jan 2022 17:19:46 +0000 Received: from localhost ([127.0.0.1]:40611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaLB-00071Q-Pl for submit@debbugs.gnu.org; Mon, 31 Jan 2022 12:19:45 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaLA-000717-8U for 45658@debbugs.gnu.org; Mon, 31 Jan 2022 12:19:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z7v1npzzbiZ4L7H93nnAKkeYJX9uB0Vuy6vOrPCF2xQ=; b=FZUNUJp7QbubLj/1inA4wezXP1 v8fQNkcUhSvWwk9cbYXSnrukP4C3r9Vgi7n4fwYEkI+hA8u61ShR3/WJn0ou16QY1mfL7/XoeOpnn ojqlBZJx/JsZRtPbwK63maRMyAdlAD0HCWoaFGkBDZ51/cQpaXfeI3Mas1TPjeH3YZgE=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEaL1-0004uy-AV; Mon, 31 Jan 2022 18:19:37 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: Moor Mother's _Fetish Bones_: "Parallel Nightmares" Date: Mon, 31 Jan 2022 18:19:30 +0100 In-Reply-To: (Jimmy Yuen Ho Wong's message of "Wed, 20 Oct 2021 21:39:10 +0100") Message-ID: <877dafyg9p.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jimmy Yuen Ho Wong writes: > I haven't seen this for quite some time now, but then I've switched to > emacs 28 some time ago too. I'm not sure if it's still a problem on > emacs 27. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jimmy Yuen Ho Wong writes: > I haven't seen this for quite some time now, but then I've switched to > emacs 28 some time ago too. I'm not sure if it's still a problem on > emacs 27. Does this mean that the problem has gone away for you (in Emacs 28)? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 12:19:50 2022 Received: (at control) by debbugs.gnu.org; 31 Jan 2022 17:19:50 +0000 Received: from localhost ([127.0.0.1]:40614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaLG-00071l-0T for submit@debbugs.gnu.org; Mon, 31 Jan 2022 12:19:50 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaLE-00071E-Pd for control@debbugs.gnu.org; Mon, 31 Jan 2022 12:19:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UVNUeIXYlKRJ+DrD8yLdJWIYx3e2h4G7gNuJ65pgE8c=; b=FlemhouNHoKTBfX4Mb8fQxBJ79 p51fYw45V70YaEBn8xtR1u3c0MbWuYo9ezFZR8u8SQx5cYO1QOraCdUPkgJdTqv25OL2doowmU5pP gsp6q+rPyPjVew0R7RxZMg4wEFRTKns6q4wsJ5ahfU2UAMTBCOinHWTz8ZbGR4gNWItk=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEaL6-0004v5-Uc for control@debbugs.gnu.org; Mon, 31 Jan 2022 18:19:43 +0100 Date: Mon, 31 Jan 2022 18:19:40 +0100 Message-Id: <875ypzyg9f.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45658 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 45658 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 45658 + moreinfo quit From unknown Mon Aug 11 19:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#45658: Infinite loop in run loop on macOS Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2022 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Jimmy Yuen Ho Wong Cc: Po Lu , 45658@debbugs.gnu.org, Alan Third Received: via spool by 45658-submit@debbugs.gnu.org id=B45658.164614952524719 (code B ref 45658); Tue, 01 Mar 2022 15:46:01 +0000 Received: (at 45658) by debbugs.gnu.org; 1 Mar 2022 15:45:25 +0000 Received: from localhost ([127.0.0.1]:38024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nP4gn-0006Qd-Cz for submit@debbugs.gnu.org; Tue, 01 Mar 2022 10:45:25 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nP4gk-0006QK-WB for 45658@debbugs.gnu.org; Tue, 01 Mar 2022 10:45:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Dsc54pcBr6DH+8C5Um5wmKhl8VOaE+5rbRGmISavprA=; b=V3EB4h+R3v4RN3a2+SYr1xJvig Py1RsWKFR5J0h1dX/NTYTyHfEOiHW+ak9xxxcrKYJc8vgGOcPSB3Pq3b4JlB+rGpc4h263MFJIhEr /M8U3JiM4OAVQ/XH0G57+MA9uzFmhCq5w9SXO9EMw/hb6xffM8PayJbwoRzWGNEWLaeE=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nP4ga-0007oR-0N; Tue, 01 Mar 2022 16:45:14 +0100 From: Lars Ingebrigtsen References: <877dafyg9p.fsf@gnus.org> X-Now-Playing: Neil Young's _Harvest_: "Harvest" Date: Tue, 01 Mar 2022 16:45:11 +0100 In-Reply-To: <877dafyg9p.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 31 Jan 2022 18:19:30 +0100") Message-ID: <87wnhdllrs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: >> I haven't seen this for quite some time now, but then I've switched to >> emacs 28 some time ago too. I'm not sure if it's still a problem on >> emacs 27. > > Does this mean that the problem has go [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: >> I haven't seen this for quite some time now, but then I've switched to >> emacs 28 some time ago too. I'm not sure if it's still a problem on >> emacs 27. > > Does this mean that the problem has gone away for you (in Emacs 28)? This was a month ago, so I assume that the problem went away, and I'm closing this bug report. If there's still an issue here, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 01 10:45:35 2022 Received: (at control) by debbugs.gnu.org; 1 Mar 2022 15:45:35 +0000 Received: from localhost ([127.0.0.1]:38027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nP4gx-0006R1-KD for submit@debbugs.gnu.org; Tue, 01 Mar 2022 10:45:35 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nP4gu-0006QT-2e for control@debbugs.gnu.org; Tue, 01 Mar 2022 10:45:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qmBS4SYC+m2nHSGngXKCZ0gU24lLHFhMpkSjh/5N47Y=; b=JHjl/zIEt6bmyeo3w97WmjM4Fn FbS3WOsVWlR6gUgWLyCdZbvEy4BdJ4TSlscFE1GmsNJfEXqritdoPXold6mhP3hMtA/bGR5EoTV0/ WfsEuIIhRnnC5viJk52U7Eh3bN8kbGT9hORsySD7787/b78hpYvKoCNXSXYYXLYpBxG4=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nP4gg-0007oc-Km for control@debbugs.gnu.org; Tue, 01 Mar 2022 16:45:20 +0100 Date: Tue, 01 Mar 2022 16:45:16 +0100 Message-Id: <87v8wxllrn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45658 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 45658 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 45658 quit