mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
905 stars 994 forks source link

Error while plugin loading #1724

Open BurakHocaoglu opened 2 years ago

BurakHocaoglu commented 2 years ago

Issue details

Hello,

I'm using Mavros 1.13.0 Release to use camera plugin for gazebo-iris model of ArduCopter in Gazebo. When I roslaunch, Mavros directly fails without trying to connect to an FCU at all. I added gdb in node.launch to see where it fails and it shows that a segfault happens when loading plugins in mavros / mavros_extras. What might be the issue?

Thanks...

MAVROS version and platform

Mavros: 1.13.0 Release ROS: Kinetic Ubuntu: 16.04

Autopilot type and version

[ X ] ArduPilot [ ] PX4

Version: Copter 4.2.0 Release

Node logs

This is the output when I used gdb in launch prefix of node tag (launch-prefix="gdb -ex run --args"):

... logging to /home/burak/.ros/log/84a1aacc-a439-11ec-ade0-4074e0a985bc/roslaunch-burak-GL65-9SD-9738.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://burak-GL65-9SD:38225/

SUMMARY
========

CLEAR PARAMETERS
 * /mavros/

PARAMETERS
 * /mavros/cmd/use_comp_id_system_control: False
 * /mavros/conn/heartbeat_mav_type: ONBOARD_CONTROLLER
 * /mavros/conn/heartbeat_rate: 1.0
 * /mavros/conn/system_time_rate: 1.0
 * /mavros/conn/timeout: 10.0
 * /mavros/conn/timesync_rate: 10.0
 * /mavros/distance_sensor/rangefinder_pub/field_of_view: 0.0
 * /mavros/distance_sensor/rangefinder_pub/frame_id: lidar
 * /mavros/distance_sensor/rangefinder_pub/id: 0
 * /mavros/distance_sensor/rangefinder_pub/send_tf: False
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/x: 0.0
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/y: 0.0
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/z: -0.1
 * /mavros/distance_sensor/rangefinder_sub/id: 1
 * /mavros/distance_sensor/rangefinder_sub/orientation: PITCH_270
 * /mavros/distance_sensor/rangefinder_sub/subscriber: True
 * /mavros/fake_gps/eph: 2.0
 * /mavros/fake_gps/epv: 2.0
 * /mavros/fake_gps/fix_type: 3
 * /mavros/fake_gps/geo_origin/alt: 408.0
 * /mavros/fake_gps/geo_origin/lat: 47.3667
 * /mavros/fake_gps/geo_origin/lon: 8.55
 * /mavros/fake_gps/gps_id: 4
 * /mavros/fake_gps/gps_rate: 5.0
 * /mavros/fake_gps/horiz_accuracy: 0.5
 * /mavros/fake_gps/mocap_transform: False
 * /mavros/fake_gps/mocap_withcovariance: False
 * /mavros/fake_gps/satellites_visible: 6
 * /mavros/fake_gps/speed_accuracy: 0.0
 * /mavros/fake_gps/tf/child_frame_id: fix
 * /mavros/fake_gps/tf/frame_id: map
 * /mavros/fake_gps/tf/listen: False
 * /mavros/fake_gps/tf/rate_limit: 10.0
 * /mavros/fake_gps/tf/send: False
 * /mavros/fake_gps/use_hil_gps: True
 * /mavros/fake_gps/use_mocap: True
 * /mavros/fake_gps/use_vision: False
 * /mavros/fake_gps/vert_accuracy: 0.5
 * /mavros/fcu_protocol: v2.0
 * /mavros/fcu_url: udp://127.0.0.1:1...
 * /mavros/gcs_url: 
 * /mavros/global_position/child_frame_id: base_link
 * /mavros/global_position/frame_id: map
 * /mavros/global_position/gps_uere: 1.0
 * /mavros/global_position/rot_covariance: 99999.0
 * /mavros/global_position/tf/child_frame_id: base_link
 * /mavros/global_position/tf/frame_id: map
 * /mavros/global_position/tf/global_frame_id: earth
 * /mavros/global_position/tf/send: False
 * /mavros/global_position/use_relative_alt: True
 * /mavros/image/frame_id: px4flow
 * /mavros/imu/angular_velocity_stdev: 0.0003490659 // 0...
 * /mavros/imu/frame_id: base_link
 * /mavros/imu/linear_acceleration_stdev: 0.0003
 * /mavros/imu/magnetic_stdev: 0.0
 * /mavros/imu/orientation_stdev: 1.0
 * /mavros/landing_target/camera/fov_x: 2.0071286398
 * /mavros/landing_target/camera/fov_y: 2.0071286398
 * /mavros/landing_target/image/height: 480
 * /mavros/landing_target/image/width: 640
 * /mavros/landing_target/land_target_type: VISION_FIDUCIAL
 * /mavros/landing_target/listen_lt: False
 * /mavros/landing_target/mav_frame: LOCAL_NED
 * /mavros/landing_target/target_size/x: 0.3
 * /mavros/landing_target/target_size/y: 0.3
 * /mavros/landing_target/tf/child_frame_id: camera_center
 * /mavros/landing_target/tf/frame_id: landing_target
 * /mavros/landing_target/tf/listen: False
 * /mavros/landing_target/tf/rate_limit: 10.0
 * /mavros/landing_target/tf/send: True
 * /mavros/local_position/frame_id: map
 * /mavros/local_position/tf/child_frame_id: base_link
 * /mavros/local_position/tf/frame_id: map
 * /mavros/local_position/tf/send: False
 * /mavros/local_position/tf/send_fcu: False
 * /mavros/mission/pull_after_gcs: True
 * /mavros/mission/use_mission_item_int: True
 * /mavros/mocap/use_pose: True
 * /mavros/mocap/use_tf: False
 * /mavros/odometry/estimator_type: 3
 * /mavros/odometry/frame_tf/desired_frame: ned
 * /mavros/plugin_blacklist: ['actuator_contro...
 * /mavros/plugin_whitelist: []
 * /mavros/px4flow/frame_id: px4flow
 * /mavros/px4flow/ranger_fov: 0.118682
 * /mavros/px4flow/ranger_max_range: 5.0
 * /mavros/px4flow/ranger_min_range: 0.3
 * /mavros/safety_area/p1/x: 1.0
 * /mavros/safety_area/p1/y: 1.0
 * /mavros/safety_area/p1/z: 1.0
 * /mavros/safety_area/p2/x: -1.0
 * /mavros/safety_area/p2/y: -1.0
 * /mavros/safety_area/p2/z: -1.0
 * /mavros/setpoint_accel/send_force: False
 * /mavros/setpoint_attitude/reverse_thrust: False
 * /mavros/setpoint_attitude/tf/child_frame_id: target_attitude
 * /mavros/setpoint_attitude/tf/frame_id: map
 * /mavros/setpoint_attitude/tf/listen: False
 * /mavros/setpoint_attitude/tf/rate_limit: 50.0
 * /mavros/setpoint_attitude/use_quaternion: False
 * /mavros/setpoint_position/mav_frame: LOCAL_NED
 * /mavros/setpoint_position/tf/child_frame_id: target_position
 * /mavros/setpoint_position/tf/frame_id: map
 * /mavros/setpoint_position/tf/listen: False
 * /mavros/setpoint_position/tf/rate_limit: 50.0
 * /mavros/setpoint_raw/thrust_scaling: 1.0
 * /mavros/setpoint_velocity/mav_frame: LOCAL_NED
 * /mavros/startup_px4_usb_quirk: False
 * /mavros/sys/disable_diag: False
 * /mavros/sys/min_voltage: 10.0
 * /mavros/target_component_id: 1
 * /mavros/target_system_id: 1
 * /mavros/tdr_radio/low_rssi: 40
 * /mavros/time/time_ref_source: fcu
 * /mavros/time/timesync_avg_alpha: 0.6
 * /mavros/time/timesync_mode: MAVLINK
 * /mavros/vibration/frame_id: base_link
 * /mavros/vision_pose/tf/child_frame_id: vision_estimate
 * /mavros/vision_pose/tf/frame_id: map
 * /mavros/vision_pose/tf/listen: False
 * /mavros/vision_pose/tf/rate_limit: 10.0
 * /mavros/vision_speed/listen_twist: True
 * /mavros/vision_speed/twist_cov: True
 * /mavros/wheel_odometry/child_frame_id: base_link
 * /mavros/wheel_odometry/count: 2
 * /mavros/wheel_odometry/frame_id: map
 * /mavros/wheel_odometry/send_raw: True
 * /mavros/wheel_odometry/send_twist: False
 * /mavros/wheel_odometry/tf/child_frame_id: base_link
 * /mavros/wheel_odometry/tf/frame_id: map
 * /mavros/wheel_odometry/tf/send: True
 * /mavros/wheel_odometry/use_rpm: False
 * /mavros/wheel_odometry/vel_error: 0.1
 * /mavros/wheel_odometry/wheel0/radius: 0.05
 * /mavros/wheel_odometry/wheel0/x: 0.0
 * /mavros/wheel_odometry/wheel0/y: -0.15
 * /mavros/wheel_odometry/wheel1/radius: 0.05
 * /mavros/wheel_odometry/wheel1/x: 0.0
 * /mavros/wheel_odometry/wheel1/y: 0.15
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /
    mavros (mavros/mavros_node)

auto-starting new master
process[master]: started with pid [9749]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 84a1aacc-a439-11ec-ade0-4074e0a985bc
process[rosout-1]: started with pid [9762]
started core service [/rosout]
process[mavros-2]: started with pid [9766]
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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:
<http://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"...
Reading symbols from /home/burak/damadama_ws/devel/lib/mavros/mavros_node...(no debugging symbols found)...done.
Starting program: /home/burak/damadama_ws/devel/lib/mavros/mavros_node __name:=mavros __log:=/home/burak/.ros/log/84a1aacc-a439-11ec-ade0-4074e0a985bc/mavros-2.log
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Invalid argument]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[tcsetpgrp failed in terminal_inferior: Invalid argument]
[tcsetpgrp failed in terminal_inferior: Invalid argument]
[New Thread 0x7fffedfe4700 (LWP 9787)]
[New Thread 0x7fffed7e3700 (LWP 9788)]
[New Thread 0x7fffecfe2700 (LWP 9789)]
[New Thread 0x7fffe7fff700 (LWP 9794)]
[tcsetpgrp failed in terminal_inferior: Invalid argument]
[tcsetpgrp failed in terminal_inferior: Invalid argument]

