On Thu, Sep 15, 2011 at 12:54 PM, Sebastian Schneider <s.schneider@unibw.de> wrote:
Hello,

I'm currently measuring the performance of ROS. Therefore I generated a
test-message with the following variable:

uint8[10000000] var0

Now when I send this message via P/S the subscribing node crashes due to
a segmentation fault:

Program received signal SIGSEGV, Segmentation fault.
boost::detail::shared_count::shared_count<eval::TestMessage_<std::allocator<void>
>*, boost::detail::sp_ms_deleter<eval::TestMessage_<std::allocator<void>
> > > (
   this=0x7fffffffc888, p=0x0) at
/usr/include/boost/smart_ptr/detail/shared_count.hpp:160
160                 pi_ = new sp_counted_impl_pd< P, D >( p );

If I make the array only 1000000 bytes large, everything works. If I
make it even bigger, I get the same segmentation fault.

Any ideas?


A stack trace would help...