Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test_ssl fails after 2038 #101732

Closed
Closed
Labels
testsTests in the Lib/test dirtopic-SSLtype-bugAn unexpected behavior, bug, or error
@blemouzy

Description

@blemouzy

Environment

  • i.MX6 32 bits CPU
  • Yocto Kirkstone (kirkstone-4.0.6)
  • Linux 5.10.109
  • glibc 2.35 (8d125a1f9145ad90c94e438858d6b5b7578686f2)
  • openssl 3.0.7
  • Python 3.10.8
  • RFS built with "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" flags
  • System date set after 011903142038 (2038 Jan 19 03:14:00)
# openssl versionOpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022)# python3 -VPython 3.10.8# dateThu Jan 19 04:04:50 UTC 2040

Description

test_ssl returns the following error on 32 bits board with system date after 2038:

======================================================================FAIL:test_session (test.test_ssl.ThreadedTests)----------------------------------------------------------------------Traceback (most recent call last):  File"/usr/lib/python3.10/test/test_ssl.py", line4366, intest_sessionself.assertGreater(session.time,0)AssertionError:-2084411619 not greater than 0----------------------------------------------------------------------

The same test passes with a system date before 2038.

How to reproduce

  • Setenddate to20421028142316Z in make_ssl_certs.py file
  • Run make_ssl_certs.py to create new certificates
  • Update test_ssl.py and test_asyncio/utils.py according to make_ssl_certs.py output
  • Run the following command:
python3 -m test test_ssl -v

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-SSLtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp