Skip to content

Instantly share code, notes, and snippets.

@yashi
Last active January 20, 2023 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashi/8ddd3efa283202eecf4ad4d31baf89a4 to your computer and use it in GitHub Desktop.
Save yashi/8ddd3efa283202eecf4ad4d31baf89a4 to your computer and use it in GitHub Desktop.
$ gdb -p $(pidof rviz2)
GNU gdb (Debian 12.1-4+b1) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 3680626
[New LWP 3680696]
[New LWP 3680697]
[New LWP 3680699]
[New LWP 3680700]
[New LWP 3680701]
[New LWP 3680702]
[New LWP 3680703]
[New LWP 3680704]
[New LWP 3680705]
[New LWP 3680706]
[New LWP 3680713]
[New LWP 3680717]
[New LWP 3680718]
[New LWP 3680721]
[New LWP 3680722]
[New LWP 3680725]
[New LWP 3680726]
[New LWP 3680727]
[New LWP 3680728]
[New LWP 3680729]
[New LWP 3680731]
[New LWP 3680732]
[New LWP 3680734]
[New LWP 3680735]
[New LWP 3680765]
[New LWP 3680789]
[New LWP 3680790]
[New LWP 3680792]
[New LWP 3680793]
[New LWP 3680794]
[New LWP 3680795]
[New LWP 3680796]
[New LWP 3680797]
[New LWP 3680802]
[New LWP 3680803]
[New LWP 3680804]
[New LWP 3680805]
[New LWP 3680806]
[New LWP 3680807]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f6e72f1b0af in __GI___poll (fds=0x5619cea6b160, nfds=3, timeout=25) at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
(gdb) c
Continuing.
Thread 29 "rviz2" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f6de11ff6c0 (LWP 3680792)]
0x00007f6e3010a652 in std::__shared_ptr<moveit::core::RobotModel const, (__gnu_cxx::_Lock_policy)2>::operator= (this=0x7f6dcc233bc0) at /usr/include/c++/12/bits/shared_ptr_base.h:1523
1523 __shared_ptr& operator=(const __shared_ptr&) noexcept = default;
(gdb) bt
#0 0x00007f6e3010a652 in std::__shared_ptr<moveit::core::RobotModel const, (__gnu_cxx::_Lock_policy)2>::operator= (this=0x7f6dcc233bc0) at /usr/include/c++/12/bits/shared_ptr_base.h:1523
#1 0x00007f6e3010a6a1 in std::shared_ptr<moveit::core::RobotModel const>::operator= (this=0x7f6dcc233bc0) at /usr/include/c++/12/bits/shared_ptr.h:414
#2 0x00007f6de29cceeb in moveit::core::RobotState::RobotState (this=0x7f6dcc233bc0, other=...) at /home/yashi/work/yoshida/moveit-ws/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:81
#3 0x00007f6de3624208 in std::_Construct<moveit::core::RobotState, moveit::core::RobotState const&> (__p=0x7f6dcc233bc0) at /usr/include/c++/12/bits/stl_construct.h:119
#4 0x00007f6de361e7c2 in std::allocator_traits<std::allocator<void> >::construct<moveit::core::RobotState, moveit::core::RobotState const&> (__p=0x7f6dcc233bc0) at /usr/include/c++/12/bits/alloc_traits.h:635
#5 0x00007f6de3616a23 in std::_Sp_counted_ptr_inplace<moveit::core::RobotState, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<moveit::core::RobotState const&> (this=0x7f6dcc233bb0, __a=...)
at /usr/include/c++/12/bits/shared_ptr_base.h:604
#6 0x00007f6de360c774 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<moveit::core::RobotState, std::allocator<void>, moveit::core::RobotState const&> (this=0x7f6de11fcd58, __p=@0x7f6de11fcd50: 0x0, __a=...)
at /usr/include/c++/12/bits/shared_ptr_base.h:971
#7 0x00007f6de35fe558 in std::__shared_ptr<moveit::core::RobotState, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>, moveit::core::RobotState const&> (this=0x7f6de11fcd50, __tag=...)
at /usr/include/c++/12/bits/shared_ptr_base.h:1712
#8 0x00007f6de35f0735 in std::shared_ptr<moveit::core::RobotState>::shared_ptr<std::allocator<void>, moveit::core::RobotState const&> (this=0x7f6de11fcd50, __tag=...) at /usr/include/c++/12/bits/shared_ptr.h:464
#9 0x00007f6de35e33ef in std::make_shared<moveit::core::RobotState, moveit::core::RobotState const&> () at /usr/include/c++/12/bits/shared_ptr.h:1010
#10 0x00007f6e30058db3 in robot_trajectory::RobotTrajectory::setRobotTrajectoryMsg (this=0x7f6de11fd100, reference_state=..., trajectory=...)
at /home/yashi/work/yoshida/moveit-ws/src/moveit2/moveit_core/robot_trajectory/src/robot_trajectory.cpp:421
#11 0x00007f6de3dbf452 in moveit_rviz_plugin::MotionPlanningFrame::computeCartesianPlan (this=0x5619cfce3690) at /usr/include/c++/12/bits/shared_ptr_base.h:1665
#12 0x00007f6de3dc0368 in moveit_rviz_plugin::MotionPlanningFrame::computePlanButtonClicked (this=0x5619cfce3690)
at /home/yashi/work/yoshida/moveit-ws/src/moveit2/moveit_ros/visualization/motion_planning_rviz_plugin/src/motion_planning_frame_planning.cpp:186
#13 0x00007f6e51fb102d in std::function<void ()>::operator()() const (this=0x7f6de11fdb40) at /usr/include/c++/12/bits/std_function.h:591
#14 moveit::tools::BackgroundProcessing::processingThread (this=0x5619d0187560) at /home/yashi/work/yoshida/moveit-ws/src/moveit2/moveit_ros/visualization/planning_scene_rviz_plugin/src/background_processing.cpp:85
#15 0x00007f6e72cd44a3 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#16 0x00007f6e72ea7fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#17 0x00007f6e72f2866c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb)
(gdb) f 10
#10 0x00007f6e30058db3 in robot_trajectory::RobotTrajectory::setRobotTrajectoryMsg (this=0x7f6de11fd100, reference_state=..., trajectory=...)
at /home/yashi/work/yoshida/moveit-ws/src/moveit2/moveit_core/robot_trajectory/src/robot_trajectory.cpp:421
421 auto st = std::make_shared<moveit::core::RobotState>(copy);
(gdb) p reference_state
$2 = (const moveit::core::RobotState &) <error reading variable: Cannot access memory at address 0x0>
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment