[Django] #30264: "OverflowError: timestamp out of range for platform time_t" test failure on 32-bit platforms

25 views
Skip to first unread message

Django

unread,
Mar 18, 2019, 10:22:59 AM3/18/19
to django-...@googlegroups.com
#30264: "OverflowError: timestamp out of range for platform time_t" test failure on
32-bit platforms
---------------------------------------------+--------------------------
Reporter: Chris Lamb | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Keywords: overflow
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+--------------------------
In Debian we are seeing the following test failure on 32-bit platforms
(not on 64-bit):

{{{
======================================================================
ERROR: test_parsing_year_less_than_70
(utils_tests.test_http.HttpDateProcessingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/python-django-2.2~beta1/tests/utils_tests/test_http.py",
line 301, in test_parsing_year_less_than_70
self.assertEqual(datetime.utcfromtimestamp(parsed), datetime(2050, 11,
6, 8, 49, 37))
OverflowError: timestamp out of range for platform time_t
}}}

This affects (at least) 2.2 beta 1 and was added in
https://github.com/django/django/commit/6b7f1c2530784ed6c6c1826688faaa08e3f786d9.

Original filed by Andreas Beckmann at https://bugs.debian.org/924784

--
Ticket URL: <https://code.djangoproject.com/ticket/30264>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 18, 2019, 10:29:48 AM3/18/19
to django-...@googlegroups.com
#30264: "OverflowError: timestamp out of range for platform time_t" test failure on
32-bit platforms
---------------------------------+------------------------------------

Reporter: Chris Lamb | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: overflow | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Tim Graham):

* version: master => 2.2
* component: Testing framework => Core (Other)
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted


Comment:

We should either skip the test on 32-bit or pick a smaller value.

--
Ticket URL: <https://code.djangoproject.com/ticket/30264#comment:1>

Django

unread,
Mar 19, 2019, 12:54:57 PM3/19/19
to django-...@googlegroups.com
#30264: "OverflowError: timestamp out of range for platform time_t" test failure on
32-bit platforms
---------------------------------+------------------------------------
Reporter: Chris Lamb | Owner: felixxm
Type: Bug | Status: assigned

Component: Core (Other) | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: overflow | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by felixxm):

* status: new => assigned
* owner: nobody => felixxm


--
Ticket URL: <https://code.djangoproject.com/ticket/30264#comment:2>

Django

unread,
Mar 19, 2019, 1:06:01 PM3/19/19
to django-...@googlegroups.com
#30264: "OverflowError: timestamp out of range for platform time_t" test failure on
32-bit platforms
---------------------------------+------------------------------------
Reporter: Chris Lamb | Owner: felixxm
Type: Bug | Status: assigned
Component: Core (Other) | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: overflow | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by felixxm):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/11097 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/30264#comment:3>

Django

unread,
Mar 19, 2019, 1:07:11 PM3/19/19
to django-...@googlegroups.com
#30264: "OverflowError: timestamp out of range for platform time_t" test failure on
32-bit platforms
-------------------------------------+-------------------------------------

Reporter: Chris Lamb | Owner: felixxm
Type: Bug | Status: assigned
Component: Core (Other) | Version: 2.2
Severity: Release blocker | Resolution:
Keywords: overflow | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/30264#comment:4>

Django

unread,
Mar 20, 2019, 8:45:41 AM3/20/19
to django-...@googlegroups.com
#30264: "OverflowError: timestamp out of range for platform time_t" test failure on
32-bit platforms
-------------------------------------+-------------------------------------
Reporter: Chris Lamb | Owner: felixxm
Type: Bug | Status: closed

Component: Core (Other) | Version: 2.2
Severity: Release blocker | Resolution: fixed

Keywords: overflow | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"c9888bc8ecb8943ef08090e3325dcbdac825eafc" c9888bc8]:
{{{
#!CommitTicketReference repository=""
revision="c9888bc8ecb8943ef08090e3325dcbdac825eafc"
Fixed #30264 -- Fixed crash of test_parsing_year_less_than_70() on 32-bit
systems.

Thanks Andreas Beckmann and Chris Lamb for the report.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30264#comment:5>

Django

unread,
Mar 20, 2019, 8:47:52 AM3/20/19
to django-...@googlegroups.com
#30264: "OverflowError: timestamp out of range for platform time_t" test failure on
32-bit platforms
-------------------------------------+-------------------------------------
Reporter: Chris Lamb | Owner: felixxm
Type: Bug | Status: closed
Component: Core (Other) | Version: 2.2
Severity: Release blocker | Resolution: fixed
Keywords: overflow | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"505785a71ddcc66f0dbf2b9b903881e894a17a17" 505785a]:
{{{
#!CommitTicketReference repository=""
revision="505785a71ddcc66f0dbf2b9b903881e894a17a17"
[2.2.x] Fixed #30264 -- Fixed crash of test_parsing_year_less_than_70() on
32-bit systems.

Thanks Andreas Beckmann and Chris Lamb for the report.

Backport of c9888bc8ecb8943ef08090e3325dcbdac825eafc from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30264#comment:6>

Reply all
Reply to author
Forward
0 new messages