Repro for reproducing bugs found in MAVSDK so that they can more easily be identified and corrected
- requires a flight controller (produced against PX4 docker container)
- update line 12 in main.cpp to have the correct connection string for your flight controller
$ ./build.sh
$ ./build/mavsdk-bug
- Ubuntu 22.04
- gcc/g++ 11.2
- gdb 11.2 (there are issues with gdb 12.* on Ubuntu 22.04 at the moment)
$ gdb ./build/mavsdk-bug
> b 39
> run
> n # appears to execute correctly
> n # observe seg fault originating in mavsdk stack
View GDB logging and trace in gdb.txt