[ros-users] Large Messages generate segmentation fault

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: [ros-users] Large Messages generate segmentation fault
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?

Sebastian