Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal instruction (core dumped) #654

Closed
ilysec opened this issue Feb 15, 2024 · 5 comments · Fixed by mavlink/MAVSDK#2223
Closed

Illegal instruction (core dumped) #654

ilysec opened this issue Feb 15, 2024 · 5 comments · Fixed by mavlink/MAVSDK#2223
Labels

Comments

@ilysec
Copy link

ilysec commented Feb 15, 2024

Hi there,

I am trying to run

~/.local/lib/python3.10/site-packages/mavsdk/bin/mavsdk_server serial:///dev/serial0:921600

And I get the following result:

[09:38:36|Info ] MAVSDK version: v2.2.0 (mavsdk_impl.cpp:26)
[09:38:36|Info ] Waiting to discover system on serial:///dev/serial0:921600... (connection_initiator.h:20)
[09:38:36|Debug] New system ID: 1 Comp ID: 1 (mavsdk_impl.cpp:737)
[09:38:36|Debug] Component Autopilot (1) added. (system_impl.cpp:388)
[09:38:36|Debug] MAVLink: info: GCS connection regained	 (system_impl.cpp:256)
[09:38:36|Debug] MAVLink: critical: Preflight Fail: Crash dumps present on SD, vehicle needs service (system_impl.cpp:256)
[09:38:36|Warn ] Vehicle type changed (new type: 2, old type: 0) (system_impl.cpp:230)
[09:38:36|Debug] Discovered 1 component(s) (system_impl.cpp:563)
[09:38:36|Info ] System discovered (connection_initiator.h:62)
Illegal instruction (core dumped)

I tried reinstalling grpcio as mentioneed in #345:

pip3 uninstall grpcio
sudo apt-get install python3-grpcio

However, nothing seems to solve the "Illegal Instruction" problem.

@julianoes
Copy link
Collaborator

Ok. This is on what hardware and what OS?

@ilysec
Copy link
Author

ilysec commented Feb 15, 2024

Thanks for the quick reply!

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Holybro Pixhawk RPi CM4 Baseboard

@julianoes
Copy link
Collaborator

Aha, thanks!

@julianoes
Copy link
Collaborator

My backtrace points to absl:

(gdb) r
Starting program: /home/pi/lib/python3.11/site-packages/mavsdk/bin/mavsdk_server serial:///dev/ttyACM0:921600

Program received signal SIGILL, Illegal instruction.
0x0000007ff756c7a8 in _armv8_pmull_probe ()
(gdb) c
Continuing.

Program received signal SIGILL, Illegal instruction.
0x0000007ff756c790 in _armv8_aes_probe ()
(gdb) c
Continuing.

Program received signal SIGILL, Illegal instruction.
0x0000007ff756c798 in _armv8_sha1_probe ()
(gdb) c
Continuing.

Program received signal SIGILL, Illegal instruction.
0x0000007ff756c7a0 in _armv8_sha256_probe ()
(gdb) c
Continuing.

Program received signal SIGILL, Illegal instruction.
0x0000007ff756c7b0 in _armv8_sha512_probe ()
(gdb) c
Continuing.
[01:43:11|Info ] MAVSDK version: v2.2.0 (mavsdk_impl.cpp:26)
[New LWP 1497]
[New LWP 1498]
[01:43:11|Info ] Waiting to discover system on serial:///dev/ttyACM0:921600... (connection_initiator.h:20)
[New LWP 1499]
[01:43:11|Debug] New system ID: 1 Comp ID: 1 (mavsdk_impl.cpp:737)
[New LWP 1500]
[01:43:11|Debug] Component Autopilot (1) added. (system_impl.cpp:388)
[01:43:11|Warn ] Vehicle type changed (new type: 2, old type: 0) (system_impl.cpp:230)
[01:43:11|Debug] Discovered 1 component(s) (system_impl.cpp:563)
[01:43:11|Info ] System discovered (connection_initiator.h:62)
[New LWP 1501]
[New LWP 1502]
[New LWP 1503]

