From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Swapneil Singh Newsgroups: gmane.emacs.bugs Subject: bug#73131: 28.2; Yielded threads get killed on C-g Date: Sun, 8 Sep 2024 12:08:00 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20588"; mail-complaints-to="usenet@ciao.gmane.io" To: 73131@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 09 06:37:35 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 1snW9e-0005Cp-SN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Sep 2024 06:37:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snW9W-00005K-Gp; Mon, 09 Sep 2024 00:37:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snVrf-0005zg-Jc for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 00:20:51 -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 1snVhz-0004wF-2F for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 00:08:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=53n38UCyrK2Ng0/uo93et2fx9YbKeqNFxgP3iPNeHZc=; b=rAnO7ZC2po9H1GJCK2LBoIKiUAvCqrPvAjNSOTuZNybSFSLtHSeKEyXhdzpazRdYAg+cVXrlw//FCDDowWc3oilmDwgLXfqFE4ayMGThM89g401DcgZ/HmOzxDHb7GhedqYvAwGbtgnBnOd8VQRMXQsqxvIaw2Apg372wPUgUCrG7K8YiqOx8DSGgMr+N3fuQoMxAiNh6r1E9CeGhEZKfcjx3YkRPVPROn8Eio+tyABbv+kJeDgjbqFON5skAQdHV/ymD/z632ksCzAzArYzXoXc/RCgOPivGnxYDvQZyuLseR16yLa4SM+TjhXTNGnvdOWB8dsKnMsTl5S8e47tvA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snVi2-00016Z-20 for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 00:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Swapneil Singh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Sep 2024 04:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73131 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17258549234175 (code B ref -1); Mon, 09 Sep 2024 04:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Sep 2024 04:08:43 +0000 Original-Received: from localhost ([127.0.0.1]:60446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snVhj-00015F-5S for submit@debbugs.gnu.org; Mon, 09 Sep 2024 00:08:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snKSy-0004w9-S4 for submit@debbugs.gnu.org; Sun, 08 Sep 2024 12:08:46 -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 1snKSw-000361-4j for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 12:08:42 -0400 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snKSu-0007U8-2c for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 12:08:41 -0400 Original-Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2f75a81b6d5so13316791fa.1 for ; Sun, 08 Sep 2024 09:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725811717; x=1726416517; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=53n38UCyrK2Ng0/uo93et2fx9YbKeqNFxgP3iPNeHZc=; b=NMqomuqbnQ1bfKnaWi5GJNzd+R6emKHKPeEfB02+EgJHK1mHjwhuk4kISEEzaUD0k8 h7xfaUadHDriPWFL8GLrJLBDv6/MwqpHV5rhlrA1DfLOEJH3E+H7cTzU11LAKLwNlyov LQsSiOZN4xrLRGZfOEUR1BhEbQtAF0yjuWzEP1vzs92/Rd7cBuI7Jm+3v+8fG+6fwB/S 9uSqaTgYdlR6NnhTTWprTVsIU5Hi0bFfLgouami2My3uTR1hlSHuydTGXpB5g3Lvj4SK AF5Cw4TXh9RkWTm8RayXRr0WU2BU+lk/bGA6MY6mZobwnll0YdwsRj2KZzeQtn39Qidp 51Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725811717; x=1726416517; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=53n38UCyrK2Ng0/uo93et2fx9YbKeqNFxgP3iPNeHZc=; b=eeufBgYS/tyu9BP8DWnSj+ahmulk9Dt7uAdZXnidbkCBuQjNdP/QMtQgiWn9PzRPHN xc9fg/xt4sSXtj6NQlZBo0dplYBph5gd4ST7vDGbhXsKzhdLoe+0226qXXYqC9fVw6q+ ZePljQ2WgYMV0PbG0p9V4o4/DXqfKR84E8g0Fwo1Tdtiz9WaJtnSIMVhR7XcyT4Fj+4O aVWiBYf/AUMfIttF5M1KiJZK/3YXWIGw/UCi5Zh+fCz3CC8YesxOBvI14i3li5ozUc7/ fYIjFgKbx4/4o/EvwNtGSo8kXpO51ERjqRxdwBraoKkGg8vB8AhSijZBOMtiAJaiiFYr AyZA== X-Gm-Message-State: AOJu0YyCD8/2Zp83FmweeDlVk8QUZRw8J1/qpgPNAbvPe1KYxON30/P6 vzz6NkjQme76iRsVQMjFq+GSk+5XidukeGMpoUxNWmqkd8H5hs3a37x4xe0qDUmMjFAqf1j1arA ZCqp63zQjwe3YBaBKKgBnGsX+w3TIn4WR X-Google-Smtp-Source: AGHT+IGaenDRzxlTy+57E5LKwNvWFJ8y/SI8F1j5PSKyF+0PjvvXC+cYyr5WJht8FJ5PKi4K0232oyPb8R4GpX1/Ke4= X-Received: by 2002:a2e:f12:0:b0:2f3:f358:8657 with SMTP id 38308e7fff4ca-2f751f8ff97mr51008091fa.44.1725811716382; Sun, 08 Sep 2024 09:08:36 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=swapneil.singh@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 09 Sep 2024 00:08:40 -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:291489 Archived-At: 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. In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.22631 System Description: Microsoft Windows 10 Home (v10.0.2009.22631.4037) Configured using: 'configure --with-modules --without-dbus --with-native-compilation --without-compress-install CFLAGS=-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils mule-util thread backtrace find-func novice comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 84196 8508) (symbols 48 8108 1) (strings 32 24204 4130) (string-bytes 1 796675) (vectors 16 17957) (vector-slots 8 324199 20918) (floats 8 36 215) (intervals 56 256 36) (buffers 992 15))