From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#55628: debug-timer-check fails on macOS 11.6.6 Date: Thu, 26 May 2022 11:57:58 +0200 Message-ID: References: <87sfoxdcso.fsf@gnus.org> <015331C8-C4AF-49DB-A859-BE01012B77BF@acm.org> <87D17F2F-BA51-45E3-BD81-A8CF9044C3BE@acm.org> <83sfoxpmff.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21718"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55628@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 26 11:59:40 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 1nuAHL-0005Sx-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 11:59:39 +0200 Original-Received: from localhost ([::1]:37228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuAHK-0004U3-8A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 05:59:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuAGk-0004Tu-Q5 for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 05:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuAGk-0008BM-HU for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 05:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuAGk-0006qb-BO for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 05:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 May 2022 09:59: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.165355908726252 (code B ref 55628); Thu, 26 May 2022 09:59:02 +0000 Original-Received: (at 55628) by debbugs.gnu.org; 26 May 2022 09:58:07 +0000 Original-Received: from localhost ([127.0.0.1]:57094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuAFq-0006pL-Ln for submit@debbugs.gnu.org; Thu, 26 May 2022 05:58:06 -0400 Original-Received: from mail211c50.megamailservers.eu ([91.136.10.221]:51820 helo=mail194c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuAFn-0006ow-LS for 55628@debbugs.gnu.org; Thu, 26 May 2022 05:58:05 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1653559081; bh=NIOZUm0peryCf7gDyM3qBe6uPumK2VOnlmnK3ygT5L8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=H3ROulOIk8XhvmVuAWyIzNkd2efjSP6tV6vSxRUPZZ4tkv+f0qI+Dv7BXob8Mu410 w11ZXjhitDdMzjuhpQ6XGvc7U7G2b66ZhxSqVQnvgHnGMVw93S+dE4XuO/cbwZVy1i TNZZvsDVp/M/gXvAF0pw+bJpDmbw4ivEtP9BcEhs= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c188-150-171-71.bredband.tele2.se [188.150.171.71]) (authenticated bits=0) by mail194c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 24Q9vxQ8002102; Thu, 26 May 2022 09:58:00 +0000 In-Reply-To: <83sfoxpmff.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-CTCH-RefID: str=0001.0A742F29.628F4F29.002D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-Origin-Country: SE 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:233095 Archived-At: 25 maj 2022 kl. 19.11 skrev Eli Zaretskii : > 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. That's not how the code works. `setitimer` will only be called for the = first timer to expire. (The test works correctly on this computer, that only has setitimer, = after applying the patch.) Another demonstration of this bug: (funcall-with-delayed-message 0.1 "haha" (lambda () (sit-for 3))) will, on this machine, display "haha" after 1 s if unpatched, but after = 0.1 s if patched. (This is with -nw because the NS backend seems to be slow handling async = events on its own, but that's a different bug.) > 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. There's nothing bad or even unusual about including interfaces for = internal testing in production builds, as long as it doesn't unduly = reduce performance or cause significant bloat. It's always a trade-off, = of course.