Thread 1 "mavsdk_server" received signal SIGILL, Illegal instruction.
0x0000007ff74b251c in absl::lts_20230802::random_internal::RandenHwAes::Generate(void const*, void*) ()
(gdb) bt
#0  0x0000007ff74b251c in absl::lts_20230802::random_internal::RandenHwAes::Generate(void const*, void*) ()
#1  0x0000007ff74b17d0 in absl::lts_20230802::random_internal::(anonymous namespace)::RandenPoolEntry::Fill(unsigned char*, unsigned long) ()
#2  0x0000007ff70e0f18 in grpc_core::BackOff::BackOff(grpc_core::BackOff::Options const&) ()
#3  0x0000007ff736821c in grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::Lifeguard::Lifeguard(grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl*) ()
#4  0x0000007ff7368368 in grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::WorkStealingThreadPoolImpl(unsigned long) ()
#5  0x0000007ff7369a74 in grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPool(unsigned long) ()
#6  0x0000007ff7367c5c in grpc_event_engine::experimental::MakeThreadPool(unsigned long) ()
#7  0x0000007ff73576b0 in grpc_event_engine::experimental::PosixEventEngine::PosixEventEngine() ()
#8  0x0000007ff7353980 in grpc_event_engine::experimental::DefaultEventEngineFactory() ()
#9  0x0000007ff7353120 in grpc_event_engine::experimental::CreateEventEngineInner() ()
#10 0x0000007ff7353144 in grpc_event_engine::experimental::CreateEventEngine() ()
#11 0x0000007ff73532b0 in grpc_event_engine::experimental::GetDefaultEventEngine(grpc_core::SourceLocation) ()
#12 0x0000007ff73535a8 in grpc_event_engine::experimental::(anonymous namespace)::EnsureEventEngineInChannelArgs(grpc_core::ChannelArgs) ()
#13 0x0000007ff7353854 in std::_Function_handler<grpc_core::ChannelArgs (grpc_core::ChannelArgs), grpc_core::ChannelArgs (*)(grpc_core::ChannelArgs)>::_M_invoke(std::_Any_data const&, grpc_core::ChannelArgs&&) ()
#14 0x0000007ff70eca20 in grpc_core::ChannelArgsPreconditioning::PreconditionChannelArgs(grpc_channel_args const*) const ()
#15 0x0000007ff7186664 in grpc_server_create ()
#16 0x0000007ff7029e4c in grpc::Server::Server(grpc::ChannelArguments*, std::shared_ptr<std::vector<std::unique_ptr<grpc::ServerCompletionQueue, std::default_delete<grpc::ServerCompletionQueue> >, std::allocator<std::unique_ptr<grpc::ServerCompletionQueue, std::default_delete<grpc::ServerCompletionQueue> > > > >, int, int, int, std::vector<std::shared_ptr<grpc::internal::ExternalConnectionAcceptorImpl>, std::allocator<std::shared_ptr<grpc::internal::ExternalConnectionAcceptorImpl> > >, grpc_server_config_fetcher*, grpc_resource_quota*, std::vector<std::unique_ptr<grpc::experimental::ServerInterceptorFactoryInterface, std::default_delete<grpc::experimental::ServerInterceptorFactoryInterface> >, std::allocator<std::unique_ptr<grpc::experimental::ServerInterceptorFactoryInterface, std::default_delete<grpc::experimental::ServerInterceptorFactoryInterface> > > >, grpc::experimental::ServerMetricRecorder*) ()
#17 0x0000007ff7025388 in grpc::ServerBuilder::BuildAndStart() ()
#18 0x0000007ff6ae12d4 in mavsdk::mavsdk_server::GrpcServer::run() ()
#19 0x0000007ff6a7d180 in MavsdkServer::startGrpcServer(int) ()
#20 0x0000007ff6a79ec4 in mavsdk_server_run ()
#21 0x0000007ff6a60044 in main ()

@julianoes
Copy link
Collaborator

Fix coming: mavlink/MAVSDK#2223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants