|
From: Kjartan M. <km...@br...> - 2005-03-15 21:51:45
|
tir, 15,.03.2005 kl. 16.38 -0500, skrev Stephen Torri:
> On Tue, 2005-03-15 at 12:08 -0800, Jeremy Fitzhardinge wrote:
> > Stephen Torri wrote:
> >
> > >What is up with the std::string destructor?
> > >
> > >
> > Hard to say. I presume it is destructing textstring? Is val defined?
> > Try including <valgrind/memcheck.h> and doing
> > VALGRIND_CHECK_DEFINED(val) (though this depends on what val actually
> > is, and whether its valid to check every byte in the range [&val,
> > &val+1) for definedness.
>
> Where I believe I am using it val is of type 'std::string'.
>
> Here is what val is reported by gdb
>
> (gdb) print val
> $2 = {static npos = 4294967295,
> _M_dataplus = {<std::allocator<char>> =
> {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data
> fields>}, _M_p = 0x1bfe0494 "pid"}}
>
>
> > (If you can convince your mailer not to wrap these messages when posting
> > them, that would be nice.)
>
> If you know how to make Evolution do it I am all ears.
>
Set the style to "Preformat" when pasting output from valgrind or
anything else that is longer than linewidth.
Cheers
Kjartan
|