Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible leaks in Concurrency runtime #1237

Open
derekbruening opened this issue Nov 28, 2014 · 0 comments
Open

possible leaks in Concurrency runtime #1237

derekbruening opened this issue Nov 28, 2014 · 0 comments

Comments

@derekbruening
Copy link
Contributor

From bruen...@google.com 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<char,std::char_traits<char,std::allocator > >::async_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2225]
#4 Concurrency::target_blockConcurrency::multi_link_registry<Concurrency::ISource<std::basic_string<char,std::char_traits<char,std::allocator > > >,Concurrency::ordered_message_processorstd::basic_string<char,std::char_traits<char,std::allocator<ch [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2994]
# 5 Concurrency::call<std::basic_string<char,std::char_traits,std::allocator >,std::tr1::function<void __cdecl(std::basic_string<char,std::char_traits,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::ISource<std::basic_string<char,std::char_traits<char,std::allocator > > >,Concurrency::ordered_message_processorstd::basic_string<char,std::char_traits<char,std::allocator<ch [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2779]
# 7 Concurrency::asend<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >'::2'::_AsyncOriginator::_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:16970]
#8 Concurrency::asendstd::basic_string<char,std::char_traits<char,std::allocator > > [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:17226]
#9 Concurrency::asendstd::basic_string<char,std::char_traits<char,std::allocator > > [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<char,std::char_traits<char,std::allocator > >::async_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2225]
#4 Concurrency::target_blockConcurrency::multi_link_registry<Concurrency::ISource<std::basic_string<char,std::char_traits<char,std::allocator > > >,Concurrency::ordered_message_processorstd::basic_string<char,std::char_traits<char,std::allocator<ch [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2994]
# 5 Concurrency::call<std::basic_string<char,std::char_traits,std::allocator >,std::tr1::function<void __cdecl(std::basic_string<char,std::char_traits,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::ISource<std::basic_string<char,std::char_traits<char,std::allocator > > >,Concurrency::ordered_message_processorstd::basic_string<char,std::char_traits<char,std::allocator<ch [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:2779]
# 7 Concurrency::asend<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >'::2'::_AsyncOriginator::_send [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:16970]
#8 Concurrency::asendstd::basic_string<char,std::char_traits<char,std::allocator > > [c:\program files (x86)\microsoft visual studio 10.0\vc\include\agents.h:17226]
#9 Concurrency::asendstd::basic_string<char,std::char_traits<char,std::allocator > > [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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant