Boost logo

Boost Users :

Subject: [Boost-users] [interprocess] posix_recursive_mutex constructor never called, fails to init mutex
From: Adrian Cheater (adrian.cheater_at_[hidden])
Date: 2016-04-23 15:14:50

This was submitted as a bug (,
but I don't know that this is actually a boost bug, possibly a OSX or clang
issue, or maybe I'm just doing something silly, so I'm hoping someone here
can shed some light on the issue.

I'm trying to use boost's shared memory system to get data from another
application, but while it works fine on Ubuntu 15.10 with boost 1.58 and
1.60 on gcc, clang-3.6 and clang-3.7, it throws an exception when it
attempts to acquire the mutex lock on OSX because the mutex has not been
initialized. Placing a breakpoint in the constructor for the recursive_lock
never gets hit, and I'm not sure why.

Hopefully someone with more OSX experience can help me sort this out.
Thanks very much for your time.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at