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

Buffer Overflow #143

Closed
abhiguru opened this issue Jan 4, 2017 · 3 comments
Closed

Buffer Overflow #143

abhiguru opened this issue Jan 4, 2017 · 3 comments

Comments

@abhiguru
Copy link

abhiguru commented Jan 4, 2017

=================================================================
==4378==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fd600665db0 at pc 0x5627523aa7ef bp 0x7fd600665d60 sp 0x7fd600665d50
READ of size 8 at 0x7fd600665db0 thread T8
#0 0x5627523aa7ee in std::less_equal<char const*>::operator()(char const* const&, char const* const&) const /usr/include/c++/6/bits/stl_function.h:406
#1 0x5627523aa971 in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::append(char const*, unsigned long) /usr/local/include/folly/FBString.h:1932
#2 0x5627523bf7e3 in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::append(char const*) /usr/local/include/folly/FBString.h:1374
#3 0x5627523aac72 in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::operator+=(char const*) /usr/local/include/folly/FBString.h:1353
#4 0x562752373baa in folly::exceptionStr(std::exception const&) /usr/local/include/folly/ExceptionString.h:36
#5 0x562752405e43 in void folly::exception_wrapper::assign_eptrstd::exception(std::__exception_ptr::exception_ptr, std::exception&) /usr/local/include/folly/ExceptionWrapper.h:284
#6 0x5627523fac6e in folly::exception_wrapper::exception_wrapperstd::exception(std::__exception_ptr::exception_ptr, std::exception&) /usr/local/include/folly/ExceptionWrapper.h:148
#7 0x562752401d9e in std::enable_if<std::is_same<std::result_of<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&)::{lambda()#1} ()>::type, void>::value, folly::Try >::type folly::makeTryWith<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&)::{lambda()#1}>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x41dd9e)
#8 0x5627523f266f in void folly::Promisefolly::Unit::setWith<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void (
(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&)::{lambda()#1}>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x40e66f)
#9 0x5627523dd561 in std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x3f9561)
#10 0x56275242673f in void folly::detail::function::FunctionTraits<void (folly::Tryfolly::Unit&&)>::callBig<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}>(folly::detail::function::Data&, folly::Tryfolly::Unit&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x44273f)
#11 0x56275241e5f6 in folly::detail::function::FunctionTraits<void (folly::Tryfolly::Unit&&)>::operator()(folly::Tryfolly::Unit&&) /usr/local/include/folly/Function.h:305
#12 0x562752412db6 in folly::detail::Corefolly::Unit::doCallback()::{lambda()#1}::operator()() /usr/local/include/folly/futures/detail/Core.h:386
#13 0x56275242b37f in void folly::detail::function::FunctionTraits<void ()>::callSmall<folly::detail::Corefolly::Unit::doCallback()::{lambda()#1}>(folly::detail::function::Data&) /usr/local/include/folly/Function.h:290
#14 0x562752540854 in folly::detail::function::FunctionTraits<void ()>::operator()() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55c854)
#15 0x5627525437da in wangle::ThreadPoolExecutor::runTask(std::shared_ptrwangle::ThreadPoolExecutor::Thread const&, wangle::ThreadPoolExecutor::Task&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55f7da)
#16 0x562752538744 in wangle::CPUThreadPoolExecutor::threadRun(std::shared_ptrwangle::ThreadPoolExecutor::Thread) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x554744)
#17 0x5627525510bc in void std::__invoke_impl<void, void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&>(std::__invoke_memfun_deref, void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56d0bc)
#18 0x5627525507b7 in std::result_of<void (wangle::ThreadPoolExecutor::* const&(wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&))(std::shared_ptrwangle::ThreadPoolExecutor::Thread)>::type std::__invoke<void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&>(void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56c7b7)
#19 0x56275254fafe in decltype (__invoke((this)._M_pmf, (forwardwangle::ThreadPoolExecutor*&)({parm#1}), (forward<std::shared_ptrwangle::ThreadPoolExecutor::Thread&>)({parm#1}))) std::_Mem_fn_base<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), true>::operator()<wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&>(wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&) const (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56bafe)
#20 0x56275254e205 in void std::_Bind<std::_Mem_fn<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread)> (wangle::ThreadPoolExecutor, std::shared_ptrwangle::ThreadPoolExecutor::Thread)>::__call<void, , 0ul, 1ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul>) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56a205)
#21 0x56275254cb1a in void std::_Bind<std::_Mem_fn<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread)> (wangle::ThreadPoolExecutor, std::shared_ptrwangle::ThreadPoolExecutor::Thread)>::operator()<, void>() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x568b1a)
#22 0x56275254aa5f in void folly::detail::function::FunctionTraits<void ()>::callBig<std::_Bind<std::_Mem_fn<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread)> (wangle::ThreadPoolExecutor, std::shared_ptrwangle::ThreadPoolExecutor::Thread)> >(folly::detail::function::Data&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x566a5f)
#23 0x562752540854 in folly::detail::function::FunctionTraits<void ()>::operator()() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55c854)
#24 0x56275253fc85 in void std::_Bind_simple<folly::Function<void ()> ()>::_M_invoke<>(std::_Index_tuple<>) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55bc85)
#25 0x56275253f40d in std::_Bind_simple<folly::Function<void ()> ()>::operator()() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55b40d)
#26 0x56275253ebdf in std::thread::_State_impl<std::_Bind_simple<folly::Function<void ()> ()> >::_M_run() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55abdf)
#27 0x5627525dc57e in execute_native_thread_routine (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x5f857e)
#28 0x7fd61b9286c9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76c9)
#29 0x7fd61b44b0ae in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x1080ae)

Address 0x7fd600665db0 is located in stack of thread T8==4378==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/asan/asan_thread.cc:243 "((ptr[0] == kCurrentStackFrameMagic)) != (0)" (0x0, 0x0)
#0 0x56275233b24a in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x35724a)
#1 0x562752342e93 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x35ee93)
#2 0x56275233f841 in __asan::AsanThread::GetStackFrameAccessByAddr(unsigned long, __asan::AsanThread::StackFrameAccess*) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x35b841)
#3 0x562752336c7a in __asan::DescribeAddressIfStack(unsigned long, unsigned long) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x352c7a)
#4 0x56275233724a in __asan::DescribeAddress(unsigned long, unsigned long, char const*) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x35324a)
#5 0x56275233a6a9 in __asan::ReportGenericError(unsigned long, unsigned long, unsigned long, unsigned long, bool, unsigned long, unsigned int, bool) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x3566a9)
#6 0x56275233b856 in __asan_report_load8 (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x357856)
#7 0x5627523aa7ee in std::less_equal<char const*>::operator()(char const* const&, char const* const&) const /usr/include/c++/6/bits/stl_function.h:406
#8 0x5627523aa971 in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::append(char const*, unsigned long) /usr/local/include/folly/FBString.h:1932
#9 0x5627523bf7e3 in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::append(char const*) /usr/local/include/folly/FBString.h:1374
#10 0x5627523aac72 in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::operator+=(char const*) /usr/local/include/folly/FBString.h:1353
#11 0x562752373baa in folly::exceptionStr(std::exception const&) /usr/local/include/folly/ExceptionString.h:36
#12 0x562752405e43 in void folly::exception_wrapper::assign_eptrstd::exception(std::__exception_ptr::exception_ptr, std::exception&) /usr/local/include/folly/ExceptionWrapper.h:284
#13 0x5627523fac6e in folly::exception_wrapper::exception_wrapperstd::exception(std::__exception_ptr::exception_ptr, std::exception&) /usr/local/include/folly/ExceptionWrapper.h:148
#14 0x562752401d9e in std::enable_if<std::is_same<std::result_of<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&)::{lambda()#1} ()>::type, void>::value, folly::Try >::type folly::makeTryWith<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&)::{lambda()#1}>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x41dd9e)
#15 0x5627523f266f in void folly::Promisefolly::Unit::setWith<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void (
(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&)::{lambda()#1}>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x40e66f)
#16 0x5627523dd561 in std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}::operator()(folly::Tryfolly::Unit&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x3f9561)
#17 0x56275242673f in void folly::detail::function::FunctionTraits<void (folly::Tryfolly::Unit&&)>::callBig<std::enable_if<!folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::ReturnsFuture::value, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >::Return>::type folly::Futurefolly::Unit::thenImplementation<std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>, folly::detail::callableResult<folly::Unit, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)> >, false>(std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>&&, folly::detail::argResult<false, std::_Bind<void ((std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage))(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, folly::ProducerConsumerQueuevcu::facedetectimage)>>)::{lambda(folly::Tryfolly::Unit&&)#1}>(folly::detail::function::Data&, folly::Tryfolly::Unit&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x44273f)
#18 0x56275241e5f6 in folly::detail::function::FunctionTraits<void (folly::Tryfolly::Unit&&)>::operator()(folly::Tryfolly::Unit&&) /usr/local/include/folly/Function.h:305
#19 0x562752412db6 in folly::detail::Corefolly::Unit::doCallback()::{lambda()#1}::operator()() /usr/local/include/folly/futures/detail/Core.h:386
#20 0x56275242b37f in void folly::detail::function::FunctionTraits<void ()>::callSmall<folly::detail::Corefolly::Unit::doCallback()::{lambda()#1}>(folly::detail::function::Data&) /usr/local/include/folly/Function.h:290
#21 0x562752540854 in folly::detail::function::FunctionTraits<void ()>::operator()() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55c854)
#22 0x5627525437da in wangle::ThreadPoolExecutor::runTask(std::shared_ptrwangle::ThreadPoolExecutor::Thread const&, wangle::ThreadPoolExecutor::Task&&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55f7da)
#23 0x562752538744 in wangle::CPUThreadPoolExecutor::threadRun(std::shared_ptrwangle::ThreadPoolExecutor::Thread) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x554744)
#24 0x5627525510bc in void std::__invoke_impl<void, void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&>(std::__invoke_memfun_deref, void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56d0bc)
#25 0x5627525507b7 in std::result_of<void (wangle::ThreadPoolExecutor::* const&(wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&))(std::shared_ptrwangle::ThreadPoolExecutor::Thread)>::type std::__invoke<void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&>(void (wangle::ThreadPoolExecutor::* const&)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56c7b7)
#26 0x56275254fafe in decltype (__invoke((this)._M_pmf, (forwardwangle::ThreadPoolExecutor*&)({parm#1}), (forward<std::shared_ptrwangle::ThreadPoolExecutor::Thread&>)({parm#1}))) std::_Mem_fn_base<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread), true>::operator()<wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&>(wangle::ThreadPoolExecutor*&, std::shared_ptrwangle::ThreadPoolExecutor::Thread&) const (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56bafe)
#27 0x56275254e205 in void std::_Bind<std::_Mem_fn<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread)> (wangle::ThreadPoolExecutor, std::shared_ptrwangle::ThreadPoolExecutor::Thread)>::__call<void, , 0ul, 1ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul>) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x56a205)
#28 0x56275254cb1a in void std::_Bind<std::_Mem_fn<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread)> (wangle::ThreadPoolExecutor, std::shared_ptrwangle::ThreadPoolExecutor::Thread)>::operator()<, void>() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x568b1a)
#29 0x56275254aa5f in void folly::detail::function::FunctionTraits<void ()>::callBig<std::_Bind<std::_Mem_fn<void (wangle::ThreadPoolExecutor::)(std::shared_ptrwangle::ThreadPoolExecutor::Thread)> (wangle::ThreadPoolExecutor, std::shared_ptrwangle::ThreadPoolExecutor::Thread)> >(folly::detail::function::Data&) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x566a5f)
#30 0x562752540854 in folly::detail::function::FunctionTraits<void ()>::operator()() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55c854)
#31 0x56275253fc85 in void std::_Bind_simple<folly::Function<void ()> ()>::_M_invoke<>(std::_Index_tuple<>) (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55bc85)
#32 0x56275253f40d in std::_Bind_simple<folly::Function<void ()> ()>::operator()() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55b40d)
#33 0x56275253ebdf in std::thread::_State_impl<std::_Bind_simple<folly::Function<void ()> ()> >::_M_run() (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x55abdf)
#34 0x5627525dc57e in execute_native_thread_routine (/home/abhinav/ws/vds/t.t/hlsmpdprocessor/cmake-build-debug/videoproc+0x5f857e)
#35 0x7fd61b9286c9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76c9)
#36 0x7fd61b44b0ae in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x1080ae)

@afrind
Copy link
Contributor

afrind commented Jan 4, 2017

There are no proxygen frames in this stack. What makes you think it is a proxygen issue?

@abhiguru
Copy link
Author

abhiguru commented Jan 4, 2017

Will post it to Folly* sorry about that. I just build Proxygen not the FB libs separate. *Actually, it seems to be an issue with ASAN

@abhiguru abhiguru closed this as completed Jan 4, 2017
@signifox
Copy link

signifox commented Sep 18, 2017

@abhiguru
Hi, guys,
I have encounter the same problem when i use fbthrift.
I wonder how you solve this problem.

==131382==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7f9c58bd8488 at pc 0x571e1d bp 0x7f9c58bd8400 sp 0x7f9c58bd83f8
READ of size 8 at 0x7f9c58bd8488 thread T166 (worker-pri3-40)
#0 0x571e1c in folly::fbstring_core::size() const cpp3rdlib/folly/include/folly/FBString.h:666
#1 0x571e1c in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::size() const cpp3rdlib/folly/include/folly/FBString.h:1210
#2 0x571e1c in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::append(char const*, unsigned long) cpp3rdlib/folly/include/folly/FBS
tring.h:1313
#3 0x571e1c in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::append(char const*) cpp3rdlib/folly/include/folly/FBString.h:1337
#4 0x571e1c in folly::basic_fbstring<char, std::char_traits, std::allocator, folly::fbstring_core >::operator+=(char const*) cpp3rdlib/folly/include/folly/FBString.h:127
......

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

No branches or pull requests

3 participants