Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-24184

Check possible memory leaks in CLdapSecManager reported by valgrind

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.10.4
    • Component/s: LDAP
    • Labels:
      None

      Description

      ==18092== 1,091,767 (413,440 direct, 678,327 indirect) bytes in 3,040 blocks are definitely lost in loss record 795 of 796
      ==18092== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==18092== by 0x737963A: CLdapClient::getManagedScopeTree(ldap*, SecResourceType, char const*, IArrayOf<ISecResource>&) (ldapconnection.cpp:6271)
      ==18092== by 0x7386796: CLdapSecManager::getManagedScopeTree(SecResourceType, char const*, IArrayOf<ISecResource>&) (ldapsecurity.cpp:1490)
      ==18092== by 0x734900D: CPermissionsCache::queryPermsManagedFileScope(ISecUser&, char const*, StringBuffer&, SecAccessFlags*) (caching.cpp:570)
      ==18092== by 0x7384253: CLdapSecManager::authorizeFileScope(ISecUser&, char const*) (ldapsecurity.cpp:997)
      ==18092== by 0x16EBC882: getFilePermission(CDfsLogicalFileName&, ISecUser&, IUserDescriptor*, ISecManager*, SecAccessFlags&) (ws_dfuService.cpp:2006)
      ==18092== by 0x16EBC9B7: CWsDfuEx::getUserFilePermission(IEspContext&, IUserDescriptor*, char const*, SecAccessFlags&) (ws_dfuService.cpp:2030)
      ==18092== by 0x16EC0583: CWsDfuEx::doGetFileDetails(IEspContext&, IUserDescriptor*, char const*, char const*, char const*, char const*, char const*, bool, bool, CDFUChangeProtection, CDFUChangeRestriction, IEspDFUFileDetail&) (ws_dfuService.cpp:2590)
      ==18092== by 0x16EB2B50: CWsDfuEx::onDFUInfo(IEspContext&, IEspDFUInfoRequest&, IEspDFUInfoResponse&) (ws_dfuService.cpp:381)
      ==18092== by 0x16E2BD25: ws_dfu::CWsDfuSoapBinding::onGetInstantQuery(IEspContext&, CHttpRequest*, CHttpResponse*, char const*, char const*) (ws_dfu.esp:33736)
      ==18092== by 0x4EFA0AD: EspHttpBinding::onGetQuery(IEspContext&, CHttpRequest*, CHttpResponse*, char const*, char const*) (httpbinding.hpp:295)
      ==18092== by 0x4EEDBD9: EspHttpBinding::onGet(CHttpRequest*, CHttpResponse*) (httpbinding.cpp:994)
      ==18092== by 0x4EFA12C: EspHttpBinding::onPostForm(CHttpRequest*, CHttpResponse*) (httpbinding.hpp:307)
      ==18092== by 0x4EED0BD: EspHttpBinding::handleHttpPost(CHttpRequest*, CHttpResponse*) (httpbinding.cpp:892)
      ==18092== by 0x4F04290: CEspHttpServer::processRequest() (httpservice.cpp:359)
      ==18092== by 0x4EFFDF6: CHttpThread::onRequest() (httpprot.cpp:480)
      ==18092== by 0x4F51601: CEspProtocolThread::run() (espthread.cpp:179)
      ==18092== by 0x6224194: Thread::begin() (jthread.cpp:291)
      ==18092== by 0x6223BDE: Thread::_threadmain(void*) (jthread.cpp:137)
      ==18092== by 0x6CDE6DA: start_thread (pthread_create.c:463)
      ==18092== by 0x701788E: clone (clone.S:95)

        Attachments

          Activity

            People

            • Assignee:
              russwhitehead Russ Whitehead
              Reporter:
              wangkx Kevin Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: