ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It's likely that you're corrupting your memory. See here: https://stackoverflow.com/questions/2987207/why-do-i-get-a-c-malloc-assertion-failure
When running standalone you may be getting luck that the memory being corupted is less critical. As linked I suggest you use valgrind and make a minimal example to isolate your problem.