Boost C++ Libraries: Ticket #10669: Assertion failed in broadcast with BOOST_MPI_HOMOGENEOUS defined https://svn.boost.org/trac10/ticket/10669 <p> When running a program that does a very simple broadcast of a map&lt;int, int&gt; from the root proc (0) to another proc (1), I get this error: </p> <pre class="wiki">Assertion failed: (position+l&lt;=static_cast&lt;int&gt;(buffer_.size())), function load_impl, file /Users/sbateman/tmp/boost_mpi_test/boost_1_56_0/boost/mpi/detail/binary_buffer_iprimitive.hpp, line 110. </pre><p> This only happens when I compile Boost with BOOST_MPI_HOMOGENEOUS defined (i.e., uncommented) in boost/mpi/config.hpp. If I leave that line commented out, the program completes successfully. </p> <p> I've attached a source file (test.cpp) that reproduces this error. I tested this on a Mac system with OS X 10.9.5 and compiler version: </p> <pre class="wiki">Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 </pre><p> and also on a Linux system with compiler version: </p> <pre class="wiki">gcc version 4.8.2 20131016 (Cray Inc.) (GCC) Target: x86_64-suse-linux </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10669 Trac 1.4.3 sam.bateman@… Thu, 16 Oct 2014 16:35:27 GMT attachment set https://svn.boost.org/trac10/ticket/10669 https://svn.boost.org/trac10/ticket/10669 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> Program to demonstrate the bug </p> Ticket