From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#73131: 28.2; Yielded threads get killed on C-g Date: Mon, 09 Sep 2024 02:47:07 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23052"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73131@debbugs.gnu.org To: Swapneil Singh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 09 08:50:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1snYEA-0005hz-KH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Sep 2024 08:50:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snYDp-00042n-QF; Mon, 09 Sep 2024 02:50:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snYDn-00042a-Jw for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 02:49:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snYDn-0006mh-B3 for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 02:49:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=fRUs1sD2EO73S54txaF3NA3sBrjfttGLg/GxEg3/6Rk=; b=etHeGPHQZCsPYCTXBO8zyumZuLHSmE259k3FllPsF5iBmEtcKp3psdhI7u+PErxld2lxNKKVv8qEfPXsmbw6JKHltmur8JYGKqgHlMlz1cJpya6wmtmEaEGohGZG6FemdO/BJJASCq9Nj0OUIqh3w0y0f2wYNbN4tuJBIrkrKL2a9ygpcNJy0ddAqzBwg0jy+1NFQNJpkJl5x6Dp4o6VH++3p7tlnnoBtwIIWeFhqiWOdrXRt522S076N+n/2Qo5pVc+NjH0RiBMfvm+CNY487gEvCZ/QpRdZV0I99gwO/TNR1b4BBZT3KemysuEFOAW2UG51AGxdWsNEytlNd/HFg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snYDq-0001RW-Bq for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 02:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Sep 2024 06:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73131 X-GNU-PR-Package: emacs Original-Received: via spool by 73131-submit@debbugs.gnu.org id=B73131.17258645685487 (code B ref 73131); Mon, 09 Sep 2024 06:50:02 +0000 Original-Received: (at 73131) by debbugs.gnu.org; 9 Sep 2024 06:49:28 +0000 Original-Received: from localhost ([127.0.0.1]:60557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snYDI-0001QR-3V for submit@debbugs.gnu.org; Mon, 09 Sep 2024 02:49:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snYDG-0001QF-DB for 73131@debbugs.gnu.org; Mon, 09 Sep 2024 02:49:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snYB2-0006al-8T; Mon, 09 Sep 2024 02:47:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fRUs1sD2EO73S54txaF3NA3sBrjfttGLg/GxEg3/6Rk=; b=F+dwJdQSeF+fCkWktBsJ A6al3Mu5hSgNidr5zTQozvm0d60JxLC2Q2Bk38JJ6XaQBEse5zmpqaTxM83FzcZ2jGKfu7laq1IYk oHdJ+dfLzcFZvJjlMH+CUFspElAfbAiFEpKem6jL8WDVsTXNyRm6dGMWKowTUqdkidap3s8U/FyJx Wvb6hibQlsYb9IPdw2sRakBbDeCLWzMe3KCiUWpvReW69SY8RnvoSvrojpKGsgCzZnxzl2S2FZ4JE OXQbc6Wp3SEKzLuNu0pIOo9mDJRF40UfNz+6fDm522DLdkhudw00iR9lmRzv8tIYgOo3LTD5caeYA 1BJzibEU8LEkqg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1snYB2-0006St-08; Mon, 09 Sep 2024 02:47:08 -0400 In-Reply-To: (Swapneil Singh's message of "Sun, 8 Sep 2024 12:08:00 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291491 Archived-At: Swapneil Singh writes: > When using the Emacs cooperative threading system in a new project, I > noticed that calling C-g results in quitting the background thread I > create, even when those threads are yielded. > > Sending this as a bug report per Eli Zaretskii's mention that it may not > be expected behavior > (https://www.reddit.com/r/emacs/comments/1fbkkii/comment/lm3boja/). > > Repro recipe: > - emacs -Q > - `C-x 3` and run `list-threads` in the new window, then return to the > older window > - `M-:` `(make-thread (lambda () (cl-loop while t do (progn > (thread-yield) (sleep-for 30)))))` and wait for the new thread to yield to > the main thread. > - `C-g`. The new thread disappears from the `list-threads` window. > > > Note: While I am admittedly on Windows, given this behavior is within the > cooperative threads of the Emacs runtime (rather than actual Windows > threads) I *really* doubt that has anything to do with it. Data point: I might be doing something different but I can't reproduce this here on emacs-29.4 nor on emacs30 on GNU/Linux. Andrea