Ticket #9308 (assigned Bugs)

Opened 6 months ago

Last modified 2 months ago

future::async fails with terminate called throwing an exception when called with a lambda - clang-darwin-asan11

Reported by: viboes Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description (last modified by viboes) (diff)

rev 86424

Test output: marshall-mac - thread - ex_lambda_future / clang-darwin-asan11
Rev 86424 / Fri, 25 Oct 2013 05:14:04 +0000
Compile [2013-10-25 12:23:46 UTC]: succeed

"/Volumes/TwoTB/LLVM/build/llvm-cmake-nodebug/bin/clang++" -x c++ -std=c++11 -stdlib=libc++ -I /Users/mclow/Projects/LLVM/libcxx/include -fsanitize=address -O0 -g -Wextra -Wno-long-long -Wunused-function -pedantic -O0 -fno-inline -Wall -pedantic -g -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED -DBOOST_THREAD_USE_DLL=1 -I".." -c -o "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/test/ex_lambda_future.test/clang-darwin-asan11/debug/threading-multi/lambda_future.o" "../libs/thread/test/../example/lambda_future.cpp"


Link [2013-10-25 12:23:46 UTC]: succeed

"/Volumes/TwoTB/LLVM/build/llvm-cmake-nodebug/bin/clang++"   -o "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/test/ex_lambda_future.test/clang-darwin-asan11/debug/threading-multi/ex_lambda_future" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/test/ex_lambda_future.test/clang-darwin-asan11/debug/threading-multi/lambda_future.o" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/chrono/build/clang-darwin-asan11/debug/threading-multi/libboost_chrono.dylib" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/build/clang-darwin-asan11/debug/threading-multi/libboost_thread.dylib" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/system/build/clang-darwin-asan11/debug/threading-multi/libboost_system.dylib"    -g -stdlib=libc++ -fsanitize=address


Run [2013-10-25 12:23:46 UTC]: fail

0x7fff78e0a180 - ../libs/thread/test/../example/lambda_future.cpp[25] <MAIN
0x7fff78e0a180 - ../libs/thread/test/../example/lambda_future.cpp[32] f1 123
libc++abi.dylib: terminate called throwing an exception



Change History

comment:1 Changed 6 months ago by viboes

  • Owner changed from anthonyw to viboes
  • Status changed from new to assigned
  • Description modified (diff)

comment:2 Changed 6 months ago by marshall

If you need any help from me reproducing this or testing a fix, don't hesitate to ask.

comment:3 Changed 5 months ago by viboes

  • Version changed from Boost 1.54.0 to Boost Development Trunk

comment:4 Changed 3 months ago by viboes

  • Milestone changed from To Be Determined to Boost 1.56.0

Thanks Marshall. I have reached to install the sanitaizer.

This change-set improves the situation for but restrict the use of the variadic versions. It works for all the compiler for which BOOST_NO_CXX11_DECLTYPE_N3276 is defined.

comment:5 Changed 2 months ago by viboes

  • Milestone changed from Boost 1.56.0 to To Be Determined

Add a comment

Modify Ticket

Change Properties
<Author field>
as assigned

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.