Skip to content

Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block #75807

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 31626
Nosy @vstinner, @larryhastings, @skrah, @xdegaye, @serhiy-storchaka, @applio
PRs
  • bpo-31626: Fixed a bug in debug memory allocator. #3844
  • [WIP] bpo-31626: Rewrite _PyMem_DebugRawRealloc() #3898
  • bpo-31626: Fix _PyMem_DebugRawRealloc() on OpenBSD #4119
  • [3.6] bpo-31626: Fixed a bug in debug memory allocator. (GH-3844) #4191
  • bpo-31626: Mark ends of the reallocated block in debug build. #4210
  • bpo-31626: Fix _PyObject_DebugReallocApi() #4310
  • Files
  • debug-realloc.diff
  • 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 2017-11-24.11:08:20.926>
    created_at = <Date 2017-09-29.06:29:10.376>
    labels = ['interpreter-core', '3.7', 'type-crash']
    title = 'Writing in freed memory in _PyMem_DebugRawRealloc() after shrinking a memory block'
    updated_at = <Date 2017-11-24.11:57:24.033>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2017-11-24.11:57:24.033>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-24.11:08:20.926>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2017-09-29.06:29:10.376>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['47249']
    hgrepos = []
    issue_num = 31626
    keywords = ['patch']
    message_count = 30.0
    messages = ['303302', '303307', '303457', '303460', '304752', '304987', '304988', '304991', '304992', '304993', '304998', '305041', '305043', '305060', '305162', '305163', '305291', '305296', '305332', '305334', '305349', '305736', '305737', '305738', '305743', '306866', '306867', '306877', '306887', '306891']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'larry', 'skrah', 'xdegaye', 'serhiy.storchaka', 'davin']
    pr_nums = ['3844', '3898', '4119', '4191', '4210', '4310']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue31626'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)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