This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread7-rope fails also for std::string :(


Paolo Carlini wrote:

FYI for the rope issue, just set rope_type to use
__gnu_cxx::new_allocator<char>. That sidesteps the other issues.

Then, just run the binary under valgrind.

Actually, with new_allocator everything is in good shape here!?! Poor, poor,
poor rope, nobody likes it... ;) ;)

==8663== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==8663== malloc/free: in use at exit: 200 bytes in 1 blocks.
==8663== malloc/free: 100011 allocs, 100010 frees, 3320596 bytes allocated.
==8663== For counts of detected errors, rerun with: -v
==8663== searching for pointers to 1 not-freed blocks.
==8663== checked 4890276 bytes.
==8663==
==8663== LEAK SUMMARY:
==8663==    definitely lost: 0 bytes in 0 blocks.
==8663==    possibly lost:   0 bytes in 0 blocks.
==8663==    still reachable: 0 bytes in 0 blocks.
==8663==         suppressed: 200 bytes in 1 blocks.

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]