Python3.8 threading module segmentation fault

Hi,
I am using Jetson Xavier as a self-hosted runner for the git-hub actions. The repository has a has a python3.8 ROS package that imports the threading module. I get segmentation fault quite often that is attributed to threading module (see the error logs below). Does anyone has faced this issue before?
Thanks.
Naveen

Fatal Python error: Segmentation fault

Thread 0x0000007f72cca1f0 (most recent call first):
  File "/usr/lib/python3.8/threading.py", line 302 in wait
  File "/opt/ros/noetic/lib/python3.8/site-packages/rospy/impl/tcpros_pubsub.py", line 429 in _run
  File "/usr/lib/python3.8/threading.py", line 870 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x0000007f75c371f0 (most recent call first):
  File "/usr/lib/python3.8/socket.py", line 292 in accept
  File "/opt/ros/noetic/lib/python3.8/site-packages/rospy/impl/tcpros_base.py", line 161 in run
  File "/usr/lib/python3.8/threading.py", line 870 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x0000007f704c91f0 (most recent call first):
  File "/usr/lib/python3.8/threading.py", line 306 in wait
  File "/opt/ros/noetic/lib/python3.8/site-packages/rospy/impl/registration.py", line 298 in run
  File "/opt/ros/noetic/lib/python3.8/site-packages/rospy/impl/registration.py", line 276 in start
  File "/usr/lib/python3.8/threading.py", line 870 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x0000007f6dcc81f0 (most recent call first):
  File "/usr/lib/python3.8/selectors.py", line 415 in select
  File "/usr/lib/python3.8/socketserver.py", line 232 in serve_forever
  File "/opt/ros/noetic/lib/python3.8/site-packages/rosgraph/xmlrpc.py", line 321 in _run
  File "/opt/ros/noetic/lib/python3.8/site-packages/rosgraph/xmlrpc.py", line 249 in run

Thread 0x0000007f6b4c71f0 (most recent call first):
  File "/usr/lib/python3.8/selectors.py", line 415 in select
  File "/usr/lib/python3.8/socketserver.py", line 232 in serve_forever
  File "/opt/ros/noetic/lib/python3.8/site-packages/rosgraph/xmlrpc.py", line 321 in _run
  File "/opt/ros/noetic/lib/python3.8/site-packages/rosgraph/xmlrpc.py", line 249 in run
  File "/opt/ros/noetic/lib/python3.8/site-packages/roslaunch/server.py", line 425 in run

Thread 0x0000007f68cc61f0 (most recent call first):
  File "/opt/ros/noetic/lib/python3.8/site-packages/roslaunch/pmon.py", line 626 in _run
  File "/opt/ros/noetic/lib/python3.8/site-packages/roslaunch/pmon.py", line 532 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Hi,

Segmentation fault is usually caused by invalid memory access.
Please try the same code on other platforms or outside of the ROS.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.