|
Boost : |
Subject: [boost] [serialization]Memory leak, VS2009, dynamic library
From: Mariusz Kwiczala (mariusz.kwiczala_at_[hidden])
Date: 2010-01-03 11:47:54
Hello,
I have memory leak during initialization of boost.serialization.dll. (I did
not call any function from boost.serialization - some static initialization
does not free resources)
Is it known bug or I missed some library settings?
Callstack to memory leak:
msvcr90d.dll!operator new(unsigned int size=20) Line 59 + 0x9 bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!std::_Allocate<std::_Tree_nod<std::_
Tset_traits<boost::archive::detail::basic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>,0>
>::_Node>(unsigned int _Count=1,
std::_Tree_nod<std::_Tset_traits<boost::archive::detail::basic_serializer
const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>,0> >::_Node *
__formal=0x00000000) Line 43 + 0xc bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!std::allocator<std::_Tree_nod<std::_
Tset_traits<boost::archive::detail::basic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>,0>
>::_Node>::allocate(unsigned int _Count=1) Line 145 + 0xb bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!std::_Tree<std::_Tset_traits<boost::
archive::detail::basic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>,0>
>::_Buynode() Line 1384 + 0xd bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!std::_Tree<std::_Tset_traits<boost::
archive::detail::basic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>,0> >::_Init()
Line 1178 + 0x8 bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!std::_Tree<std::_Tset_traits<boost::
archive::detail::basic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>,0>
>::_Tree<std::_Tset_traits<boost::archive::detail::basic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>,0> >(const
boost::archive::detail::basic_serializer_map::type_info_pointer_compare &
_Parg={...}, const std::allocator<boost::archive::detail::basic_serializer
const *> & _Al={...}) Line 511 C++
boost_serialization-vc90-mt-gd-1_41.dll!std::set<boost::archive::detail::bas
ic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *>
::set<boost::archive::detail::basic_serializer const
*,boost::archive::detail::basic_serializer_map::type_info_pointer_compare,st
d::allocator<boost::archive::detail::basic_serializer const *> >() Line 81
C++
boost_serialization-vc90-mt-gd-1_41.dll!boost::archive::detail::basic_serial
izer_map::basic_serializer_map() + 0x3d bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!boost::archive::detail::`anonymous
namespace'::map<boost::archive::naked_binary_iarchive>::map<boost::archive::
naked_binary_iarchive>() + 0xf bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!boost::serialization::detail::single
ton_wrapper<boost::archive::detail::`anonymous
namespace'::map<boost::archive::naked_binary_iarchive>
>::singleton_wrapper<boost::archive::detail::`anonymous
namespace'::map<boost::archive::naked_binary_iarchive> >() + 0xf bytes C++
boost_serialization-vc90-mt-gd-1_41.dll!boost::serialization::singleton<boos
t::archive::detail::`anonymous
namespace'::map<boost::archive::naked_binary_iarchive> >::get_instance()
Line 121 + 0x2a bytes C++
> boost_serialization-vc90-mt-gd-1_41.dll!`dynamic initializer for >
'boost::serialization::singleton<boost::archive::detail::`anonymous >
namespace'::map<boost::archive::naked_binary_iarchive> >::instance''() >
Line 142 + 0x8 bytes C++
msvcr90d.dll!_initterm(void (void)* * pfbegin=0x0049c2d8, void (void)* *
pfend=0x0049c44c) Line 903 C
boost_serialization-vc90-mt-gd-1_41.dll!_CRT_INIT(void *
hDllHandle=0x00440000, unsigned long dwReason=1, void *
lpreserved=0x0012fd30) Line 315 + 0xf bytes C
boost_serialization-vc90-mt-gd-1_41.dll!__DllMainCRTStartup(void *
hDllHandle=0x00440000, unsigned long dwReason=1, void *
lpreserved=0x0012fd30) Line 537 + 0x11 bytes C
boost_serialization-vc90-mt-gd-1_41.dll!_DllMainCRTStartup(void *
hDllHandle=0x00440000, unsigned long dwReason=1, void *
lpreserved=0x0012fd30) Line 507 + 0x11 bytes C
Best regards,
Mariusz
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk