From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55628: debug-timer-check fails on macOS 11.6.6 Date: Wed, 25 May 2022 17:02:03 +0300 Message-ID: <83h75d4so4.fsf@gnu.org> References: <87sfoxdcso.fsf@gnus.org> <015331C8-C4AF-49DB-A859-BE01012B77BF@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19708"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55628@debbugs.gnu.org, larsi@gnus.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 25 16:11:35 2022 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 1ntrjb-00050j-BR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 16:11:35 +0200 Original-Received: from localhost ([::1]:60962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntrja-0004qw-6n for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 10:11:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntrbK-0002Dz-MC for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 10:03:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntrbK-0006rT-CP for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 10:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntrbK-0008I8-7F for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 10:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 May 2022 14:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55628 X-GNU-PR-Package: emacs Original-Received: via spool by 55628-submit@debbugs.gnu.org id=B55628.165348734531816 (code B ref 55628); Wed, 25 May 2022 14:03:02 +0000 Original-Received: (at 55628) by debbugs.gnu.org; 25 May 2022 14:02:25 +0000 Original-Received: from localhost ([127.0.0.1]:56130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntrai-0008H6-NS for submit@debbugs.gnu.org; Wed, 25 May 2022 10:02:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntrae-0008Gk-6l for 55628@debbugs.gnu.org; Wed, 25 May 2022 10:02:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntraY-0006mZ-Nr; Wed, 25 May 2022 10:02:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=i5DCOke52je4nb2WtfC7Lm0fKdSF8dFP92r7eWoXG1E=; b=KBFOtSHuX1eHlYp4ZleY H/I5x/tx7xXzZ2KLGzuKC92ktOdKeQ5hfn3Ry59EG158d1FqiSBe0KYkugkuEXBFikQVGvdNsc3If t8vUZMVPWCWDqnFw1Uuh1oLcePa7oF13Ibf8t+6pqmO28oenzjPMIy97VrJankOBy7GQVu4+deB3B jxR3mcHfEVnouuI5IRqsbSAcMpjSGkAMD1Z8ij+PEC6IaTT89uMK7exR1slJZYtVIaZtA5tWJJUM4 R+iUIVal4j1kufTn4pRKVrQj/b4LKV5Q1/h+Mkb11c3jOjVePfoUKSn4CCOCpWDCpqlSTUaCXRZpb QpM5PXv9y1IB8A==; Original-Received: from [87.69.77.57] (port=3994 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntraW-0000cd-Ao; Wed, 25 May 2022 10:02:14 -0400 In-Reply-To: <015331C8-C4AF-49DB-A859-BE01012B77BF@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Wed, 25 May 2022 15:05:32 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:233062 Archived-At: > Cc: 55628@debbugs.gnu.org > From: Mattias EngdegÄrd > Date: Wed, 25 May 2022 15:05:32 +0200 > > Thanks for checking. Apparently pending_signals is never set; handle_alarm_signal is never called. > More digging shows that set_alarm always sets the interval timer to at least 1 ms in the future even if the timer has expired. > > The attached patch makes set_alarm signal SIGALRM immediately if the timer is due. We could call the signal handler directly but this way it should work correctly if the signal is masked at the moment. What do you think? I'd prefer not to change the logic of set_alarm just to have a debugging aid working. Can we come up with a more compatible change, which doesn't affect calls to set_alarm except during this test? Thanks.