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 20:11:16 +0300 Message-ID: <83sfoxpmff.fsf@gnu.org> References: <87sfoxdcso.fsf@gnus.org> <015331C8-C4AF-49DB-A859-BE01012B77BF@acm.org> <87D17F2F-BA51-45E3-BD81-A8CF9044C3BE@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="28396"; 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 19:12:25 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 1ntuYb-0007Fq-2W for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 19:12:25 +0200 Original-Received: from localhost ([::1]:45880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntuYZ-0004zt-Ie for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 13:12:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntuYF-0004y4-8i for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 13:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34226) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntuYD-0007VM-Vr for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 13:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntuYD-0005Mr-RX for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 13:12:01 -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 17:12:01 +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.165349869820586 (code B ref 55628); Wed, 25 May 2022 17:12:01 +0000 Original-Received: (at 55628) by debbugs.gnu.org; 25 May 2022 17:11:38 +0000 Original-Received: from localhost ([127.0.0.1]:56353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntuXm-0005Lu-RW for submit@debbugs.gnu.org; Wed, 25 May 2022 13:11:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntuXj-0005Lc-2U for 55628@debbugs.gnu.org; Wed, 25 May 2022 13:11:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntuXd-0007Rl-He; Wed, 25 May 2022 13:11:25 -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=aPDpfrhjr+x5mDxRUrOBl3o+Kq3DK4lkd1S8b6XWGUk=; b=Vy3p6pjSttzwDUyMOzxk OKDlC6PmhUJJX9zw9jtn0Cok2ZVgs8L9xKGDNpckZfCiQHdXmo2YpjLs0nU/0lvLonxmyrEysDNG4 0T244X5byTUoHjk+eebO57A+Duwny7E/+e6G11yLikt/8nZMx/8VzCW03EbA4a7Yea2uFnWcIMYAO 8JQytJg2juJYN6QBXphcGp7k6OS2Sl5hQKpcfCpas6kU2zTi+jjETTc9pViSgyklM93N2/jxpom2Y QhfOmqJO+j1wdqlfhOux54MXMMD1QpJ4N8l4itkMK+mVlAbdwKKF9POcXtOLXeW/XuA7T0ums2e3P 7UVIOmwKnNE1Ig==; Original-Received: from [87.69.77.57] (port=3142 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 1ntuXd-0002dt-0w; Wed, 25 May 2022 13:11:25 -0400 In-Reply-To: <87D17F2F-BA51-45E3-BD81-A8CF9044C3BE@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Wed, 25 May 2022 17:34:57 +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:233071 Archived-At: > Resent-From: Mattias Engdegård > Original-Sender: "Debbugs-submit" > Resent-CC: bug-gnu-emacs@gnu.org > Resent-Sender: help-debbugs@gnu.org > Cc: 55628@debbugs.gnu.org > From: Mattias Engdegård > Date: Wed, 25 May 2022 17:34:57 +0200 > > 25 maj 2022 kl. 15.05 skrev Mattias Engdegård : > > > 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. > > In fact it was even worse than that: because of a second bug, the timer was then immediately reset to at least 1 s in the future. The proposed patch fixes both flaws. Btw, this test will never work on a platform that only has setitimer, because only one ITIMER_REAL timer is guaranteed to exist, and the function attempts to arm 10 timers at the same time. > Good to have a test for it -- maybe it should always be enabled, not just with enable-checking? People don't always reconfigure, rebuild and re-run the tests with enable-checking, nor do any of the build bots. We don't usually have testing code in a production build, so why make an exception here? Especially since atimers are an obscure feature used internally by Emacs.