|
From: Alan M. <ala...@jp...> - 2013-05-30 16:15:40
|
I've been using valgrind for many years and am finally stumped. After
not having used it recently, I'm now getting "definitely lost" memory
and the location of the "operator new" usage is a function call.
For example...
==35995== 2,089 bytes in 1 blocks are definitely lost in loss record 9
of 10
==35995== at 0x10008FC16: malloc (vg_replace_malloc.c:274)
==35995== by 0x1000A126C: operator new(unsigned long) (in
/usr/local/lib/libstdc++.6.dylib)
==35995== by 0x10001984C: main (main.cpp:405)
where main.cpp:405 is...
read_conf(conffile, ".conf;.test;.prot", preface, trigger_statement,
skip_preprocessor, m4dirs, &text);
Everything being passed is a pointer.
If I don't call the routine, the error does go away.
This type of error is occurring in a variety of places, always
"definitely lost" memory at a function call.
Anyone have any idea what I'm missing? I've tried multiple compilers
and a bazillion different options (on compiler and valgrind). I'm stumped.
-- Alan
|