Topic
No replies
SystemAdmin
SystemAdmin
17917 Posts
ACCEPTED ANSWER

Pinned topic Valgrind reports a lot of issues originating from libdb2.so

‏2013-01-10T10:47:02Z |
I'm developing software that uses DB2 database via ODBC (unixodbc). The issue is that running test suite with valgrind I get massive amount of errors. Let alone one connect and disconnect generates 4k error messages (code attached). My question is:

1. Am I doing something wrong?
2. Is there clean up function that frees allocated memory?
3. Valgrind also has message suppression feature, is there maintained suppression file for libdb2.so library?


... ==19632== LEAK SUMMARY: ==19632==    definitely lost: 129,008 bytes in 13 blocks ==19632==    indirectly lost: 808 bytes in 5 blocks ==19632==      possibly lost: 440,032 bytes in 6 blocks ==19632==    still reachable: 20,899 bytes in 142 blocks ==19632==         suppressed: 0 bytes in 0 blocks ==19632== ==19632== For counts of detected and suppressed errors, rerun with: -v ==19632== ERROR SUMMARY: 4026 errors from 265 contexts (suppressed: 2 from 2)


I'm using:
1) libdb2.so acquired from DSClients-linuxx64-odbc_cli-10.1.0.2-FP002 package for Linux 64bit.
2) libodbc.so version 2.3.1 acquired from www.unixodbc.org

Attachments