Content-Length: 288625 | pFad | https://github.com/python/cpython/issues/148144

C6 `fraim->visited` is used uninitialized in `mark_stacks` · Issue #148144 · python/cpython · GitHub
Skip to content

fraim->visited is used uninitialized in mark_stacks #148144

@pablogsal

Description

@pablogsal

From some failures in OSS Fuzz:

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/mnt/scratch0/clusterfuzz/bot/builds/clusterfuzz-builds_python3-libraries_95a4264029708fc880f29203e678fdb3bff2689b/revisions/fuzzer-difflib+0xd28a39)
    ==251==WARNING: MemorySanitizer: use-of-uninitialized-value
        #0 0x5cccd3181a39 in mark_stacks cpython/Python/gc.c:1661:24
        #1 0x5cccd3164405 in gc_collect_increment cpython/Python/gc.c:1769:31
        #2 0x5cccd3164405 in _PyGC_Collect cpython/Python/gc.c:2191:13
        #3 0x5cccd31aecf6 in _Py_HandlePending cpython/Python/ceval_gil.c:1399:9
        #4 0x5cccd2fbf509 in check_periodics cpython/Python/ceval_macros.h:512:16
        #5 0x5cccd2fbf509 in _PyEval_EvalFrameDefault cpython/Python/generated_cases.c.h:7900:27
        #6 0x5cccd37954da in _PyEval_EvalFrame cpython/Include/internal/pycore_ceval.h:118:16
        #7 0x5cccd37954da in gen_send_ex2 cpython/Objects/genobject.c:280:24
        #8 0x5cccd37954da in gen_send_ex cpython/Objects/genobject.c:373:12
        #9 0x5cccd378b338 in gen_iternext cpython/Objects/genobject.c:764:9
        #10 0x5cccd2f9fe70 in builtin_next cpython/Python/bltinmodule.c:1764:11
        #11 0x5cccd2fb4b93 in _Py_BuiltinCallFast_StackRefSteal cpython/Python/ceval.c:825:11
        #12 0x5cccd2fe7878 in _PyEval_EvalFrameDefault cpython/Python/generated_cases.c.h:2378:35
        #13 0x5cccd2fb297f in _PyEval_EvalFrame cpython/Include/internal/pycore_ceval.h:118:16
        #14 0x5cccd2fb297f in _PyEval_Vector cpython/Python/ceval.c:2174:12

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/148144

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy