Subject: [Boost-bugs] [Boost C++ Libraries] #9466: shared_ptr fails with EINVAL on AIX 7.1 when compiled with atomic
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-03 14:28:28
#9466: shared_ptr fails with EINVAL on AIX 7.1 when compiled with atomic
------------------------------+-----------------------
Reporter: pat <pat@â¦> | Owner: pdimov
Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
------------------------------+-----------------------
Boost shared_ptr sometimes fails with EINVAL (22) when compiled with gcc
4.6.3 (65bits) on AIX 7.1. It appears that this failure only occurs when
atomic is activated as part of building the boost library (1.55).
I noticed on AIX the library "libboost_atomic" was req'd, while that was
not needed on other platforms such as rhel and ubuntu.
To solve the issue on AIX I specified -DBOOST_THREAD_DONT_USE_ATOMIC while
building the boost libs.
Inside details:
----------------
Line 73 at boost/boost/smart_ptr/detail/lwm_pthreads.hpp
BOOST_VERIFY( pthread_mutex_lock( &m_ ) == 0 );
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9466> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC