Skip to content

Commit

Permalink
Update valgrind suppressions (#2646)
Browse files Browse the repository at this point in the history
Update valgrind suppressions and fix `run-valgrind-py.sh` for arguments containing spaces.
  • Loading branch information
dweindl committed Feb 18, 2025
1 parent 493a531 commit 6bcf23a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions python/tests/valgrind-python.supp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,3 +1006,33 @@
fun:_ZN4rpds*
...
}

{
Python
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:_PyUnicodeWriter_Finish
obj:/usr/bin/python3.*
...
}

{
Something matplotlib. Cannot reproduce.
Memcheck:Leak
match-leak-kinds: definite
fun:_Znwm
fun:_ZL14PyFT2Font_initN8pybind116objectElSt8optionalISt6vectorIP9PyFT2FontSaIS4_EEEi.lto_priv.0
fun:_ZZN8pybind1112cpp_function10initializeIZNOS_6detail8initimpl7factoryIPFP9PyFT2FontNS_6objectElSt8optionalISt6vectorIS6_SaIS6_EEEiEPFNS2_9void_typeEvESD_SG_E7executeINS_6class_IS5_JEEEJNS_3argENS_5arg_vENS_7kw_onlyESN_SN_PKcEEEvRT_DpRKT0_EUlRNS2_16value_and_holderES7_lSC_iE_vJSY_S7_lSC_iEJNS_4nameENS_9is_methodENS_7siblingENS2_24is_new_style_constructorESM_SN_SO_SN_SN_SQ_EEEvOSR_PFT0_DpT1_EDpRKT2_ENUlRNS2_13function_callEE1_4_FUNES1F_
fun:_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_
fun:cfunction_call
fun:_PyObject_MakeTpCall
fun:_PyObject_VectorcallTstate
fun:_PyObject_VectorcallTstate
fun:method_vectorcall
fun:slot_tp_init
fun:type_call
fun:pybind11_meta_call
fun:_PyObject_MakeTpCall
fun:_PyEval_EvalFrameDefault
}
2 changes: 1 addition & 1 deletion scripts/run-valgrind-py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [ $# -eq 0 ]
# for <class 'numpy.longdouble'> does not match any known type: falling back to type probe function.
else
# Run whatever was passed as arguments
command=($@)
command=("$@")
fi


Expand Down

0 comments on commit 6bcf23a

Please sign in to comment.