Opened 9 years ago

Last modified 5 years ago

#9307 reopened Bugs

future::fallback_to assert with ERRORRRRR boost: mutex lock failed in pthread_mutex_lock: Invalid argument

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

Description (last modified by viboes)

rev 86424

Test output: marshall-mac - thread - ex_future_fallback_to_lib / clang-darwin-asan
Rev 86424 / Fri, 25 Oct 2013 05:14:04 +0000
Compile [2013-10-25 12:22:41 UTC]: succeed


"/Volumes/TwoTB/LLVM/build/llvm-cmake-nodebug/bin/clang++" -x c++ -fsanitize=address -O0 -g -Wextra -Wno-long-long -Wunused-function -pedantic -O0 -fno-inline -Wall -pedantic -g -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED -DBOOST_THREAD_USE_LIB=1 -I".." -c -o "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/test/ex_future_fallback_to_lib.test/clang-darwin-asan/debug/threading-multi/future_fallback_to.o" "../libs/thread/test/../example/future_fallback_to.cpp"

            

Link [2013-10-25 12:22:41 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_future_fallback_to_lib.test/clang-darwin-asan/debug/threading-multi/ex_future_fallback_to_lib" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/test/ex_future_fallback_to_lib.test/clang-darwin-asan/debug/threading-multi/future_fallback_to.o" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/test/ex_future_fallback_to_lib.test/clang-darwin-asan/debug/threading-multi/tss_null.o" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/chrono/build/clang-darwin-asan/debug/link-static/threading-multi/libboost_chrono.a" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/thread/build/clang-darwin-asan/debug/link-static/threading-multi/libboost_thread.a" "/Volumes/TwoTB/boost/regression/trunk/results/boost/bin.v2/libs/system/build/clang-darwin-asan/debug/link-static/threading-multi/libboost_system.a"    -g -fsanitize=address

            

Run [2013-10-25 12:22:41 UTC]: fail


0x7fff78e0a180 - ../libs/thread/test/../example/future_fallback_to.cpp[32] <MAIN
0x10beab000 - ../libs/thread/test/../example/future_fallback_to.cpp[26] P1
0x10beac000 - ../libs/thread/test/../example/future_fallback_to.cpp[20] P1
0x7fff78e0a180 - ../libs/thread/test/../example/future_fallback_to.cpp[60] ERRORRRRR boost: mutex lock failed in pthread_mutex_lock: Invalid argument

EXIT STATUS: 1
            


Change History (9)

comment:1 by viboes, 9 years ago

Description: modified (diff)
Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by viboes, 9 years ago

Version: Boost 1.54.0Boost Development Trunk

comment:3 by viboes, 9 years ago

Milestone: To Be DeterminedBoost 1.56.0

This change-set https://github.com/boostorg/thread/commit/cb845f19e4a975fc95e8b10c096280085d24eb03 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:4 by viboes, 9 years ago

Milestone: Boost 1.56.0To Be Determined

comment:5 by viboes, 8 years ago

data race condition identified in #10478 Data race in boost/thread/future.hpp

comment:7 by viboes, 8 years ago

Resolution: fixed
Status: assignedclosed

comment:8 by logens dou <logens@…>, 5 years ago

the same error when i uses boost_1_58_0 and run on ubuntu,i cannot find the reasons,and use -std=gnu++11 library for some structure,please helps me for the bug some suggest

comment:9 by viboes, 5 years ago

Resolution: fixed
Status: closedreopened

Please, reopen the issue when you find it again.

Note: See TracTickets for help on using tickets.