Skip to content

Instantly share code, notes, and snippets.

@JeroenDM
Last active August 8, 2020 09:13
Show Gist options
  • Save JeroenDM/c7205e3d2d739853942cc08fe08aaa1a to your computer and use it in GitHub Desktop.
Save JeroenDM/c7205e3d2d739853942cc08fe08aaa1a to your computer and use it in GitHub Desktop.
$ valgrind --leak-check=full ./devel/lib/moveit_planners_ompl/test_state_validity_checker
==8746== Memcheck, a memory error detector
==8746== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==8746== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==8746== Command: ./devel/lib/moveit_planners_ompl/test_state_validity_checker
==8746==
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from PandaValidityCheckerTests
[ RUN ] PandaValidityCheckerTests.createStateValidityChecker
ros.moveit_core.robot_model: Loading robot model 'panda'...
ros.moveit_planners_ompl: Planning context with name panda_arm is ready (but not configured).
[ OK ] PandaValidityCheckerTests.createStateValidityChecker (3978 ms)
[ RUN ] PandaValidityCheckerTests.testJointLimits
ros.moveit_core.robot_model: Loading robot model 'panda'...
ros.moveit_planners_ompl: Planning context with name panda_arm is ready (but not configured).
ros.moveit_planners_ompl: ( 0, -0.785, 0, -2.356, 0, 1.571, 0.785, )
ros.moveit_planners_ompl: ( 1.79769e+308, -0.785, 0, -2.356, 0, 1.571, 0.785, )
ros.moveit_planners_ompl.state_validity_checker: State outside bounds
[ OK ] PandaValidityCheckerTests.testJointLimits (872 ms)
[ RUN ] PandaValidityCheckerTests.testPathConstraints
ros.moveit_core.robot_model: Loading robot model 'panda'...
ros.moveit_planners_ompl: Planning context with name panda_arm is ready (but not configured).
==8746== Jump to the invalid address stated on the next line
==8746== at 0x0: ???
==8746== by 0xBFAE4A9: kinematic_constraints::PositionConstraint::configure(moveit_msgs::PositionConstraint_<std::allocator<void> > const&, moveit::core::Transforms const&) (kinematic_constraint.cpp:327)
==8746== by 0xBFB6D13: kinematic_constraints::KinematicConstraintSet::add(std::vector<moveit_msgs::PositionConstraint_<std::allocator<void> >, std::allocator<moveit_msgs::PositionConstraint_<std::allocator<void> > > > const&, moveit::core::Transforms const&) (kinematic_constraint.cpp:1095)
==8746== by 0xBFB7182: kinematic_constraints::KinematicConstraintSet::add(moveit_msgs::Constraints_<std::allocator<void> > const&, moveit::core::Transforms const&) (kinematic_constraint.cpp:1139)
==8746== by 0x429786: PandaValidityCheckerTests_testPathConstraints_Test::TestBody() (test_state_validity_checker.cpp:265)
==8746== by 0x4ECEE8D: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2402)
==8746== by 0x4EB84CA: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2438)
==8746== by 0x4E9F075: testing::Test::Run() (gtest.cc:2474)
==8746== by 0x4E9FDA2: testing::TestInfo::Run() (gtest.cc:2656)
==8746== by 0x4EA047B: testing::TestCase::Run() (gtest.cc:2776)
==8746== by 0x4EA7C60: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4651)
==8746== by 0x4ED28ED: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2402)
==8746== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==8746==
==8746==
==8746== Process terminating with default action of signal 11 (SIGSEGV)
==8746== Bad permissions for mapped region at address 0x0
==8746== at 0x0: ???
==8746== by 0xBFAE4A9: kinematic_constraints::PositionConstraint::configure(moveit_msgs::PositionConstraint_<std::allocator<void> > const&, moveit::core::Transforms const&) (kinematic_constraint.cpp:327)
==8746== by 0xBFB6D13: kinematic_constraints::KinematicConstraintSet::add(std::vector<moveit_msgs::PositionConstraint_<std::allocator<void> >, std::allocator<moveit_msgs::PositionConstraint_<std::allocator<void> > > > const&, moveit::core::Transforms const&) (kinematic_constraint.cpp:1095)
==8746== by 0xBFB7182: kinematic_constraints::KinematicConstraintSet::add(moveit_msgs::Constraints_<std::allocator<void> > const&, moveit::core::Transforms const&) (kinematic_constraint.cpp:1139)
==8746== by 0x429786: PandaValidityCheckerTests_testPathConstraints_Test::TestBody() (test_state_validity_checker.cpp:265)
==8746== by 0x4ECEE8D: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2402)
==8746== by 0x4EB84CA: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2438)
==8746== by 0x4E9F075: testing::Test::Run() (gtest.cc:2474)
==8746== by 0x4E9FDA2: testing::TestInfo::Run() (gtest.cc:2656)
==8746== by 0x4EA047B: testing::TestCase::Run() (gtest.cc:2776)
==8746== by 0x4EA7C60: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4651)
==8746== by 0x4ED28ED: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2402)
==8746==
==8746== HEAP SUMMARY:
==8746== in use at exit: 9,371,325 bytes in 8,334 blocks
==8746== total heap usage: 75,065 allocs, 66,731 frees, 53,153,465 bytes allocated
==8746==
==8746== LEAK SUMMARY:
==8746== definitely lost: 0 bytes in 0 blocks
==8746== indirectly lost: 0 bytes in 0 blocks
==8746== possibly lost: 0 bytes in 0 blocks
==8746== still reachable: 9,371,325 bytes in 8,334 blocks
==8746== suppressed: 0 bytes in 0 blocks
==8746== Reachable blocks (those to which a pointer was found) are not shown.
==8746== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==8746==
==8746== For counts of detected and suppressed errors, rerun with: -v
==8746== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment