GitHub issue: chmod: changing permissions of 'config': Permission denied chmod: changing permissions of 'otherConfig': Permission denied
State: closed

After testing it on the local machine with the same environment, I submitted my package to NIST which was specifically for PAD validation but on their side, I received the error using vallgrind 
detectImpersonationPA - checking for hard-coded config directory chmod: changing permissions of 'config': Permission denied
chmod: changing permissions of 'otherConfig': Permission denied
==1662817== Memcheck, a memory error detector
==1662817== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1662817== Using Valgrind-3.15.0-608cb11914-20190413 and LibVEX; rerun with -h for copyright info
==1662817== Command: bin/validate_pad detectImpersonationPA -c otherconfig -o validation -h detectImpersonationPA -i input/short_pad.txt -t 1
.
.
.
.

==1662817== Invalid read of size 4
==1662817==    at 0x4EA4A21: ??? (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4EC4367: ??? (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4EC59A8: PyDict_SetItem (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4CD9CFE: PyType_Ready (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4EAFDE4: _PyTypes_Init (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4DEAAEA: ??? (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4DEB222: Py_InitializeFromConfig (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4DEB2CB: Py_InitializeEx (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x484D6E0: FRVT_PAD::FacedirectImplFRVTPad::initialize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in facedirect_001/2023_01_17/lib/libfrvt_pad_facedirect_001.so)
.
.
.
==1662817==    by 0x4CC946C: _PyEval_EvalFrameDefault (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817==    by 0x4CD306A: ??? (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662817== 
==1662817== ERROR SUMMARY: 1122 errors from 108 contexts (suppressed: 0 from 0)
chmod: changing permissions of 'otherConfig': Permission denied
[ERROR] Detection of hard-coded config directory in your software.  Please fix!

as far as I understand the issue is with permission related I have file on my system using root user but I did not receive this kind of error I think you are using valgrind then which kind flags are using. or if some one know exact issue with this kindly help me 
thanks in advance


Here is more detail I found in Valgrind output file 
Invalid read of size 8
==1662818==    at 0x4EB1C5E: PyObject_GetAttrString (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1662818==    by 0x484D998: FRVT_PAD::FaceImplFRVTPad::detectEvasionPA(FRVT_PAD::Media const&, bool&, double&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, 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> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&) (in face_001/2023_01_17/lib/libfrvt_pad_face_001.so)
==1662818==    by 0x1140B5: runPad(std::shared_ptr<FRVT_PAD::Interface>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Action) (in validation/pad/bin/validate_pad)
==1662818==    by 0x10F4C2: main (in validation/pad/bin/validate_pad)
==1662818==  Address 0x8 is not stack'd, malloc'd or (recently) free'd
 could some please help understand this error


Process terminating with default action of signal 11 (SIGSEGV)
==1662818==  Access not within mapped region at address 0x8
==1662818==    at 0x4EB1C5E: PyObject_GetAttrString (in /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)