DynamoRIO / DynamoRIO/drmemory
possible leaks in Concurrency runtime
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on May 16, 2013 12:43:11_
Running the Concurrency::agent example code from http://msdn.microsoft.com/en-us/library/vstudio/dd504791(v=vs.100).aspx results in these possible leaks:
Error `#25`: POSSIBLE LEAK 16 direct bytes 0x00c04840-0x00c04850 + 0 indirect bytes
#0 replace_operator_new [d:\derek\drmemory\git\src\common\alloc_replace.c:2360]
#1 MSVCR100.dll!Concurrency::details::ScheduleGroupBase::ScheduleTask
#2 MSVCR100.dll!Concurrency::CurrentScheduler::ScheduleTask
#3 Concurrency::ordered_message_processorstd::basic_string > >::async_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2225]
#4 Concurrency::target_blockConcurrency::multi_link_registry > > >,Concurrency::ordered_message_processorstd::basic_string,std::allocator >,std::tr1::function,std::allocator > const &)> >::propagate_message [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:5327]
#6 Concurrency::target_blockConcurrency::multi_link_registry > > >,Concurrency::ordered_message_processorstd::basic_string,std::allocator > >'::`2'::_AsyncOriginator::_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:16970]
#8 Concurrency::asendstd::basic_string > > [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:17226]
#9 Concurrency::asendstd::basic_string > > [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:17261]
#10 file_reader::run [d:\derek\dr\test\i1233-concurrency\file_reader.h:60]
#11 MSVCR100.dll!Concurrency::details::RealizedChore::Invoke
#12 MSVCR100.dll!Concurrency::details::FreeThreadProxy::Dispatch
#13 MSVCR100.dll!Concurrency::details::ThreadProxy::ThreadProxyMain
#14 KERNEL32.dll!BaseThreadInitThunk
#15 ntdll.dll!__RtlUserThreadStart
Error `#26`: POSSIBLE LEAK 16 direct bytes 0x00c05270-0x00c05280 + 0 indirect bytes
#0 replace_operator_new [d:\derek\drmemory\git\src\common\alloc_replace.c:2360]
#1 MSVCR100.dll!Concurrency::details::ScheduleGroupBase::ScheduleTask
#2 MSVCR100.dll!Concurrency::CurrentScheduler::ScheduleTask
#3 Concurrency::ordered_message_processorstd::basic_string > >::async_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2225]
#4 Concurrency::target_blockConcurrency::multi_link_registry > > >,Concurrency::ordered_message_processorstd::basic_string,std::allocator >,std::tr1::function,std::allocator > const &)> >::propagate_message [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:5327]
#6 Concurrency::target_blockConcurrency::multi_link_registry > > >,Concurrency::ordered_message_processorstd::basic_string,std::allocator > >'::`2'::_AsyncOriginator::_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:16970]
#8 Concurrency::asendstd::basic_string > > [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:17226]
#9 Concurrency::asendstd::basic_string > > [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:17261]
#10 file_reader::run [d:\derek\dr\test\i1233-concurrency\file_reader.h:64]
#11 MSVCR100.dll!Concurrency::details::RealizedChore::Invoke
#12 MSVCR100.dll!Concurrency::details::FreeThreadProxy::Dispatch
#13 MSVCR100.dll!Concurrency::details::ThreadProxy::ThreadProxyMain
#14 KERNEL32.dll!BaseThreadInitThunk
#15 ntdll.dll!__RtlUserThreadStart
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1237_
Contributor guide
Assessment
This issue has not been assessed yet.