valgrind output

From: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
To: <pgsql-general(at)postgresql(dot)org>
Subject: valgrind output
Date: 2005-12-14 09:13:16
Message-ID: 967CFC4343BF2A4DAFACD026D33DC85118ECA0@jal.iiitb.ac.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi
i have a test runner and i am using valgrind to analyse memory leak:
i use is as follows:

valgrind --tool=memcheck --leak-check=yes --log-file=op ./dbExpressInstall -r "dbexpress" -s "/gsp-dist/blr/developer/surabi/images/mr/im152" 1 1 1

here is the output:

==6214== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 76 from 1)
==6214== malloc/free: in use at exit: 31493 bytes in 200 blocks.
==6214== malloc/free: 4690 allocs, 4490 frees, 1046511 bytes allocated.
==6214== For counts of detected errors, rerun with: -v
==6214== searching for pointers to 200 not-freed blocks.
==6214== checked 4246552 bytes.
==6214==
==6214== 192 bytes in 4 blocks are possibly lost in loss record 18 of 33
==6214== at 0x1B904E35: operator new[](unsigned) (vg_replace_malloc.c:139)
==6214== by 0x1B944E73: TerraVector<TerraConfigurationElement>::ensureCapacity(unsigned) (/gsp-dist/blr/release/TERRA/rel
_views/TERRAUTIL/TERRAUTIL_20050525/src/include/terrautil/TerraVector.h:319)
==6214== by 0x1B9449B3: TerraVector<TerraConfigurationElement>::push_back(TerraConfigurationElement const&) (/gsp-dist/bl
r/release/TERRA/rel_views/TERRAUTIL/TERRAUTIL_20050525/src/include/terrautil/TerraVector.h:206)
==6214== by 0x1B94433B: TerraConfigurationElement::addChild(TerraConfigurationElement&) (/gsp-dist/blr/release/TERRA/rel_
views/TERRAUTIL/TERRAUTIL_20050525/src/cxx/terrautil/TerraConfigurationElement.cxx:173)
==6214==
==6214==
==6214== 216 bytes in 18 blocks are possibly lost in loss record 20 of 33
==6214== at 0x1B904E35: operator new[](unsigned) (vg_replace_malloc.c:139)
==6214== by 0x1B944D7A: TerraVector<TerraConfigurationElement>::TerraVector(unsigned, unsigned) (/gsp-dist/blr/release/TE
RRA/rel_views/TERRAUTIL/TERRAUTIL_20050525/src/include/terrautil/TerraVector.h:155)
==6214== by 0x1B944B15: TerraConfigurationElementImp::TerraConfigurationElementImp(TerraCString const&) (/gsp-dist/blr/re
lease/TERRA/rel_views/TERRAUTIL/TERRAUTIL_20050525/src/cxx/terrautil/TerraConfigurationElement.cxx:13)
==6214== by 0x1B943A54: TerraConfigurationElement::TerraConfigurationElement(TerraCString const&) (/gsp-dist/blr/release/
TERRA/rel_views/TERRAUTIL/TERRAUTIL_20050525/src/cxx/terrautil/TerraConfigurationElement.cxx:39)
==6214==
==6214==
==6214== 672 bytes in 6 blocks are definitely lost in loss record 25 of 33
==6214== at 0x1B904A80: malloc (vg_replace_malloc.c:131)
==6214== by 0x1BD8CB2E: PQmakeEmptyPGresult (in /usr/lib/libpq.so.3.2)
==6214== by 0x1BD9390F: pqParseInput3 (in /usr/lib/libpq.so.3.2)
==6214== by 0x1BD8DBC6: parseInput (in /usr/lib/libpq.so.3.2)
==6214==
==6214==
==6214== 1024 bytes in 1 blocks are definitely lost in loss record 28 of 33
==6214== at 0x1B904BF7: operator new(unsigned) (vg_replace_malloc.c:133)
==6214== by 0x1BD7F287: ???
==6214== by 0x1BD7C5D1: ???
==6214== by 0x1BACCEC8: ???
==6214==
==6214== LEAK SUMMARY:
==6214== definitely lost: 1696 bytes in 7 blocks.
==6214== possibly lost: 408 bytes in 22 blocks.
==6214== still reachable: 29189 bytes in 170 blocks.
==6214== suppressed: 200 bytes in 1 blocks.

Please tell me how should i proceed further as it is showing 1696 bytes definitely lost

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-12-14 09:21:41 Re: Memory Leakage Problem
Previous Message Richard Huxton 2005-12-14 08:15:41 Re: Installing the latest 8.1.1 rpms question.