[Boost-bugs] [Boost C++ Libraries] #12150: posix_recursive_mutex constructor never called, fails to init mutex

Subject: [Boost-bugs] [Boost C++ Libraries] #12150: posix_recursive_mutex constructor never called, fails to init mutex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-22 18:26:39


#12150: posix_recursive_mutex constructor never called, fails to init mutex
------------------------------+--------------------------
 Reporter: adrian.cheater@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.60.0 | Severity: Showstopper
 Keywords: |
------------------------------+--------------------------
 I'm trying to get a shared memory system working on OSX, as far as I can
 tell, it's calling posix_recursive_mutex::lock() without initalizing the
 mutex, which happens in the constructor. A breakpoint on line 78 of
 include/boost/interprocess/sync/posix/recursive_mutex.hpp never gets hit.

 Here is the output from my compiler attempt:
 {{{
 g++ -v -I/usr/local/Cellar/boost/1.60.0/include -O0 -g -std=c++11 main.cpp
 Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
 Target: x86_64-apple-darwin14.0.0
 Thread model: posix
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
 -cc1 -triple x86_64-apple-macosx10.10.0 -emit-obj -mrelax-all -disable-
 free -disable-llvm-verifier -main-file-name main.cpp -mrelocation-model
 pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-
 cpu core2 -target-linker-version 242.2 -v -gdwarf-2 -dwarf-column-info
 -resource-dir
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0
 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
 -I /usr/local/Cellar/boost/1.60.0/include -stdlib=libc++ -O0 -std=c++11
 -fdeprecated-macro -fdebug-compilation-dir /Users/CPX-
 Hackintosh01/src/ruby/shm_test -ferror-limit 19 -fmessage-length 270
 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.10.0
 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fmax-
 type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o
 /var/folders/96/hl850bv57w39vhdzqy2nykf00000gn/T/main-43ba41.o -x c++
 main.cpp
 clang -cc1 version 6.1.0 based upon LLVM 3.6.0svn default target x86_64
 -apple-darwin14.0.0
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/v1"
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/local/include"
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/Library/Frameworks"
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/local/Cellar/boost/1.60.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks
 (framework directory)
 End of search list.
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
 -demangle -dynamic -arch x86_64 -macosx_version_min 10.10.0 -syslibroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
 -o a.out /var/folders/96/hl850bv57w39vhdzqy2nykf00000gn/T/main-43ba41.o
 -lc++ -lSystem
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/lib/darwin/libclang_rt.osx.a
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil"
 -o a.out.dSYM a.out
 }}}

 Any insight would be appreciated.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12150>
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:20 UTC