Thread 1 "mavros_node" received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x2) at malloc.c:2958
2958    malloc.c: No such file or directory.
(gdb) bt
#0  __GI___libc_free (mem=0x2) at malloc.c:2958
#1  0x0000000000452414 in boost::filesystem::path::~path() ()
#2  0x000000000046a623 in pluginlib::ClassLoader<mavros::plugin::PluginBase>::getPackageFromPluginXMLFilePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#3  0x0000000000468422 in pluginlib::ClassLoader<mavros::plugin::PluginBase>::processSingleXMLPluginFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pluginlib::ClassDesc, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, pluginlib::ClassDesc> > >&) ()
#4  0x0000000000466257 in pluginlib::ClassLoader<mavros::plugin::PluginBase>::determineAvailableClasses(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) ()
#5  0x00007ffff7abdce9 in pluginlib::ClassLoader<mavros::plugin::PluginBase>::ClassLoader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) ()
   from /home/burak/damadama_ws/devel/.private/mavros/lib/libmavros.so
#6  0x00007ffff7aad5d9 in mavros::MavRos::MavRos() ()
   from /home/burak/damadama_ws/devel/.private/mavros/lib/libmavros.so
#7  0x00000000004502d7 in main ()
(gdb) q
A debugging session is active.

    Inferior 1 [process 9768] will be killed.

