GNU bug report logs - #39944
27.0.90; JIT Stealth timer errors

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Eli Zaretskii <eliz@HIDDEN>; dated Fri, 6 Mar 2020 10:02:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 39944 <at> debbugs.gnu.org:


Received: (at 39944) by debbugs.gnu.org; 7 Mar 2020 18:29:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 07 13:29:56 2020
Received: from localhost ([127.0.0.1]:47540 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jAeCy-0003eJ-Ir
	for submit <at> debbugs.gnu.org; Sat, 07 Mar 2020 13:29:56 -0500
Received: from eggs.gnu.org ([209.51.188.92]:46103)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jAeCw-0003e6-RB
 for 39944 <at> debbugs.gnu.org; Sat, 07 Mar 2020 13:29:55 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42135)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jAeCr-0006WA-6D; Sat, 07 Mar 2020 13:29:49 -0500
Received: from [176.228.60.248] (port=4131 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1jAeCp-00070g-KJ; Sat, 07 Mar 2020 13:29:48 -0500
Date: Sat, 07 Mar 2020 20:29:47 +0200
Message-Id: <831rq49fxg.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <bcd022c6-90f8-9c10-1188-40f9089013d2@HIDDEN> (message from
 Paul Eggert on Sat, 7 Mar 2020 10:02:28 -0800)
Subject: Re: bug#39944: 27.0.90; JIT Stealth timer errors
References: <83a74tiyyd.fsf@HIDDEN> <837dzxiyr8.fsf@HIDDEN>
 <835zfhiyag.fsf@HIDDEN> <83h7z1bh0d.fsf@HIDDEN>
 <bcd022c6-90f8-9c10-1188-40f9089013d2@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39944
Cc: 39944 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Cc: 39944 <at> debbugs.gnu.org
> From: Paul Eggert <eggert@HIDDEN>
> Date: Sat, 7 Mar 2020 10:02:28 -0800
> 
> > (the comments in that part of the code can really use some
> > enhancement; they currently seem to target only experts in both time
> > handling and GMP: many macros whose names don't explain what they do,
> > and plethora of calls to libgmp functions that have no comments
> > whatsoever).
> 
> Although comments in that area no doubt could use improvement, I'd rather not 
> see comments like this:
> 
>        /* Add TM_YEAR_BASE to mpz[0].  */
>        mpz_add_ui (mpz[0], mpz[0], TM_YEAR_BASE);

There are quite a few of similar comments there, and they actually
help, because they save us from consulting the GMP manual on every
step.

But I really meant that stuff like this lacks a comment:

      hz = make_integer_mpz ();
      mpz_swap (mpz[0], *iticks);
      ticks = make_integer_mpz ();

And also functions like timespec_ticks, lisp_time_hz_ticks, and
lisp_time_seconds, which don't have a single comment describing how
they do their thing.  Following that code with the purpose of tracking
some specific result is not for the faint at heart.  I think adding a
comment here and there might make that easier.

> > +  (when (numberp time)
> > +    (setq time (timer-relative-time nil time))
> > +    (or (consp time)
> > +        (setq time (time-convert time 'list))))
> 
> This would catch some problems but not all, as the real bug here is in the code 
> (or (consp time) (error "Invalid time format")) which occurs a few lines later. 
> As near as I can tell this later code is both wrong and unnecessary. It's wrong 
> because it's no longer true that only conses are time values. It's unnecessary 
> because the immediately following (timer-set-function timer function args) call 
> checks the validity of TIME. On the off chance that a validity check is still 
> helpful (because we don't want to create garbage?) I installed the attached 
> patch.

Thanks.

> But it might be better in master to remove the "Invalid time format"
> check entirely.

I'm fine with removing that test, if we are sure that invoking
run-at-time with something utterly un-timely, like a symbol or a a
string that cannot be a valid time description, will trigger an error
(presumably from timer-set-time).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39944; Package emacs. Full text available.

Message received at 39944 <at> debbugs.gnu.org:


Received: (at 39944) by debbugs.gnu.org; 7 Mar 2020 18:02:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 07 13:02:37 2020
Received: from localhost ([127.0.0.1]:47510 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jAdmW-00031c-W5
	for submit <at> debbugs.gnu.org; Sat, 07 Mar 2020 13:02:37 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45296)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1jAdmV-00031P-B9
 for 39944 <at> debbugs.gnu.org; Sat, 07 Mar 2020 13:02:36 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id B92FE1600C3;
 Sat,  7 Mar 2020 10:02:29 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id lfAfZGIs46cE; Sat,  7 Mar 2020 10:02:28 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id D6D231600C5;
 Sat,  7 Mar 2020 10:02:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id C3wxxXcemeBs; Sat,  7 Mar 2020 10:02:28 -0800 (PST)
Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com
 [23.242.74.103])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 934131600C3;
 Sat,  7 Mar 2020 10:02:28 -0800 (PST)
Subject: Re: bug#39944: 27.0.90; JIT Stealth timer errors
To: Eli Zaretskii <eliz@HIDDEN>
References: <83a74tiyyd.fsf@HIDDEN> <837dzxiyr8.fsf@HIDDEN>
 <835zfhiyag.fsf@HIDDEN> <83h7z1bh0d.fsf@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <bcd022c6-90f8-9c10-1188-40f9089013d2@HIDDEN>
Date: Sat, 7 Mar 2020 10:02:28 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.4.1
MIME-Version: 1.0
In-Reply-To: <83h7z1bh0d.fsf@HIDDEN>
Content-Type: multipart/mixed; boundary="------------64FEC9E8C0543FA65826C051"
Content-Language: en-US
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 39944
Cc: 39944 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------64FEC9E8C0543FA65826C051
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 3/6/20 8:11 AM, Eli Zaretskii wrote:

> (the comments in that part of the code can really use some
> enhancement; they currently seem to target only experts in both time
> handling and GMP: many macros whose names don't explain what they do,
> and plethora of calls to libgmp functions that have no comments
> whatsoever).

Although comments in that area no doubt could use improvement, I'd rather not 
see comments like this:

       /* Add TM_YEAR_BASE to mpz[0].  */
       mpz_add_ui (mpz[0], mpz[0], TM_YEAR_BASE);

as they would be the rough equivalent of:

       /* Add 1 to I.  */
       i++;

> +  (when (numberp time)
> +    (setq time (timer-relative-time nil time))
> +    (or (consp time)
> +        (setq time (time-convert time 'list))))

This would catch some problems but not all, as the real bug here is in the code 
(or (consp time) (error "Invalid time format")) which occurs a few lines later. 
As near as I can tell this later code is both wrong and unnecessary. It's wrong 
because it's no longer true that only conses are time values. It's unnecessary 
because the immediately following (timer-set-function timer function args) call 
checks the validity of TIME. On the off chance that a validity check is still 
helpful (because we don't want to create garbage?) I installed the attached 
patch. But it might be better in master to remove the "Invalid time format" 
check entirely.

--------------64FEC9E8C0543FA65826C051
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-Fix-bug-with-JIT-stealth-timers.patch"
Content-Disposition: attachment;
 filename="0001-Fix-bug-with-JIT-stealth-timers.patch"
Content-Transfer-Encoding: quoted-printable

From 363d927086dbdc4e5073393889b76eb0470785f4 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Sat, 7 Mar 2020 09:47:03 -0800
Subject: [PATCH] Fix bug with JIT stealth timers
MIME-Version: 1.0
Content-Type: text/plain; charset=3DUTF-8
Content-Transfer-Encoding: 8bit

* lisp/emacs-lisp/timer.el (run-at-time): Don=E2=80=99t assume that Lisp
time values must be conses (Bug#39944).
---
 lisp/emacs-lisp/timer.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el
index 74a94957e7..9eb8feed0f 100644
--- a/lisp/emacs-lisp/timer.el
+++ b/lisp/emacs-lisp/timer.el
@@ -378,7 +378,7 @@ This function returns a timer object which you can us=
e in
                                  (decoded-time-year now)
                                  (decoded-time-zone now)))))))
=20
-  (or (consp time)
+  (or (time-equal-p time time)
       (error "Invalid time format"))
=20
   (let ((timer (timer-create)))
--=20
2.17.1


--------------64FEC9E8C0543FA65826C051--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39944; Package emacs. Full text available.

Message received at 39944 <at> debbugs.gnu.org:


Received: (at 39944) by debbugs.gnu.org; 6 Mar 2020 16:11:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 11:11:28 2020
Received: from localhost ([127.0.0.1]:45789 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jAFZQ-0000Rz-8B
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 11:11:28 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56312)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jAFZP-0000Rm-0X
 for 39944 <at> debbugs.gnu.org; Fri, 06 Mar 2020 11:11:27 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50709)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jAFZJ-0001Kh-LH; Fri, 06 Mar 2020 11:11:21 -0500
Received: from [176.228.60.248] (port=1466 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1jAFZJ-0000pd-1G; Fri, 06 Mar 2020 11:11:21 -0500
Date: Fri, 06 Mar 2020 18:11:14 +0200
Message-Id: <83h7z1bh0d.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
In-Reply-To: <835zfhiyag.fsf@HIDDEN> (message from Eli Zaretskii on Fri, 06
 Mar 2020 12:16:07 +0200)
Subject: Re: bug#39944: 27.0.90; JIT Stealth timer errors
References: <83a74tiyyd.fsf@HIDDEN> <837dzxiyr8.fsf@HIDDEN>
 <835zfhiyag.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39944
Cc: 39944 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Date: Fri, 06 Mar 2020 12:16:07 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > Additional information which is probably related: the *Message* buffer
> > shows this from time to time:
> > 
> >   run-at-time: Invalid time format
> >   ([nil 24162 5043 0 5 display-time-event-handler nil nil 0] [nil 24162 5046 46875 nil undo-auto--boundary-timer nil nil 0] [nil 24162 5098 187500 60 battery-update-handler nil nil 0] [nil 24162 54768 140625 86400 run-hooks (midnight-hook) nil 0])
> 
> This message comes from this fragment of run-at-time:
> 
>   (or (consp time)
>       (error "Invalid time format"))
> 
> I guess this means the problem is general with timers, not specific to
> JIT Stealth.

The problem is in run-at-time, here:

  ;; Handle numbers as relative times in seconds.
  (if (numberp time)
      (setq time (timer-relative-time nil time)))

This is assumed to always produce time in list format, but at least on
my system (32-bit build --with-wide-int) it sometimes produces an
integer.  I instrumented run-at-time and got a backtrace that clearly
shows that run-at-time was called with the first arg zero, and the
value returned from time-relative-time was a (large) integer.  Looking
at time_arith, I see that this could happen when HZ is computed to be
the number 1.  I tried to figure out why this happens, but quickly got
lost (the comments in that part of the code can really use some
enhancement; they currently seem to target only experts in both time
handling and GMP: many macros whose names don't explain what they do,
and plethora of calls to libgmp functions that have no comments
whatsoever).

Assuming that an integer value is legitimate in that place, here's the
change I propose; since making that change locally, I didn't have even
a single error of this kind:

diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el
index 74a9495..e61c1a6 100644
--- a/lisp/emacs-lisp/timer.el
+++ b/lisp/emacs-lisp/timer.el
@@ -353,8 +353,10 @@ run-at-time
       (setq time (timer-next-integral-multiple-of-time (current-time) repeat)))
 
   ;; Handle numbers as relative times in seconds.
-  (if (numberp time)
-      (setq time (timer-relative-time nil time)))
+  (when (numberp time)
+    (setq time (timer-relative-time nil time))
+    (or (consp time)
+        (setq time (time-convert time 'list))))
 
   ;; Handle relative times like "2 hours 35 minutes"
   (if (stringp time)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39944; Package emacs. Full text available.

Message received at 39944 <at> debbugs.gnu.org:


Received: (at 39944) by debbugs.gnu.org; 6 Mar 2020 10:16:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 05:16:20 2020
Received: from localhost ([127.0.0.1]:44122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jAA1k-0006rM-Fk
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:16:20 -0500
Received: from eggs.gnu.org ([209.51.188.92]:37936)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jAA1i-0006r5-Re
 for 39944 <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:16:19 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35290)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jAA1d-0003ON-Ok
 for 39944 <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:16:13 -0500
Received: from [176.228.60.248] (port=3846 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1jAA1c-0004Mm-5e
 for 39944 <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:16:12 -0500
Date: Fri, 06 Mar 2020 12:16:07 +0200
Message-Id: <835zfhiyag.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: 39944 <at> debbugs.gnu.org
In-Reply-To: <837dzxiyr8.fsf@HIDDEN> (message from Eli Zaretskii on Fri, 06
 Mar 2020 12:06:03 +0200)
Subject: Re: bug#39944: 27.0.90; JIT Stealth timer errors
References: <83a74tiyyd.fsf@HIDDEN> <837dzxiyr8.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39944
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Date: Fri, 06 Mar 2020 12:06:03 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > Date: Fri, 06 Mar 2020 12:01:46 +0200
> > From: Eli Zaretskii <eliz@HIDDEN>
> > 
> > 
> > I see these errors in the 27.0.90 pretest from time to time:
> > 
> >   Error running timer ‘jit-lock-stealth-fontify’: (error "Invalid time format")
> 
> Additional information which is probably related: the *Message* buffer
> shows this from time to time:
> 
>   run-at-time: Invalid time format
>   ([nil 24162 5043 0 5 display-time-event-handler nil nil 0] [nil 24162 5046 46875 nil undo-auto--boundary-timer nil nil 0] [nil 24162 5098 187500 60 battery-update-handler nil nil 0] [nil 24162 54768 140625 86400 run-hooks (midnight-hook) nil 0])

This message comes from this fragment of run-at-time:

  (or (consp time)
      (error "Invalid time format"))

I guess this means the problem is general with timers, not specific to
JIT Stealth.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39944; Package emacs. Full text available.

Message received at 39944 <at> debbugs.gnu.org:


Received: (at 39944) by debbugs.gnu.org; 6 Mar 2020 10:06:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 05:06:26 2020
Received: from localhost ([127.0.0.1]:44114 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jA9sA-0006cT-F1
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:06:26 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50471)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jA9s8-0006cH-Qn
 for 39944 <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:06:25 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34507)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jA9s3-0007rK-Ow
 for 39944 <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:06:19 -0500
Received: from [176.228.60.248] (port=3235 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1jA9rq-000361-RE
 for 39944 <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:06:08 -0500
Date: Fri, 06 Mar 2020 12:06:03 +0200
Message-Id: <837dzxiyr8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: 39944 <at> debbugs.gnu.org
In-Reply-To: <83a74tiyyd.fsf@HIDDEN> (message from Eli Zaretskii on Fri, 06
 Mar 2020 12:01:46 +0200)
Subject: Re: bug#39944: 27.0.90; JIT Stealth timer errors
References: <83a74tiyyd.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 39944
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Date: Fri, 06 Mar 2020 12:01:46 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> 
> I see these errors in the 27.0.90 pretest from time to time:
> 
>   Error running timer ‘jit-lock-stealth-fontify’: (error "Invalid time format")

Additional information which is probably related: the *Message* buffer
shows this from time to time:

  run-at-time: Invalid time format
  ([nil 24162 5043 0 5 display-time-event-handler nil nil 0] [nil 24162 5046 46875 nil undo-auto--boundary-timer nil nil 0] [nil 24162 5098 187500 60 battery-update-handler nil nil 0] [nil 24162 54768 140625 86400 run-hooks (midnight-hook) nil 0])




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39944; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Mar 2020 10:01:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 06 05:01:55 2020
Received: from localhost ([127.0.0.1]:44106 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jA9nn-0006Vc-FV
	for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:01:55 -0500
Received: from lists.gnu.org ([209.51.188.17]:54042)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jA9nl-0006VU-Br
 for submit <at> debbugs.gnu.org; Fri, 06 Mar 2020 05:01:53 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:57958)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>) id 1jA9nj-0001at-Oj
 for bug-gnu-emacs@HIDDEN; Fri, 06 Mar 2020 05:01:53 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_50
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34200)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jA9ni-0005Sz-I0
 for bug-gnu-emacs@HIDDEN; Fri, 06 Mar 2020 05:01:50 -0500
Received: from [176.228.60.248] (port=2976 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>) id 1jA9nh-000588-Rj
 for bug-gnu-emacs@HIDDEN; Fri, 06 Mar 2020 05:01:50 -0500
Date: Fri, 06 Mar 2020 12:01:46 +0200
Message-Id: <83a74tiyyd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.90; JIT Stealth timer errors
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


I see these errors in the 27.0.90 pretest from time to time:

  Error running timer ‘jit-lock-stealth-fontify’: (error "Invalid time format")

This didn't happen in previous versions of Emacs, so I think this is
some regression, most probably due to changes in timer.el or related
time functions.

Does anyone else see this?  (You have to enable jit-lock-stealth to
see this.)


In GNU Emacs 27.0.90 (build 1, i686-pc-mingw32)
 of 2020-03-01 built on HOME-C4E4A596F7
Windowing system distributor 'Microsoft Corp.', version 5.1.2600
System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600)

Recent messages:
Getting mail from d:/usr/eli/data/mail.new...
Counting new messages...done (1)
Saving file d:/usr/eli/rmail/INBOX...
Wrote d:/usr/eli/rmail/INBOX
Computing summary lines...done
1 new message read
No following nondeleted message
Saving file d:/usr/eli/rmail/INBOX...
Wrote d:/usr/eli/rmail/INBOX
Error running timer ‘jit-lock-stealth-fontify’: (error "Invalid time format") [2 times]

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int --with-modules
 'CFLAGS=-Og -gdwarf-4 -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2
GMP

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1255

Major mode: RMAIL

Minor modes in effect:
  shell-dirtrack-mode: t
  desktop-save-mode: t
  save-place-mode: t
  show-paren-mode: t
  display-battery-mode: t
  display-time-mode: t
  tooltip-mode: t
  global-eldoc-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
  temp-buffer-resize-mode: t
  buffer-read-only: t
  line-number-mode: t

Load-path shadows:
d:/usr/share/emacs/site-lisp/soap-inspect hides d:/usr/share/emacs/27.0.90/lisp/net/soap-inspect
d:/usr/share/emacs/site-lisp/soap-client hides d:/usr/share/emacs/27.0.90/lisp/net/soap-client

Features:
(shadow emacsbug pcase shell pcomplete comint ansi-color rfc2104
gnutls network-stream nsm mail-extr smtpmail mailalias sendmail
eieio-opt speedbar sb-image ezimage dframe find-func mule-diag
help-fns radix-tree misearch multi-isearch time-stamp shr-color color
shr url-cookie url-domsuf url-util url-parse auth-source json map
url-vars svg xml dom browse-url cl-extra help-mode make-mode conf-mode
bat-mode noutline outline cc-awk jka-compr vc-cvs vc-dispatcher vc-bzr
texinfo mule-util info view enriched flyspell add-log vc-git diff-mode
easy-mmode bug-reference rmailsum qp rmailmm message rmc puny
format-spec rfc822 mml mml-sec password-cache epa epg epg-config
gnus-util text-property-search time-date subr-x seq mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231
rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils desktop frameset server find-lisp dired dired-loaddefs
filecache mairix cus-edit cus-start cus-load wid-edit saveplace
midnight ispell derived generic-x cc-mode cc-fonts easymenu cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs paren
xref cl-seq project ring eieio byte-opt bytecomp byte-compile cconv
eieio-core cl-macs gv eieio-loaddefs cl-loaddefs cl-lib battery time
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
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 elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu 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 charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
loaddefs button faces cus-face macroexp files 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 emacs)

Memory information:
((conses 16 526189 45228)
 (symbols 48 20376 1)
 (strings 16 118191 2769)
 (string-bytes 1 3365518)
 (vectors 16 32257)
 (vector-slots 8 464721 70974)
 (floats 8 282 384)
 (intervals 40 56525 1222)
 (buffers 888 238))




Acknowledgement sent to Eli Zaretskii <eliz@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#39944; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 7 Mar 2020 18:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.