From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stuart Little Newsgroups: gmane.emacs.bugs Subject: bug#37974: eww produces "error in process filter: Specified time is not representable" Date: Tue, 29 Oct 2019 00:51:02 -0400 Message-ID: <20191029045102.GA5852@D-69-91-141-110.dhcp4.washington.edu> References: <20191029003245.GA10341@arch-chirva.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="201558"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: 37974@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 06:39:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPKDo-000qKJ-6w for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Oct 2019 06:39:12 +0100 Original-Received: from localhost ([::1]:51224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPKDn-0001yd-3z for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Oct 2019 01:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48658) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPKDg-0001xo-2k for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 01:39:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPKDe-0006KO-Rh for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 01:39:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37942) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPKDe-0006Jm-0V for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 01:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPKDd-0003uv-R8 for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 01:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stuart Little Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2019 05:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37974 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157232754015050 (code B ref -1); Tue, 29 Oct 2019 05:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2019 05:39:00 +0000 Original-Received: from localhost ([127.0.0.1]:46763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPKDc-0003uf-De for submit@debbugs.gnu.org; Tue, 29 Oct 2019 01:39:00 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:39005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPJTI-0002Xh-T9 for submit@debbugs.gnu.org; Tue, 29 Oct 2019 00:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43695) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPJTH-0000nN-Cr for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 00:51:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPJTG-000391-91 for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 00:51:07 -0400 Original-Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:38659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPJTG-00038W-2y for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2019 00:51:06 -0400 Original-Received: by mail-qt1-x829.google.com with SMTP id t26so8351508qtr.5 for ; Mon, 28 Oct 2019 21:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3DY5NXHaIdTYW7TrpaeInhCQJL2ncU1Ufkg92faaH/E=; b=ho+EK9ZUztMt5j3ZUF/oEp1HMh7jW8FgVIjibEPkPMDe3zGRR24vBRBTN99zYrFtRF Tx/bEH1/xigSLiF8aPT7i+6WfBpwR++SiHPuRuQJbhAFs2va7FxWKpbErsI2MhngIF1A ZQq1IcZQBbYHhMLrMpPc9h8lGtHQ//4lENxtgAirzbR4MVdzKU76qflQCUIx0SowDYF/ iG8PkVMWP+A+y3SNhyrFeRxMitPzldQuhuz5zpQfRyQgxwT3MwWkjezP/zYmT9Wbw3Gu LK1v4+nLScBTebmrc5Qz9k2O5FmLAIzHE6VbIM4Do70ddhATeTxI8i7r1RPc+ShG9aqU kzww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3DY5NXHaIdTYW7TrpaeInhCQJL2ncU1Ufkg92faaH/E=; b=HlyrLhHr9VkyhmHwPZnrmUHAZF5DRvT53JC5aLQKUaZ4BaoKy/REawHxJs9cKxN4V+ 6djVLZOsIvOOg5YaM3ZHxlm82x4RpZdFGV+Z6rwRUw4w9S5WQUOjEK9/pXRThx8lzVWl JcQvUQIoi5os03pEM4mCNgcvGQcUvmUD0seEvXnwVch1DnIwzSxg4jhJRMjAKnBP5YMn otu08dn3fNGuIxWo9HHq5lSw5W/ejy9m8MeW8p0SXQ4i5ZB0tjD7ldMh71v5L+tqUqBt sBbDCa0QFIvmJihvW1RWj7X4rH3wGLGvUG78iHCt2E30noEPjHyr4EA0bsKQGQ1axg4j JHXg== X-Gm-Message-State: APjAAAUKcs9MZIjRoJD8h3rBzJNRaGzoXSbPl2Tt+lbNOfEmjIker7/4 OlQLiFv8ZF5OS4GJIPkWkh/DP2G7 X-Google-Smtp-Source: APXvYqwxG0Bps0rXeGeKYNPqQ179hM6UuR5GETUF8+enWfdlbtqVRHjGff73UJQIyqG6TP0FzfbvZA== X-Received: by 2002:a05:6214:10e4:: with SMTP id q4mr12780443qvt.59.1572324664905; Mon, 28 Oct 2019 21:51:04 -0700 (PDT) Original-Received: from D-69-91-141-110.dhcp4.washington.edu (pool-68-133-6-220.bflony.fios.verizon.net. [68.133.6.220]) by smtp.gmail.com with ESMTPSA id i68sm2319864qkb.106.2019.10.28.21.51.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 21:51:04 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20191029003245.GA10341@arch-chirva.localdomain> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Tue, 29 Oct 2019 01:38:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170350 Archived-At: Apologies for the uninformative message below. I know slightly more now. Setting debug-on-error and running M-x eww RET arxiv.org RET again produces the following trace: --- cut here --- Debugger entered--Lisp error: (error "Specified time is not representable") format-time-string("%a %b %d %H:%M:%S %Y GMT" (38427 52290 103040 624000) t) url-cookie-handle-set-cookie("browser=68.133.6.220.1572324160979722; path=/; max-age=946080000; domain=.arxiv.org") url-http-handle-cookies() url-http-parse-headers() url-http-chunked-encoding-after-change-function(7029 7034 5) url-http-generic-filter(#> "0\015\n\015\n") read-event(nil t 2) sit-for(2) execute-extended-command(nil "eww" "eww") funcall-interactively(execute-extended-command nil "eww" "eww") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) --- done --- This told me the problem was with the url-cookie-handle-set-cookie function; specifically, with the format-time-string directive therein. I tried to fiddle with it to confirm. Indeed, replacing the relevant if-then-else clause --- cut --- (if (and max-age (string-match "\\`-?[0-9]+\\'" max-age)) (setq expires (format-time-string "%a %b %d %H:%M:%S %Y GMT" (time-add nil (read max-age)) t)) (setq expires (cdr-safe (assoc-string "expires" args t)))) --- done --- therein with just the else branch (setq expires (cdr-safe (assoc-string "expires" args t))) resolves the issue. arxiv.org loads fine with the redefined url-cookie-handle-set-cookie function. On Mon, Oct 28, 2019 at 08:32:45PM -0400, Stuart Little wrote: > I am on a Debian 10.1 machine i686. The current Emacs version in this Debian repo is 26.1. > > My issue is that > > M-x eww RET arxiv.org RET > > fails to load the page and produces the error > > error in process filter: Specified time is not representable > > in the minibuffer. Other websites load fine (e.g. nytimes.com, theguardian.comn, google.com). Others, on the other hand, simply silently time out: duckduckgo.com and thenation.com behave this way (the minibuffer reports 'contacting host' but the page never loads). > > Everything loads fine on an Arch Linux x86_64 machine running Emacs 26.3 as well as an Android 9 phone running an ARM version of Emacs 26.3 in a terminal emulator (Termux), so it is not a network issue. > > Additionally, a separate machine running Linux Mint 19.2 an Emacs 25.2.2 loads arxiv.org without issue.