0 Replies Latest reply on Sep 9, 2015 8:49 PM by nibal

    Possible memory leak in libamdocl64.so of SDK 2-9.1

    nibal

      Running my ocl app through valgrind in Ubuntu 14.04 I get:

       

      ==00:00:01:23.993 20441== 256 bytes in 32 blocks are definitely lost in loss record 922 of 1,220
      ==00:00:01:23.993 20441== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==00:00:01:23.993 20441== by 0x8B3178C: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x8B318A8: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x75143F1: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x751491C: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x7535205: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x75358D1: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x7522E4A: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x755236B: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x7497441: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x7498572: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x749866F: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x746B26E: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x749ED4A: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x749F037: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x74709F2: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x7470FBB: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x742F36D: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x7445850: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x74431EB: ??? (in /opt/AMDAPPSDK-2.9-1/lib/x86_64/libamdocl64.so)
      ==00:00:01:23.993 20441== by 0x5976181: start_thread (pthread_create.c:312)
      ==00:00:01:23.994 20441== by 0x5C8647C: clone (clone.S:111)
      ==00:00:01:23.994 20441==.

       

       

      Could be a false positive, but a yahoo search "valgrind +start_thread +false positive" didn't reveal any such cases.