Skip to content

int overflow in datetime causes seg fault from datetime.ctime() #54097

@bernie9998

Description

@bernie9998
BPO 9888
Nosy @warsaw, @amauryfa, @mdickinson, @abalkin, @pitrou, @bitdancer
Superseder
  • bpo-7150: datetime operations spanning MINYEAR give bad results
  • Files
  • segfault.py: sample code as a simple script, when executed segmentation fault occurs
  • segfault.py: updated demonstration script relative to current date, shows all edge cases until segmentation fault.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-09-23.22:31:45.460>
    created_at = <Date 2010-09-17.18:18:00.366>
    labels = ['type-crash']
    title = 'int overflow in datetime causes seg fault from datetime.ctime()'
    updated_at = <Date 2010-09-23.22:31:45.458>
    user = 'https://bugs.python.org/bernie9998'

    bugs.python.org fields:

    activity = <Date 2010-09-23.22:31:45.458>
    actor = 'amaury.forgeotdarc'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-09-23.22:31:45.460>
    closer = 'amaury.forgeotdarc'
    components = ['None']
    creation = <Date 2010-09-17.18:18:00.366>
    creator = 'bernie9998'
    dependencies = []
    files = ['18909', '18910']
    hgrepos = []
    issue_num = 9888
    keywords = []
    message_count = 5.0
    messages = ['116700', '116712', '116723', '116767', '117243']
    nosy_count = 7.0
    nosy_names = ['barry', 'amaury.forgeotdarc', 'mark.dickinson', 'belopolsky', 'pitrou', 'r.david.murray', 'bernie9998']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = '7150'
    type = 'crash'
    url = 'https://bugs.python.org/issue9888'
    versions = ['Python 2.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      type-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions