Skip to content

Valgrind: conditional jump depends on uninitialized value at importing json module (PyUnicode_Decode (unicodeobject.c:3275)) #129148

@abkein

Description

@abkein

Bug report

Bug description:

I'm running python MPI (using mpi4py) program under valgrind. I'm unable to provide code, causing the error, because it is large and I dont know in which part it happens. But I think it should not depend on my actual code, b/c it happens every time I run different code.

What I get is

==59009== Thread 1:
==59009== Conditional jump or move depends on uninitialised value(s)
==59009==    at 0x50CD551: PyUnicode_Decode (unicodeobject.c:3275)
==59009==    by 0x50BEB1E: UnknownInlinedFun (unicodeobject.c:3148)
==59009==    by 0x50BEB1E: UnknownInlinedFun (unicodeobject.c:14515)
==59009==    by 0x50BEB1E: unicode_new (unicodeobject.c.h:1497)
==59009==    by 0x50402E8: UnknownInlinedFun (typeobject.c:1665)
==59009==    by 0x50402E8: _PyObject_MakeTpCall (call.c:240)
==59009==    by 0x5049094: _PyEval_EvalFrameDefault (bytecodes.c:2715)
==59009==    by 0x5042E84: UnknownInlinedFun (pycore_ceval.h:89)
==59009==    by 0x5042E84: UnknownInlinedFun (ceval.c:1683)
==59009==    by 0x5042E84: UnknownInlinedFun (call.c:419)
==59009==    by 0x5042E84: _PyObject_FastCallDictTstate (call.c:133)
==59009==    by 0x5081D58: UnknownInlinedFun (call.c:508)
==59009==    by 0x5081D58: slot_tp_init (typeobject.c:9023)
==59009==    by 0x50403BA: UnknownInlinedFun (typeobject.c:1677)
==59009==    by 0x50403BA: _PyObject_MakeTpCall (call.c:240)
==59009==    by 0x5049094: _PyEval_EvalFrameDefault (bytecodes.c:2715)
==59009==    by 0x511F331: PyEval_EvalCode (ceval.c:578)
==59009==    by 0x513B558: UnknownInlinedFun (bltinmodule.c:1096)
==59009==    by 0x513B558: builtin_exec (bltinmodule.c.h:586)
==59009==    by 0x506522D: cfunction_vectorcall_FASTCALL_KEYWORDS (methodobject.c:438)
==59009==    by 0x504E315: UnknownInlinedFun (call.c:387)
==59009==    by 0x504E315: _PyEval_EvalFrameDefault (bytecodes.c:3263)
==59009== 

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions