From unknown Sat Aug 16 13:42:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19799 <19799@debbugs.gnu.org> To: bug#19799 <19799@debbugs.gnu.org> Subject: Status: Tangentally related to eww-mode Invalid Date bug just filed Reply-To: bug#19799 <19799@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:42:01 +0000 retitle 19799 Tangentally related to eww-mode Invalid Date bug just filed reassign 19799 emacs submitter 19799 Matthew Carter severity 19799 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 07 03:30:36 2015 Received: (at submit) by debbugs.gnu.org; 7 Feb 2015 08:30:36 +0000 Received: from localhost ([127.0.0.1]:36072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YK0mg-0001dx-Sy for submit@debbugs.gnu.org; Sat, 07 Feb 2015 03:30:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35762) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJxkg-0005MN-4W for submit@debbugs.gnu.org; Sat, 07 Feb 2015 00:16:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJxkX-0008QI-Pl for submit@debbugs.gnu.org; Sat, 07 Feb 2015 00:16:12 -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.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJxkX-0008QE-Nx for submit@debbugs.gnu.org; Sat, 07 Feb 2015 00:16:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJxkR-0000w6-KI for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 00:16:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJxkL-0008Mw-Fp for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 00:16:03 -0500 Received: from li130-200.members.linode.com ([69.164.215.200]:46315 helo=mail.ahungry.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJxkL-0008Mn-Da for bug-gnu-emacs@gnu.org; Sat, 07 Feb 2015 00:15:57 -0500 Received: from Prometheus (99-40-9-245.lightspeed.livnmi.sbcglobal.net [99.40.9.245]) by mail.ahungry.com (Postfix) with ESMTPSA id 8844C481C for ; Sat, 7 Feb 2015 00:15:56 -0500 (EST) From: Matthew Carter To: bug-gnu-emacs@gnu.org Subject: Tangentally related to eww-mode Invalid Date bug just filed Organization: Ahungry (http://ahungry.com) Date: Sat, 07 Feb 2015 00:15:55 -0500 Message-ID: <871tm2cnec.fsf@ahungry.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 07 Feb 2015 03:30:31 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Excuse the new thread (just signed up to bug-gnu-emacs list, whereas I filed the original bug via the report function). I've pinpointed the eww-mode bug to an issue with #'date-to-time in time-date.el. It appears to be a manifestation of the Year 2038 problem and caused by the fact that the cookie being sent has an expiration date beyond year 2038. As it turns out, I am unable to reproduce the issue on a 64-bit machine (it only happens on my 32-bit ones). Would it be better to rework #'date-to-time to handle future dates in a more graceful manner on 32-bit machines, or to have eww-mode ignore triggers that cause it to parse dates it cannot handle? -- Matthew Carter (m@ahungry.com) http://ahungry.com From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 08 14:29:02 2015 Received: (at 19799) by debbugs.gnu.org; 8 Feb 2015 19:29:02 +0000 Received: from localhost ([127.0.0.1]:37595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKXXR-000830-OY for submit@debbugs.gnu.org; Sun, 08 Feb 2015 14:29:02 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:39853) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKXXO-00082i-O0 for 19799@debbugs.gnu.org; Sun, 08 Feb 2015 14:28:59 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id A1DD939E8020; Sun, 8 Feb 2015 11:28:52 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y3NIAbiLJ+ov; Sun, 8 Feb 2015 11:28:52 -0800 (PST) Received: from [192.168.1.9] (pool-173-55-11-52.lsanca.fios.verizon.net [173.55.11.52]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 5842639E801E; Sun, 8 Feb 2015 11:28:52 -0800 (PST) Message-ID: <54D7B8F4.6090505@cs.ucla.edu> Date: Sun, 08 Feb 2015 11:28:52 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Matthew Carter Subject: Re: Tangentally related to eww-mode Invalid Date bug just filed Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19799 Cc: 19799@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > Would it be better to rework #'date-to-time to handle future dates in a > more graceful manner on 32-bit machines, or to have eww-mode ignore > triggers that cause it to parse dates it cannot handle? There is a variant of date-to-time that refuses to throw an error on out-of-range dates, namely safe-date-to-time. But I'm still puzzled as to why you're getting this error. date-to-time is supposed to throw a "Specified time is not representable" for out-of-range dates, but for you it's throwing some other error. Can you debug why that is happening? What happens when you run the following in your *scratch* buffer? (date-to-time "Mon, 06 Mar 2130 20:55:03 GMT") On my platform (Fedora 21 x86) if I type C-j after that, the debugger is entered with this backtrace: Debugger entered--Lisp error: (error . "Specified time is not representable") signal(error "Specified time is not representable") apply(signal (error "Specified time is not representable")) (if (equal err overflow-error) (apply (quote signal) err) (condition-case err$ (let ((overflow-error (quote (error "Specified time is not representable"))))$ (condition-case err (apply (quote encode-time) (parse-time-string date)) (err$ date-to-time("Mon, 06 Mar 2130 20:55:03 GMT") ... What happens on your platform? Also, what is your platform? What does (emacs-version) return, for starters? From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 08 15:25:40 2015 Received: (at 19799) by debbugs.gnu.org; 8 Feb 2015 20:25:40 +0000 Received: from localhost ([127.0.0.1]:37630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKYQE-0000xs-LS for submit@debbugs.gnu.org; Sun, 08 Feb 2015 15:25:39 -0500 Received: from li130-200.members.linode.com ([69.164.215.200]:43272 helo=mail.ahungry.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKYQB-0000xb-Jk for 19799@debbugs.gnu.org; Sun, 08 Feb 2015 15:25:36 -0500 Received: from Prometheus (99-40-9-245.lightspeed.livnmi.sbcglobal.net [99.40.9.245]) by mail.ahungry.com (Postfix) with ESMTPSA id B571E407D; Sun, 8 Feb 2015 15:25:29 -0500 (EST) From: Matthew Carter To: Paul Eggert Subject: Re: Tangentally related to eww-mode Invalid Date bug just filed Organization: Ahungry (http://ahungry.com) References: <54D7B8F4.6090505@cs.ucla.edu> Date: Sun, 08 Feb 2015 15:25:23 -0500 In-Reply-To: <54D7B8F4.6090505@cs.ucla.edu> (Paul Eggert's message of "Sun, 08 Feb 2015 11:28:52 -0800") Message-ID: <87lhk8b170.fsf@ahungry.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19799 Cc: 19799@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Paul Eggert writes: >> Would it be better to rework #'date-to-time to handle future dates in a >> more graceful manner on 32-bit machines, or to have eww-mode ignore >> triggers that cause it to parse dates it cannot handle? > > There is a variant of date-to-time that refuses to throw an error on > out-of-range dates, namely safe-date-to-time. But I'm still puzzled > as to why you're getting this error. date-to-time is supposed to > throw a "Specified time is not representable" for out-of-range dates, > but for you it's throwing some other error. Can you debug why that is > happening? > > What happens when you run the following in your *scratch* buffer? > > (date-to-time "Mon, 06 Mar 2130 20:55:03 GMT") > > On my platform (Fedora 21 x86) if I type C-j after that, the debugger > is entered with this backtrace: > > Debugger entered--Lisp error: (error . "Specified time is not representable") > signal(error "Specified time is not representable") > apply(signal (error "Specified time is not representable")) > (if (equal err overflow-error) (apply (quote signal) err) (condition-case err$ > (let ((overflow-error (quote (error "Specified time is not representable"))))$ > (condition-case err (apply (quote encode-time) (parse-time-string date)) (err$ > date-to-time("Mon, 06 Mar 2130 20:55:03 GMT") > ... > > What happens on your platform? > > Also, what is your platform? What does (emacs-version) return, for starters? > This is on an i686 machine - the eval returns: Debugger entered--Lisp error: (error "Invalid date: Mon, 06 Mar 2130 20:55:03 GMT") signal(error ("Invalid date: Mon, 06 Mar 2130 20:55:03 GMT")) error("Invalid date: %s" "Mon, 06 Mar 2130 20:55:03 GMT") byte-code("\300\301\302\217\207" [nil (byte-code "\301\302\303\304^H!!\"\207" [date apply encode-time parse-time-string time$ date-to-time("Mon, 06 Mar 2130 20:55:03 GMT") eval((date-to-time "Mon, 06 Mar 2130 20:55:03 GMT") nil) eval-last-sexp-1(t) eval-last-sexp(t) eval-print-last-sexp(nil) call-interactively(eval-print-last-sexp nil nil) command-execute(eval-print-last-sexp) The version is: GNU Emacs 24.4.1 (i686-pc-linux-gnu, GTK+ Version 3.14.7) of 2015-01-17 on bisson Anything up to 2038 will work without issue. I had read OpenBSD fixed the 2038 date issue using 'long long int' instead of 'time_t' for dates in the codebase on 32 bit machines. I think eww-mode should not fail to load subsequent pages though, even if a cookie date is bad (bad cookies should not halt further page requests), so maybe eww-mode just needs to catch the thrown error? -- Matthew Carter (m@ahungry.com) http://ahungry.com From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 08 21:50:49 2015 Received: (at 19799-done) by debbugs.gnu.org; 9 Feb 2015 02:50:49 +0000 Received: from localhost ([127.0.0.1]:37688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKeQz-0001p8-EN for submit@debbugs.gnu.org; Sun, 08 Feb 2015 21:50:49 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:53710) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKeQx-0001os-T2 for 19799-done@debbugs.gnu.org; Sun, 08 Feb 2015 21:50:48 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 0EE15A60022; Sun, 8 Feb 2015 18:50:42 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4stsf-pAg+50; Sun, 8 Feb 2015 18:50:41 -0800 (PST) Received: from [192.168.1.9] (pool-173-55-11-52.lsanca.fios.verizon.net [173.55.11.52]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 89E6BA6000B; Sun, 8 Feb 2015 18:50:41 -0800 (PST) Message-ID: <54D82081.1010101@cs.ucla.edu> Date: Sun, 08 Feb 2015 18:50:41 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Matthew Carter Subject: Re: Tangentally related to eww-mode Invalid Date bug just filed References: <54D7B8F4.6090505@cs.ucla.edu> <87lhk8b170.fsf@ahungry.com> In-Reply-To: <87lhk8b170.fsf@ahungry.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19799-done Cc: 19799-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) OK, I've fixed the "Invalid date:" bug in master commit fd6f7d1449c8496ab5c019d2aad7ca5e2980713a dated today. This fixes the problem with date-to-time on 32-bit hosts, since it now throws the correct exception rather than the incorrect one, so I'm closing this bug report. I'm leaving Bug#19798 open for now, until you can verify that the original eww issue is indeed fixed on the master. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 08 22:14:34 2015 Received: (at 19799) by debbugs.gnu.org; 9 Feb 2015 03:14:34 +0000 Received: from localhost ([127.0.0.1]:37701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKeny-0002QU-6B for submit@debbugs.gnu.org; Sun, 08 Feb 2015 22:14:34 -0500 Received: from li130-200.members.linode.com ([69.164.215.200]:46760 helo=mail.ahungry.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKenw-0002QH-8H for 19799@debbugs.gnu.org; Sun, 08 Feb 2015 22:14:32 -0500 Received: from Prometheus (99-40-9-245.lightspeed.livnmi.sbcglobal.net [99.40.9.245]) by mail.ahungry.com (Postfix) with ESMTPSA id A192F407D; Sun, 8 Feb 2015 22:14:26 -0500 (EST) From: Matthew Carter To: 19799@debbugs.gnu.org Subject: Re: bug#19799: Tangentally related to eww-mode Invalid Date bug just filed Organization: Ahungry (http://ahungry.com) References: <54D7B8F4.6090505@cs.ucla.edu> <87lhk8b170.fsf@ahungry.com> <54D82081.1010101@cs.ucla.edu> Date: Sun, 08 Feb 2015 22:14:25 -0500 In-Reply-To: <54D82081.1010101@cs.ucla.edu> (Paul Eggert's message of "Sun, 08 Feb 2015 18:50:41 -0800") Message-ID: <87siefai9a.fsf@ahungry.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19799 Cc: eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Paul Eggert writes: > OK, I've fixed the "Invalid date:" bug in master commit > fd6f7d1449c8496ab5c019d2aad7ca5e2980713a dated today. This fixes the > problem with date-to-time on 32-bit hosts, since it now throws the > correct exception rather than the incorrect one, so I'm closing this > bug report. I'm leaving Bug#19798 open for now, until you can verify > that the original eww issue is indeed fixed on the master. > > > The issue is fixed, no more failure to load subsequent pages when an overflowed cookie date is encountered. Thanks! -- Matthew Carter (m@ahungry.com) http://ahungry.com From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 09 01:29:50 2015 Received: (at 19799) by debbugs.gnu.org; 9 Feb 2015 06:29:50 +0000 Received: from localhost ([127.0.0.1]:37820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKhqv-0003yJ-A9 for submit@debbugs.gnu.org; Mon, 09 Feb 2015 01:29:49 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:60904) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKhqq-0003xv-6o; Mon, 09 Feb 2015 01:29:45 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 16612A60028; Sun, 8 Feb 2015 22:29:38 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dZxgEc1uCMyV; Sun, 8 Feb 2015 22:29:37 -0800 (PST) Received: from [192.168.1.9] (pool-173-55-11-52.lsanca.fios.verizon.net [173.55.11.52]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C91FF39E801F; Sun, 8 Feb 2015 22:29:37 -0800 (PST) Message-ID: <54D853D1.9020002@cs.ucla.edu> Date: Sun, 08 Feb 2015 22:29:37 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Matthew Carter Subject: Re: bug#19799: Tangentally related to eww-mode Invalid Date bug just filed References: <54D7B8F4.6090505@cs.ucla.edu> <87lhk8b170.fsf@ahungry.com> <54D82081.1010101@cs.ucla.edu> <87siefai9a.fsf@ahungry.com> In-Reply-To: <87siefai9a.fsf@ahungry.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19799 Cc: 19799@debbugs.gnu.org, 19798-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Matthew Carter wrote: > The issue is fixed, no more failure to load subsequent pages when an > overflowed cookie date is encountered. Thanks for checking, and so I'm closing Bug#19798 too. From unknown Sat Aug 16 13:42:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Mar 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator