Skip to content

math.prod(range(10)) caues segfault #80140

@tirkarthi

Description

@tirkarthi
BPO 35959
Nosy @rhettinger, @mdickinson, @csabella, @pablogsal, @remilapeyre, @tirkarthi
PRs
  • bpo-35959: Fix division by 0 when checking for overflow #11808
  • bpo-35959: Fix division by 0 when checking for overflow #11808
  • bpo-35959: Fix division by 0 when checking for overflow #11808
  • bpo-35959: Rework integer overflow path in math.prod and add more tests #11809
  • bpo-35959: Rework integer overflow path in math.prod and add more tests #11809
  • bpo-35959: Rework integer overflow path in math.prod and add more tests #11809
  • 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 2019-04-19.17:26:15.772>
    created_at = <Date 2019-02-10.19:08:53.466>
    labels = ['3.8', 'library', 'type-crash']
    title = 'math.prod(range(10)) caues segfault'
    updated_at = <Date 2019-04-19.17:26:15.771>
    user = 'https://github.com/tirkarthi'

    bugs.python.org fields:

    activity = <Date 2019-04-19.17:26:15.771>
    actor = 'mark.dickinson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-19.17:26:15.772>
    closer = 'mark.dickinson'
    components = ['Library (Lib)']
    creation = <Date 2019-02-10.19:08:53.466>
    creator = 'xtreak'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35959
    keywords = ['patch', 'patch', 'patch']
    message_count = 12.0
    messages = ['335168', '335169', '335170', '335172', '335221', '335223', '335224', '335225', '335226', '335229', '340455', '340552']
    nosy_count = 6.0
    nosy_names = ['rhettinger', 'mark.dickinson', 'cheryl.sabella', 'pablogsal', 'remi.lapeyre', 'xtreak']
    pr_nums = ['11808', '11808', '11808', '11809', '11809', '11809']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue35959'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-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