Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-01-21 11:23:01


Ok,
But why do I get a mem leak with VC 8 Express on windows if I run Unit
Tests?

I will try to investigate more on this issue.

Thanks,
Ovanes

-----Original Message-----
From: Peter Dimov [mailto:pdimov_at_[hidden]]
Sent: Sunday, January 21, 2007 2:57 PM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Doesboost::thread_group::create_threadhave memory
leak?

pete_at_[hidden] wrote:

> ==19432== 144 bytes in 1 blocks are possibly lost in loss record 1 of
> 1 ==19432== at 0x401F6A5: calloc (in
> /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
> ==19432== by 0x401017A: allocate_dtv (in /lib/ld-2.4.so)
> ==19432== by 0x4010224: _dl_allocate_tls (in /lib/ld-2.4.so)
> ==19432== by 0x42B289F: pthread_create@@GLIBC_2.1 (in
> /lib/libpthread-2.4.so)
> ==19432== by 0x4050213:
> boost::thread::thread(boost::function0<void,
> std::allocator<boost::function_base> > const&) (thread.cpp:171)

As you can see, the block has been allocated by pthread_create, not by
Boost.Threads.

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net