From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#64819: 30.0.50; condition-wait not interruptible Date: Mon, 24 Jul 2023 08:32:04 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36510"; mail-complaints-to="usenet@ciao.gmane.io" To: 64819@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 08:33:30 2023 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 1qNp8L-0001fy-MA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 08:33:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNp7w-0007hz-Hk; Mon, 24 Jul 2023 02:33:04 -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 1qNp7v-0007he-Dc for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 02:33:03 -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 1qNp7v-0004cH-6J for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 02:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNp7u-0005Ur-J5 for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 02:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jul 2023 06:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64819 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.169018034921089 (code B ref -1); Mon, 24 Jul 2023 06:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jul 2023 06:32:29 +0000 Original-Received: from localhost ([127.0.0.1]:41557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNp7M-0005U5-Rw for submit@debbugs.gnu.org; Mon, 24 Jul 2023 02:32:29 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:45878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNp7J-0005Tq-Em for submit@debbugs.gnu.org; Mon, 24 Jul 2023 02:32:28 -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 1qNp7C-0007dg-HQ for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 02:32:18 -0400 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNp7A-0004Xp-Sv for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 02:32:18 -0400 Original-Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fd2f298712so8081875e9.2 for ; Sun, 23 Jul 2023 23:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690180333; x=1690785133; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Zf2+Qj0l5qbD3/G9rxL4KQOQS2g+fI7v+ofsdgeTQVc=; b=N+j9S7uFgM/Gz1nfQxou13e9YD4G5ZKQF5BuHAzaGQAIt6USWHOxHWAXbpLrgU4mk+ en0szK4yFGYFakOrYTWZWHiucDksQQ/lU7l/EzkiQaZhts851XraOuU4dD0vx1tEewQg NDPHcv6u79k3zUbRPiIbqAbQaggXL7YfB1GKa64Uz3puFab++JRMZip4jjBi72J9ZTp/ 0mDXFCpbuZz/PEiBBLsFDyFjjOT9VQU/hadVxNvIspN1sBTrnLYczGRyZQFt2z4P2Zdl jmvOAppEGBjnNb1qaSXja7hHZMnxUcjDob/BRHSROVEFwl5ETmUGaTx3ZQu7VMX2mS82 7j4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690180333; x=1690785133; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Zf2+Qj0l5qbD3/G9rxL4KQOQS2g+fI7v+ofsdgeTQVc=; b=H/QPrNB/RE7kBRJ4a0uWbMdDBFH+RGoTU7OqEa1HtbELGk4d8GtdkES0qUsR8M9tgV DNEi9miEuVMPFHCbtuxBSWxiK+WStGlKCzg7wzt7W7+M8keTPTXY4CJj6fMb9s+vMIpo mRjkhzdyWbeZaV+nvik6kMgPbfy2GYTcPIwgxUrxXllT9zw9bG8W8qc0m6fQY73CarBz GLQ5Y1vbtbdVRsuS93vGe4L5l9ot17/hoZWwz3TgPW02brc/KfCT6AE5ErS7utcXc9/V tqQS140L9TXRll9Pk5H2hS9lpvduBRcSSh0tAqtXKaxDNSuuzZBYOunaIicDLsUeTg7U h44g== X-Gm-Message-State: ABy/qLYKyo8st7q5R0pDhTWm8sKVknnmWT1+E6P9Us84LQlSxDMRnQSw I301TEkoys78VAYNtJYaDtcOSVK9AxE= X-Google-Smtp-Source: APBJJlGhXpsRQadhu1TCuZxgq0Y+zKlvnj47t7RbEh9kGx0tDHycfGVlcN+hU9a+dLcHKkSPofMqYA== X-Received: by 2002:adf:e7ca:0:b0:314:1494:fe28 with SMTP id e10-20020adfe7ca000000b003141494fe28mr5066838wrn.53.1690180333328; Sun, 23 Jul 2023 23:32:13 -0700 (PDT) Original-Received: from caladan ([212.46.176.29]) by smtp.gmail.com with ESMTPSA id a23-20020a5d4577000000b00314315071bbsm11737103wrc.38.2023.07.23.23.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 23:32:12 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=eller.helmut@gmail.com; helo=mail-wm1-x336.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:266051 --=-=-= Content-Type: text/plain When Emacs is blocked in condition-wait, then C-g doesn't seem to work. E.g. Emacs hangs and pressing C-g has no apparent effect when executing the attached file with: emacs -Q -l deadlock.el -f deadlock Mabye sys_cond_wait could call pthread_cond_timedwait with a fairly long timeout, say one second, and repeatedly check if C-g was pressed. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=deadlock.el Content-Transfer-Encoding: quoted-printable (defun deadlock () (interactive) (let* ((mutex (make-mutex)) (cvar (make-condition-variable mutex))) (with-mutex mutex (condition-wait cvar)))) --=-=-= Content-Type: text/plain Configured using: 'configure --with-xpm=ifavailable --with-jpeg=ifavailable --with-gif=ifavailable --with-tiff=ifavailable' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 locale-coding-system: utf-8-unix --=-=-=--