cms-sw / cmssw

CMS Offline Software
http://cms-sw.github.io/
Apache License 2.0
1.08k stars 4.32k forks source link

Valgrind messages (about python) #36121

Open VinInn opened 2 years ago

VinInn commented 2 years ago

Valgrind produces tons of complains of the type

==74771== Use of uninitialised value of size 8
==74771==    at 0x61CFB90: address_in_range (obmalloc.c:1422)
==74771==    by 0x61CFB90: pymalloc_free (obmalloc.c:1866)
==74771==    by 0x61CFB90: _PyObject_Free (obmalloc.c:1920)
==74771==    by 0x6182874: _Py_DECREF (object.h:430)
==74771==    by 0x6182874: _Py_XDECREF (object.h:497)
==74771==    by 0x6182874: code_dealloc (codeobject.c:588)
==74771==    by 0x6132D44: _Py_DECREF (object.h:430)
==74771==    by 0x6132D44: frame_dealloc (frameobject.c:582)
==74771==    by 0x6132B8C: _Py_DECREF (object.h:430)
==74771==    by 0x6132B8C: function_code_fastcall (call.c:338)
==74771==    by 0x613A219: _PyObject_VectorcallTstate (abstract.h:118)
==74771==    by 0x613A219: PyObject_Vectorcall (abstract.h:127)
==74771==    by 0x613A219: call_function (ceval.c:5072)
==74771==    by 0x613A219: _PyEval_EvalFrameDefault (ceval.c:3504)
==74771==    by 0x6132AFA: _PyEval_EvalFrame (pycore_ceval.h:40)
==74771==    by 0x6132AFA: function_code_fastcall (call.c:330)
==74771==    by 0x613945B: _PyObject_VectorcallTstate (abstract.h:118)
==74771==    by 0x613945B: PyObject_Vectorcall (abstract.h:127)
==74771==    by 0x613945B: call_function (ceval.c:5072)
==74771==    by 0x613945B: _PyEval_EvalFrameDefault (ceval.c:3518)
==74771==    by 0x6132AFA: _PyEval_EvalFrame (pycore_ceval.h:40)
==74771==    by 0x6132AFA: function_code_fastcall (call.c:330)
==74771==    by 0x613945B: _PyObject_VectorcallTstate (abstract.h:118)
==74771==    by 0x613945B: PyObject_Vectorcall (abstract.h:127)
==74771==    by 0x613945B: call_function (ceval.c:5072)
==74771==    by 0x613945B: _PyEval_EvalFrameDefault (ceval.c:3518)
==74771==    by 0x6132AFA: _PyEval_EvalFrame (pycore_ceval.h:40)
==74771==    by 0x6132AFA: function_code_fastcall (call.c:330)
==74771==    by 0x617F5F7: _PyObject_VectorcallTstate (abstract.h:118)
==74771==    by 0x617F5F7: object_vacall (call.c:792)
==74771==    by 0x617F927: _PyObject_CallMethodIdObjArgs (call.c:883)
==74771==  Uninitialised value was created by a heap allocation
==74771==    at 0x402EF1B: operator new(unsigned long) (in /cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/external/valgrind/3.17.0-15dbd5e124617f4ae7e2dd68d945919c/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==74771==    by 0x6D019B6: copy (fs_path.cc:227)
==74771==    by 0x6D019B6: std::filesystem::__cxx11::path::_List::_List(std::filesystem::__cxx11::path::_List const&) (fs_path.cc:258)
==74771==    by 0x41B7569: edmplugin::CacheParser::read(std::istream&, std::filesystem::__cxx11::path const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<edmplugin::PluginInfo, std::allocator<edmplugin::PluginInfo> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<edmplugin::PluginInfo, std::allocator<edmplugin::PluginInfo> > > > >&) (in /cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_2_X_2021-11-10-2300/lib/slc7_amd64_gcc900/libFWCorePluginManager.so)
==74771==    by 0x41C354C: edmplugin::readCacheFile(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<edmplugin::PluginInfo, std::allocator<edmplugin::PluginInfo> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<edmplugin::PluginInfo, std::allocator<edmplugin::PluginInfo> > > > >&) (in /cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_2_X_2021-11-10-2300/lib/slc7_amd64_gcc900/libFWCorePluginManager.so)
==74771==    by 0x41C4688: edmplugin::PluginManager::PluginManager(edmplugin::PluginManager::Config const&) (in /cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_2_X_2021-11-10-2300/lib/slc7_amd64_gcc900/libFWCorePluginManager.so)
==74771==    by 0x41C4ACE: edmplugin::PluginManager::configure(edmplugin::PluginManager::Config const&) (in /cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_2_X_2021-11-10-2300/lib/slc7_amd64_gcc900/libFWCorePluginManager.so)
==74771==    by 0x40BCBA: main::{lambda()#1}::operator()() const (in /cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_2_X_2021-11-10-2300/bin/slc7_amd64_gcc900/cmsRun)
==74771==    by 0x40B62B: main (in /cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_2_X_2021-11-10-2300/bin/slc7_amd64_gcc900/cmsRun)

I used

PYTHON_VALGRIND_SUPP=/cvmfs/cms-ib.cern.ch/nweek-02706/slc7_amd64_gcc900/external/python/2.7.15-cms/share/valgrind/valgrind-python.supp

should it not point to python3?

cmsbuild commented 2 years ago

A new Issue was created by @VinInn Vincenzo Innocente.

@Dr15Jones, @perrotta, @dpiparo, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here