Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs eww: error in process filter when loading pages #2614

Closed
stuart-little opened this issue Jul 3, 2018 · 1 comment
Closed

emacs eww: error in process filter when loading pages #2614

stuart-little opened this issue Jul 3, 2018 · 1 comment
Labels
bug report Something is not working properly. help wanted Help is wanted in order to solve the issue.

Comments

@stuart-little
Copy link

stuart-little commented Jul 3, 2018

I'm on an armv7l phone running Android 5.1 and emacs 26.1 (latest as I type this).

I've only now noticed that the built-in eww browser is misbehaving. It loads some pages fine, such as google.com or duckduckgo.com. However, every time I pass it arxiv.org, for instance, I get

error in process filter: Specified time is not representable

Immediately after receiving such an error some websites that normally load fine (i.e. nytimes.com and theguardian.com) then start failing to load with

<website>/80 No address associated with hostname

After a few minutes the newly-disabled webpages start loading again, but arxiv.org always fails with the 'time-is-not-representable' error.

Edit

I downgraded to version 25.3-2 of the emacs package from the xeffyr repo. The older version does not exhibit the issue; all web pages I've tried load up all right.

Additionally, those pages that do load in both instances of the package seem to do so faster in 25.3-2 than in 26.1.

@fornwall fornwall added help wanted Help is wanted in order to solve the issue. bug report Something is not working properly. labels Jul 13, 2018
@stuart-little
Copy link
Author

stuart-little commented Oct 29, 2019

I now believe this can be closed. I'll try to document what I think is going on. I'm exchanging some mail with the folks over on the emacs bug-reporting list at bug-gnu-emacs@gnu.org.

In short, I think this is a version of the year-2038 problem affecting 32-bit systems (which the device I reported this on was).


Starting with version 26.1, calling M-x eww RET arxiv.org RET in emacs will attempt to call the function

format-time-string("%a %b %d %H:%M:%S %Y GMT" (38428 13130 924849 611000) t)

(that's what the emacs debugger displays). On 64-bit systems that would produce the date

Thu Oct 21 05:59:23 2049 GMT

which is when one of the arxiv.org cookies is supposed to expire. The date is produced from that quadruple of integers as explained in the time-of-day emacs documentation (top of page): for a quadruple

(high,low,micro,pico)

the corresponding time is

high*2**16 + low + micro*10**(-6) + pico*10**(-12)

seconds from the Unix epoch. The problem is that in the present case that's more than

2147483647 = 2**31-1

seconds, so 32-bit systems will apparently choke.

As additional evidence, the problem is recurring on a 32-bit Debian laptop running emacs 26.1 but on none of my 64-bit systems, including x86_64 laptops / desktops and an aarch64 Android 9 phone.

EDIT

The emacs bug discussion is at

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37974#5

@ghost ghost closed this as completed Nov 17, 2019
@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug report Something is not working properly. help wanted Help is wanted in order to solve the issue.
Projects
None yet
Development

No branches or pull requests

2 participants