[ros-users] Large Messages generate segmentation fault

Troy Straszheim straszheim at willowgarage.com
Thu Sep 15 12:04:11 UTC 2011


On Thu, Sep 15, 2011 at 12:54 PM, Sebastian Schneider
<s.schneider at 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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110915/a7e9e7c9/attachment-0004.html>


More information about the ros-users mailing list