Quit anyway? (y or n) y
================================================================================REQUIRED process [mavros-2] has died!
process has finished cleanly
log file: /home/burak/.ros/log/84a1aacc-a439-11ec-ade0-4074e0a985bc/mavros-2*.log
Initiating shutdown!
================================================================================
[mavros-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

This is the output when I roslaunch with DEBUG level output in rosconsole configuration (ros and ros.roscpp.superdebug):

... logging to /home/burak/.ros/log/20a4bd3c-a44a-11ec-ade0-4074e0a985bc/roslaunch-burak-GL65-9SD-12796.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://burak-GL65-9SD:37437/

SUMMARY
========

CLEAR PARAMETERS
 * /mavros/

PARAMETERS
 * /mavros/cmd/use_comp_id_system_control: False
 * /mavros/conn/heartbeat_mav_type: ONBOARD_CONTROLLER
 * /mavros/conn/heartbeat_rate: 1.0
 * /mavros/conn/system_time_rate: 1.0
 * /mavros/conn/timeout: 10.0
 * /mavros/conn/timesync_rate: 10.0
 * /mavros/distance_sensor/rangefinder_pub/field_of_view: 0.0
 * /mavros/distance_sensor/rangefinder_pub/frame_id: lidar
 * /mavros/distance_sensor/rangefinder_pub/id: 0
 * /mavros/distance_sensor/rangefinder_pub/send_tf: False
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/x: 0.0
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/y: 0.0
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/z: -0.1
 * /mavros/distance_sensor/rangefinder_sub/id: 1
 * /mavros/distance_sensor/rangefinder_sub/orientation: PITCH_270
 * /mavros/distance_sensor/rangefinder_sub/subscriber: True
 * /mavros/fake_gps/eph: 2.0
 * /mavros/fake_gps/epv: 2.0
 * /mavros/fake_gps/fix_type: 3
 * /mavros/fake_gps/geo_origin/alt: 408.0
 * /mavros/fake_gps/geo_origin/lat: 47.3667
 * /mavros/fake_gps/geo_origin/lon: 8.55
 * /mavros/fake_gps/gps_id: 4
 * /mavros/fake_gps/gps_rate: 5.0
 * /mavros/fake_gps/horiz_accuracy: 0.5
 * /mavros/fake_gps/mocap_transform: False
 * /mavros/fake_gps/mocap_withcovariance: False
 * /mavros/fake_gps/satellites_visible: 6
 * /mavros/fake_gps/speed_accuracy: 0.0
 * /mavros/fake_gps/tf/child_frame_id: fix
 * /mavros/fake_gps/tf/frame_id: map
 * /mavros/fake_gps/tf/listen: False
 * /mavros/fake_gps/tf/rate_limit: 10.0
 * /mavros/fake_gps/tf/send: False
 * /mavros/fake_gps/use_hil_gps: True
 * /mavros/fake_gps/use_mocap: True
 * /mavros/fake_gps/use_vision: False
 * /mavros/fake_gps/vert_accuracy: 0.5
 * /mavros/fcu_protocol: v2.0
 * /mavros/fcu_url: udp://127.0.0.1:1...
 * /mavros/gcs_url: 
 * /mavros/global_position/child_frame_id: base_link
 * /mavros/global_position/frame_id: map
 * /mavros/global_position/gps_uere: 1.0
 * /mavros/global_position/rot_covariance: 99999.0
 * /mavros/global_position/tf/child_frame_id: base_link
 * /mavros/global_position/tf/frame_id: map
 * /mavros/global_position/tf/global_frame_id: earth
 * /mavros/global_position/tf/send: False
 * /mavros/global_position/use_relative_alt: True
 * /mavros/image/frame_id: px4flow
 * /mavros/imu/angular_velocity_stdev: 0.0003490659 // 0...
 * /mavros/imu/frame_id: base_link
 * /mavros/imu/linear_acceleration_stdev: 0.0003
 * /mavros/imu/magnetic_stdev: 0.0
 * /mavros/imu/orientation_stdev: 1.0
 * /mavros/landing_target/camera/fov_x: 2.0071286398
 * /mavros/landing_target/camera/fov_y: 2.0071286398
 * /mavros/landing_target/image/height: 480
 * /mavros/landing_target/image/width: 640
 * /mavros/landing_target/land_target_type: VISION_FIDUCIAL
 * /mavros/landing_target/listen_lt: False
 * /mavros/landing_target/mav_frame: LOCAL_NED
 * /mavros/landing_target/target_size/x: 0.3
 * /mavros/landing_target/target_size/y: 0.3
 * /mavros/landing_target/tf/child_frame_id: camera_center
 * /mavros/landing_target/tf/frame_id: landing_target
 * /mavros/landing_target/tf/listen: False
 * /mavros/landing_target/tf/rate_limit: 10.0
 * /mavros/landing_target/tf/send: True
 * /mavros/local_position/frame_id: map
 * /mavros/local_position/tf/child_frame_id: base_link
 * /mavros/local_position/tf/frame_id: map
 * /mavros/local_position/tf/send: False
 * /mavros/local_position/tf/send_fcu: False
 * /mavros/mission/pull_after_gcs: True
 * /mavros/mission/use_mission_item_int: True
 * /mavros/mocap/use_pose: True
 * /mavros/mocap/use_tf: False
 * /mavros/odometry/estimator_type: 3
 * /mavros/odometry/frame_tf/desired_frame: ned
 * /mavros/plugin_blacklist: ['actuator_contro...
 * /mavros/plugin_whitelist: []
 * /mavros/px4flow/frame_id: px4flow
 * /mavros/px4flow/ranger_fov: 0.118682
 * /mavros/px4flow/ranger_max_range: 5.0
 * /mavros/px4flow/ranger_min_range: 0.3
 * /mavros/safety_area/p1/x: 1.0
 * /mavros/safety_area/p1/y: 1.0
 * /mavros/safety_area/p1/z: 1.0
 * /mavros/safety_area/p2/x: -1.0
 * /mavros/safety_area/p2/y: -1.0
 * /mavros/safety_area/p2/z: -1.0
 * /mavros/setpoint_accel/send_force: False
 * /mavros/setpoint_attitude/reverse_thrust: False
 * /mavros/setpoint_attitude/tf/child_frame_id: target_attitude
 * /mavros/setpoint_attitude/tf/frame_id: map
 * /mavros/setpoint_attitude/tf/listen: False
 * /mavros/setpoint_attitude/tf/rate_limit: 50.0
 * /mavros/setpoint_attitude/use_quaternion: False
 * /mavros/setpoint_position/mav_frame: LOCAL_NED
 * /mavros/setpoint_position/tf/child_frame_id: target_position
 * /mavros/setpoint_position/tf/frame_id: map
 * /mavros/setpoint_position/tf/listen: False
 * /mavros/setpoint_position/tf/rate_limit: 50.0
 * /mavros/setpoint_raw/thrust_scaling: 1.0
 * /mavros/setpoint_velocity/mav_frame: LOCAL_NED
 * /mavros/startup_px4_usb_quirk: False
 * /mavros/sys/disable_diag: False
 * /mavros/sys/min_voltage: 10.0
 * /mavros/target_component_id: 1
 * /mavros/target_system_id: 0
 * /mavros/tdr_radio/low_rssi: 40
 * /mavros/time/time_ref_source: fcu
 * /mavros/time/timesync_avg_alpha: 0.6
 * /mavros/time/timesync_mode: MAVLINK
 * /mavros/vibration/frame_id: base_link
 * /mavros/vision_pose/tf/child_frame_id: vision_estimate
 * /mavros/vision_pose/tf/frame_id: map
 * /mavros/vision_pose/tf/listen: False
 * /mavros/vision_pose/tf/rate_limit: 10.0
 * /mavros/vision_speed/listen_twist: True
 * /mavros/vision_speed/twist_cov: True
 * /mavros/wheel_odometry/child_frame_id: base_link
 * /mavros/wheel_odometry/count: 2
 * /mavros/wheel_odometry/frame_id: map
 * /mavros/wheel_odometry/send_raw: True
 * /mavros/wheel_odometry/send_twist: False
 * /mavros/wheel_odometry/tf/child_frame_id: base_link
 * /mavros/wheel_odometry/tf/frame_id: map
 * /mavros/wheel_odometry/tf/send: True
 * /mavros/wheel_odometry/use_rpm: False
 * /mavros/wheel_odometry/vel_error: 0.1
 * /mavros/wheel_odometry/wheel0/radius: 0.05
 * /mavros/wheel_odometry/wheel0/x: 0.0
 * /mavros/wheel_odometry/wheel0/y: -0.15
 * /mavros/wheel_odometry/wheel1/radius: 0.05
 * /mavros/wheel_odometry/wheel1/x: 0.0
 * /mavros/wheel_odometry/wheel1/y: 0.15
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /
    mavros (mavros/mavros_node)

auto-starting new master
process[master]: started with pid [12806]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 20a4bd3c-a44a-11ec-ade0-4074e0a985bc
process[rosout-1]: started with pid [12819]
started core service [/rosout]
process[mavros-2]: started with pid [12837]
[DEBUG] [1647339883.133995666]: remap: __name => mavros
[DEBUG] [1647339883.134034563]: remap: __log => /home/burak/.ros/log/20a4bd3c-a44a-11ec-ade0-4074e0a985bc/mavros-2.log
[DEBUG] [1647339883.135008774]: Adding tcp socket [7] to pollset
[DEBUG] [1647339883.135114665]: UDPROS server listening on port [56053]
[DEBUG] [1647339883.136958312]: Started node [/mavros], pid [12837], bound on [burak-GL65-9SD], xmlrpc port [40569], tcpros port [59213], using [real] time
[DEBUG] [1647339883.137023596]: Publishing message on topic [/rosout] with sequence number [0]
[DEBUG] [1647339883.137873239]: Subscribed to parameter [/mavros/diagnostic_period]
[DEBUG] [1647339883.137923558]: Publishing message on topic [/rosout] with sequence number [1]
[DEBUG] [1647339883.137941643]: Publishing message on topic [/rosout] with sequence number [1]
[DEBUG] [1647339883.138354747]: XML-RPC call [getParam] returned an error (-1): [Parameter [/mavros/diagnostic_period] is not set]
[DEBUG] [1647339883.138369354]: Caching parameter [/mavros/diagnostic_period] with value type [0]
[DEBUG] [1647339883.138400937]: Publishing message on topic [/rosout] with sequence number [3]
[DEBUG] [1647339883.138422727]: Creating ClassLoader, base = mavros::plugin::PluginBase, address = 0x7ffc05ef6668
[DEBUG] [1647339883.138479723]: Publishing message on topic [/rosout] with sequence number [3]
[DEBUG] [1647339883.138499155]: Publishing message on topic [/rosout] with sequence number [3]
[DEBUG] [1647339883.138510937]: Publishing message on topic [/rosout] with sequence number [3]
[DEBUG] [1647339883.155594044]: Entering determineAvailableClasses()...
[DEBUG] [1647339883.155612238]: Processing xml file /home/burak/damadama_ws/src/mavros/mavros_extras/mavros_plugins.xml...
[DEBUG] [1647339883.155647355]: Publishing message on topic [/rosout] with sequence number [7]
[DEBUG] [1647339883.155667028]: Publishing message on topic [/rosout] with sequence number [7]
[DEBUG] [1647339883.155678073]: Publishing message on topic [/rosout] with sequence number [7]
[DEBUG] [1647339883.155688369]: Publishing message on topic [/rosout] with sequence number [7]
================================================================================REQUIRED process [mavros-2] has died!
process has died [pid 12837, exit code -11, cmd /home/burak/damadama_ws/devel/lib/mavros/mavros_node __name:=mavros __log:=/home/burak/.ros/log/20a4bd3c-a44a-11ec-ade0-4074e0a985bc/mavros-2.log].
log file: /home/burak/.ros/log/20a4bd3c-a44a-11ec-ade0-4074e0a985bc/mavros-2*.log
Initiating shutdown!
================================================================================
[mavros-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

Diagnostics

Can't run due to incomplete roslaunch.

Check ID

Can't run due to incomplete roslaunch.

vooon commented 2 years ago

Looks like double-free. While it's unclear where exactly.

Could you please try to build latest master?

BurakHocaoglu commented 2 years ago

I tried, but the result is the same.

I copied only the camera plugin of latest mavros_extras into an older version of mavros, where the camera plugin isn't included. Without it, the old version works fine, but with it, the same problem happens.

The problem might be with boost version, because someone faced a similar issue with a different set of ros packages. I have 2 versions (1.58 due to Ubuntu 16.04 and 1.66 that I added myself). What version do you use for your executions?

vooon commented 2 years ago

It's only apply to camera plugin? What if you blacklist it? (I want to locate troublesome plugin).

BurakHocaoglu commented 2 years ago

I don't think my issue is related to a specific plugin, but rather to the double-free you mentioned in the first place. I tried blacklisting everything in mavros and mavros_extras and nothing changed. The debug level output of ROS suggests that it does try to load the mavros_plugins.xml files in both packages, but none of the plugins actually make it to the loading stage.

I created and built a new workspace and instead of gdb, I used valgrind to check whether something different comes out.

The output with Valgrind:

... logging to /home/burak/.ros/log/9ecadfe6-a500-11ec-835b-4074e0a985bc/roslaunch-burak-GL65-9SD-18059.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://burak-GL65-9SD:40077/

SUMMARY
========

CLEAR PARAMETERS
 * /mavros/

PARAMETERS
 * /mavros/cmd/use_comp_id_system_control: False
 * /mavros/conn/heartbeat_mav_type: ONBOARD_CONTROLLER
 * /mavros/conn/heartbeat_rate: 1.0
 * /mavros/conn/system_time_rate: 1.0
 * /mavros/conn/timeout: 10.0
 * /mavros/conn/timesync_rate: 10.0
 * /mavros/distance_sensor/rangefinder_pub/field_of_view: 0.0
 * /mavros/distance_sensor/rangefinder_pub/frame_id: lidar
 * /mavros/distance_sensor/rangefinder_pub/id: 0
 * /mavros/distance_sensor/rangefinder_pub/send_tf: False
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/x: 0.0
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/y: 0.0
 * /mavros/distance_sensor/rangefinder_pub/sensor_position/z: -0.1
 * /mavros/distance_sensor/rangefinder_sub/id: 1
 * /mavros/distance_sensor/rangefinder_sub/orientation: PITCH_270
 * /mavros/distance_sensor/rangefinder_sub/subscriber: True
 * /mavros/fake_gps/eph: 2.0
 * /mavros/fake_gps/epv: 2.0
 * /mavros/fake_gps/fix_type: 3
 * /mavros/fake_gps/geo_origin/alt: 408.0
 * /mavros/fake_gps/geo_origin/lat: 47.3667
 * /mavros/fake_gps/geo_origin/lon: 8.55
 * /mavros/fake_gps/gps_id: 4
 * /mavros/fake_gps/gps_rate: 5.0
 * /mavros/fake_gps/horiz_accuracy: 0.5
 * /mavros/fake_gps/mocap_transform: False
 * /mavros/fake_gps/mocap_withcovariance: False
 * /mavros/fake_gps/satellites_visible: 6
 * /mavros/fake_gps/speed_accuracy: 0.0
 * /mavros/fake_gps/tf/child_frame_id: fix
 * /mavros/fake_gps/tf/frame_id: map
 * /mavros/fake_gps/tf/listen: False
 * /mavros/fake_gps/tf/rate_limit: 10.0
 * /mavros/fake_gps/tf/send: False
 * /mavros/fake_gps/use_hil_gps: True
 * /mavros/fake_gps/use_mocap: True
 * /mavros/fake_gps/use_vision: False
 * /mavros/fake_gps/vert_accuracy: 0.5
 * /mavros/fcu_protocol: v2.0
 * /mavros/fcu_url: udp://127.0.0.1:1...
 * /mavros/gcs_url: 
 * /mavros/global_position/child_frame_id: base_link
 * /mavros/global_position/frame_id: map
 * /mavros/global_position/gps_uere: 1.0
 * /mavros/global_position/rot_covariance: 99999.0
 * /mavros/global_position/tf/child_frame_id: base_link
 * /mavros/global_position/tf/frame_id: map
 * /mavros/global_position/tf/global_frame_id: earth
 * /mavros/global_position/tf/send: False
 * /mavros/global_position/use_relative_alt: True
 * /mavros/image/frame_id: px4flow
 * /mavros/imu/angular_velocity_stdev: 0.0003490659 // 0...
 * /mavros/imu/frame_id: base_link
 * /mavros/imu/linear_acceleration_stdev: 0.0003
 * /mavros/imu/magnetic_stdev: 0.0
 * /mavros/imu/orientation_stdev: 1.0
 * /mavros/landing_target/camera/fov_x: 2.0071286398
 * /mavros/landing_target/camera/fov_y: 2.0071286398
 * /mavros/landing_target/image/height: 480
 * /mavros/landing_target/image/width: 640
 * /mavros/landing_target/land_target_type: VISION_FIDUCIAL
 * /mavros/landing_target/listen_lt: False
 * /mavros/landing_target/mav_frame: LOCAL_NED
 * /mavros/landing_target/target_size/x: 0.3
 * /mavros/landing_target/target_size/y: 0.3
 * /mavros/landing_target/tf/child_frame_id: camera_center
 * /mavros/landing_target/tf/frame_id: landing_target
 * /mavros/landing_target/tf/listen: False
 * /mavros/landing_target/tf/rate_limit: 10.0
 * /mavros/landing_target/tf/send: True
 * /mavros/local_position/frame_id: map
 * /mavros/local_position/tf/child_frame_id: base_link
 * /mavros/local_position/tf/frame_id: map
 * /mavros/local_position/tf/send: False
 * /mavros/local_position/tf/send_fcu: False
 * /mavros/mission/pull_after_gcs: True
 * /mavros/mission/use_mission_item_int: True
 * /mavros/mocap/use_pose: True
 * /mavros/mocap/use_tf: False
 * /mavros/odometry/estimator_type: 3
 * /mavros/odometry/frame_tf/desired_frame: ned
 * /mavros/plugin_blacklist: ['actuator_contro...
 * /mavros/plugin_whitelist: []
 * /mavros/px4flow/frame_id: px4flow
 * /mavros/px4flow/ranger_fov: 0.118682
 * /mavros/px4flow/ranger_max_range: 5.0
 * /mavros/px4flow/ranger_min_range: 0.3
 * /mavros/safety_area/p1/x: 1.0
 * /mavros/safety_area/p1/y: 1.0
 * /mavros/safety_area/p1/z: 1.0
 * /mavros/safety_area/p2/x: -1.0
 * /mavros/safety_area/p2/y: -1.0
 * /mavros/safety_area/p2/z: -1.0
 * /mavros/setpoint_accel/send_force: False
 * /mavros/setpoint_attitude/reverse_thrust: False
 * /mavros/setpoint_attitude/tf/child_frame_id: target_attitude
 * /mavros/setpoint_attitude/tf/frame_id: map
 * /mavros/setpoint_attitude/tf/listen: False
 * /mavros/setpoint_attitude/tf/rate_limit: 50.0
 * /mavros/setpoint_attitude/use_quaternion: False
 * /mavros/setpoint_position/mav_frame: LOCAL_NED
 * /mavros/setpoint_position/tf/child_frame_id: target_position
 * /mavros/setpoint_position/tf/frame_id: map
 * /mavros/setpoint_position/tf/listen: False
 * /mavros/setpoint_position/tf/rate_limit: 50.0
 * /mavros/setpoint_raw/thrust_scaling: 1.0
 * /mavros/setpoint_velocity/mav_frame: LOCAL_NED
 * /mavros/startup_px4_usb_quirk: False
 * /mavros/sys/disable_diag: False
 * /mavros/sys/min_voltage: 10.0
 * /mavros/target_component_id: 1
 * /mavros/target_system_id: 1
 * /mavros/tdr_radio/low_rssi: 40
 * /mavros/time/time_ref_source: fcu
 * /mavros/time/timesync_avg_alpha: 0.6
 * /mavros/time/timesync_mode: MAVLINK
 * /mavros/vibration/frame_id: base_link
 * /mavros/vision_pose/tf/child_frame_id: vision_estimate
 * /mavros/vision_pose/tf/frame_id: map
 * /mavros/vision_pose/tf/listen: False
 * /mavros/vision_pose/tf/rate_limit: 10.0
 * /mavros/vision_speed/listen_twist: True
 * /mavros/vision_speed/twist_cov: True
 * /mavros/wheel_odometry/child_frame_id: base_link
 * /mavros/wheel_odometry/count: 2
 * /mavros/wheel_odometry/frame_id: map
 * /mavros/wheel_odometry/send_raw: True
 * /mavros/wheel_odometry/send_twist: False
 * /mavros/wheel_odometry/tf/child_frame_id: base_link
 * /mavros/wheel_odometry/tf/frame_id: map
 * /mavros/wheel_odometry/tf/send: True
 * /mavros/wheel_odometry/use_rpm: False
 * /mavros/wheel_odometry/vel_error: 0.1
 * /mavros/wheel_odometry/wheel0/radius: 0.05
 * /mavros/wheel_odometry/wheel0/x: 0.0
 * /mavros/wheel_odometry/wheel0/y: -0.15
 * /mavros/wheel_odometry/wheel1/radius: 0.05
 * /mavros/wheel_odometry/wheel1/x: 0.0
 * /mavros/wheel_odometry/wheel1/y: 0.15
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /
    mavros (mavros/mavros_node)

auto-starting new master
process[master]: started with pid [18071]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 9ecadfe6-a500-11ec-835b-4074e0a985bc
process[rosout-1]: started with pid [18084]
started core service [/rosout]
process[mavros-2]: started with pid [18102]
==18102== Memcheck, a memory error detector
==18102== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==18102== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==18102== Command: /home/burak/dd2_ws/devel/lib/mavros/mavros_node __name:=mavros __log:=/home/burak/.ros/log/9ecadfe6-a500-11ec-835b-4074e0a985bc/mavros-2.log
==18102== 
==18102== Syscall param stat(file_name) contains uninitialised byte(s)
==18102==    at 0x767DCE5: _xstat (xstat.c:35)
==18102==    by 0x62C9AD9: boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*) (in /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0)
==18102==    by 0x452679: boost::filesystem::exists(boost::filesystem::path const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x46A601: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getPackageFromPluginXMLFilePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x468411: pluginlib::ClassLoader<mavros::plugin::PluginBase>::processSingleXMLPluginFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pluginlib::ClassDesc, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, pluginlib::ClassDesc> > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x466246: pluginlib::ClassLoader<mavros::plugin::PluginBase>::determineAvailableClasses(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5112CE8: pluginlib::ClassLoader<mavros::plugin::PluginBase>::ClassLoader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x51025D8: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102== 
==18102== Conditional jump or move depends on uninitialised value(s)
==18102==    at 0x452626: boost::filesystem::exists(boost::filesystem::file_status) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x452685: boost::filesystem::exists(boost::filesystem::path const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x46A601: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getPackageFromPluginXMLFilePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x468411: pluginlib::ClassLoader<mavros::plugin::PluginBase>::processSingleXMLPluginFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pluginlib::ClassDesc, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, pluginlib::ClassDesc> > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x466246: pluginlib::ClassLoader<mavros::plugin::PluginBase>::determineAvailableClasses(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5112CE8: pluginlib::ClassLoader<mavros::plugin::PluginBase>::ClassLoader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x51025D8: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102== 
==18102== Conditional jump or move depends on uninitialised value(s)
==18102==    at 0x452637: boost::filesystem::exists(boost::filesystem::file_status) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x452685: boost::filesystem::exists(boost::filesystem::path const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x46A601: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getPackageFromPluginXMLFilePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x468411: pluginlib::ClassLoader<mavros::plugin::PluginBase>::processSingleXMLPluginFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pluginlib::ClassDesc, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, pluginlib::ClassDesc> > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x466246: pluginlib::ClassLoader<mavros::plugin::PluginBase>::determineAvailableClasses(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5112CE8: pluginlib::ClassLoader<mavros::plugin::PluginBase>::ClassLoader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x51025D8: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102== 
==18102== Invalid free() / delete / delete[] / realloc()
==18102==    at 0x4C2F24B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18102==    by 0x452403: boost::filesystem::path::~path() (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x46A612: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getPackageFromPluginXMLFilePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x468411: pluginlib::ClassLoader<mavros::plugin::PluginBase>::processSingleXMLPluginFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pluginlib::ClassDesc, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, pluginlib::ClassDesc> > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x466246: pluginlib::ClassLoader<mavros::plugin::PluginBase>::determineAvailableClasses(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5112CE8: pluginlib::ClassLoader<mavros::plugin::PluginBase>::ClassLoader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x51025D8: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==  Address 0x2 is not stack'd, malloc'd or (recently) free'd
==18102== 
[ INFO] [1647418265.731731658]: FCU URL: udp://127.0.0.1:14551@14555
[ INFO] [1647418265.965332361]: udp0: Bind address: 127.0.0.1:14551
[ INFO] [1647418265.969231337]: udp0: Remote address: 0.0.56.219:14550
[ INFO] [1647418266.024809611]: GCS bridge disabled
==18102== Syscall param stat(file_name) contains uninitialised byte(s)
==18102==    at 0x767DCE5: _xstat (xstat.c:35)
==18102==    by 0x62C9AD9: boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*) (in /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0)
==18102==    by 0x452679: boost::filesystem::exists(boost::filesystem::path const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x4653C0: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getClassLibraryPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x464292: pluginlib::ClassLoader<mavros::plugin::PluginBase>::loadLibraryForClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5116864: pluginlib::ClassLoader<mavros::plugin::PluginBase>::createInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5105F6F: mavros::MavRos::add_plugin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5103A8C: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102== 
==18102== Conditional jump or move depends on uninitialised value(s)
==18102==    at 0x452626: boost::filesystem::exists(boost::filesystem::file_status) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x452685: boost::filesystem::exists(boost::filesystem::path const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x4653C0: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getClassLibraryPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x464292: pluginlib::ClassLoader<mavros::plugin::PluginBase>::loadLibraryForClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5116864: pluginlib::ClassLoader<mavros::plugin::PluginBase>::createInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5105F6F: mavros::MavRos::add_plugin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5103A8C: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102== 
==18102== Conditional jump or move depends on uninitialised value(s)
==18102==    at 0x452637: boost::filesystem::exists(boost::filesystem::file_status) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x452685: boost::filesystem::exists(boost::filesystem::path const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x4653C0: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getClassLibraryPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x464292: pluginlib::ClassLoader<mavros::plugin::PluginBase>::loadLibraryForClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5116864: pluginlib::ClassLoader<mavros::plugin::PluginBase>::createInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5105F6F: mavros::MavRos::add_plugin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5103A8C: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102== 
==18102== Invalid free() / delete / delete[] / realloc()
==18102==    at 0x4C2F24B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==18102==    by 0x452403: boost::filesystem::path::~path() (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x4653D1: pluginlib::ClassLoader<mavros::plugin::PluginBase>::getClassLibraryPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x464292: pluginlib::ClassLoader<mavros::plugin::PluginBase>::loadLibraryForClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==    by 0x5116864: pluginlib::ClassLoader<mavros::plugin::PluginBase>::createInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5105F6F: mavros::MavRos::add_plugin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x5103A8C: mavros::MavRos::MavRos() (in /home/burak/dd2_ws/devel/.private/mavros/lib/libmavros.so)
==18102==    by 0x4502C6: main (in /home/burak/dd2_ws/devel/.private/mavros/lib/mavros/mavros_node)
==18102==  Address 0x2 is not stack'd, malloc'd or (recently) free'd
==18102== 
[ERROR] [1647418266.187886773]: Plugin 3dr_radio load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.191578701]: Plugin actuator_control blacklisted
[ERROR] [1647418266.195411318]: Plugin adsb load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.195776363]: Plugin altitude blacklisted
[ERROR] [1647418266.198335672]: Plugin cam_imu_sync load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.202031189]: Plugin camera load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.204521345]: Plugin command load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.206960486]: Plugin companion_process_status load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.207287535]: Plugin debug_value blacklisted
[ERROR] [1647418266.209772115]: Plugin distance_sensor load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.212189894]: Plugin esc_status load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.214663132]: Plugin esc_telemetry load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.217131327]: Plugin fake_gps load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.217466754]: Plugin ftp blacklisted
[ERROR] [1647418266.219867163]: Plugin geofence load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.222341882]: Plugin global_position load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.225038893]: Plugin gps_input load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.227617552]: Plugin gps_rtk load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.230245086]: Plugin gps_status load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.230599157]: Plugin hil blacklisted
[ERROR] [1647418266.233030085]: Plugin home_position load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.235551465]: Plugin imu load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.238121533]: Plugin landing_target load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.240525996]: Plugin local_position load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.242945707]: Plugin log_transfer load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.245381336]: Plugin mag_calibration_status load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.247931279]: Plugin manual_control load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.250486593]: Plugin mocap_pose_estimate load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.252964009]: Plugin mount_control load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.255654839]: Plugin nav_controller_output load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.258142024]: Plugin obstacle_distance load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.260626039]: Plugin odom load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.263089217]: Plugin onboard_computer_status load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.265611560]: Plugin param load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.268456081]: Plugin play_tune load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.268830086]: Plugin px4flow blacklisted
[ERROR] [1647418266.271193021]: Plugin rallypoint load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.273562834]: Plugin rangefinder load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.275938213]: Plugin rc_io load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.276239062]: Plugin safety_area blacklisted
[ERROR] [1647418266.278567899]: Plugin setpoint_accel load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.280921218]: Plugin setpoint_attitude load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.283275963]: Plugin setpoint_position load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.286093365]: Plugin setpoint_raw load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.288561823]: Plugin setpoint_trajectory load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.291013640]: Plugin setpoint_velocity load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.293540581]: Plugin sys_status load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.295993376]: Plugin sys_time load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.298507198]: Plugin terrain load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.300973925]: Plugin trajectory load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.303416602]: Plugin tunnel load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ERROR] [1647418266.305843577]: Plugin vfr_hud load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.306127506]: Plugin vibration blacklisted
[ERROR] [1647418266.308550105]: Plugin vision_pose_estimate load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_extras.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.308835495]: Plugin vision_speed_estimate blacklisted
[ERROR] [1647418266.311218235]: Plugin waypoint load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.311513456]: Plugin wheel_odometry blacklisted
[ERROR] [1647418266.313920275]: Plugin wind_estimation load exception: Failed to load library /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /home/burak/dd2_ws/devel/lib/lib/libmavros_plugins.so: cannot open shared object file: No such file or directory)
[ INFO] [1647418266.348050100]: Built-in SIMD instructions: SSE, SSE2
[ INFO] [1647418266.348735436]: Built-in MAVLink package version: 2021.3.3
[ INFO] [1647418266.349759727]: Known MAVLink dialects: common ardupilotmega ASLUAV all autoquad icarous matrixpilot paparazzi standard uAvionix ualberta
[ INFO] [1647418266.350628269]: MAVROS started. MY ID 1.240, TARGET ID 1.1
^C[mavros-2] killing on exit
[mavros-2] escalating to SIGTERM
==18102== 
==18102== Process terminating with default action of signal 15 (SIGTERM)
==18102==    at 0x6D7B360: pthread_cond_wait@@GLIBC_2.3.2 (pthread_cond_wait.S:185)
==18102==    by 0x604DDB2: ros::ROSOutAppender::logThread() (in /opt/ros/kinetic/lib/libroscpp.so)
==18102==    by 0x922E5D4: ??? (in /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0)
==18102==    by 0x6D756B9: start_thread (pthread_create.c:333)
==18102==    by 0x768E51C: clone (clone.S:109)
==18102== 
==18102== HEAP SUMMARY:
==18102==     in use at exit: 22,222,736 bytes in 27,529 blocks
==18102==   total heap usage: 86,504 allocs, 59,025 frees, 43,753,363 bytes allocated
==18102== 
==18102== LEAK SUMMARY:
==18102==    definitely lost: 2,672 bytes in 50 blocks
==18102==    indirectly lost: 0 bytes in 0 blocks
==18102==      possibly lost: 3,200 bytes in 10 blocks
==18102==    still reachable: 22,216,864 bytes in 27,469 blocks
==18102==         suppressed: 0 bytes in 0 blocks
==18102== Rerun with --leak-check=full to see details of leaked memory
==18102== 
==18102== For counts of detected and suppressed errors, rerun with: -v
==18102== Use --track-origins=yes to see where uninitialised values come from
==18102== ERROR SUMMARY: 200 errors from 8 contexts (suppressed: 0 from 0)
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

I think Valgrind caught the segmentation fault and instead of terminating, let the rest of the program run as normal; hence, the output looking like mavros is actually working. I'll open an issue for pluginlib repo as well.

EDIT: I dealt with the plugin path errors (there was one extra /lib in XML files). If I run with valgrind, mavros and plugins work fine. Plugins are loaded, mavros can connect to ArduCopter. Without valgrind, mavros crashes.