From: Nicholas N. <n.n...@gm...> - 2009-05-04 22:59:37
|
On Tue, May 5, 2009 at 1:45 AM, Miguel Ojeda <mig...@gm...> wrote: > On Mon, May 4, 2009 at 3:32 PM, fpga <mgb...@bl...> wrote: >> >> #include "sstream" >> using namespace std; >> int main(){ >> stringstream ss; >> return 0; >> } >> >> Why does the above cause this 'bug'? > > Trying... > > $ valgrind --version > valgrind-3.4.1-Debian > $ g++ --version > g++ (Debian 4.3.3-3) 4.3.3 > $ valgrind ./a.out > ... > ==2990== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) > ==2990== malloc/free: in use at exit: 0 bytes in 0 blocks. > ==2990== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. > ==2990== For counts of detected errors, rerun with: -v > ==2990== All heap blocks were freed -- no leaks are possible. > ... > > Which versions are you using? Is your C++ lib in good shape? I don't get the error either, with the same Valgrind version on my Ubuntu 9.04 box. Judging from the stack trace, it's a bug in the libc which you probably can't do much about. I'd suppress it -- use --gen-suppressions=yes to do so. Nick |