I'm running an executable in Android. The exe uses a number of shared libraries which are written in both C and C++.
I need some help on how to start debugging the following error:
interfaces[3274]: segfault at f22bacfc ip sp error 7 in libgnustl_shared.so[f4266000+ed000]
interfaces: is the binary exectutable Any tool I can used to debug this? Please share the steps.
You can use gdb to debug the android executable.
From this page:
First you need to run gdbserver on the device:
$ gdbserver :5039 /system/bin/executable
The
:5039
tellsgdbserver
to listen on port 5039 on the localhost, whichadb
bridges from the host to the device. executable represents the command to debug, a common one being runtime-s
which starts the entire system all running in a single process. Launch gdb on the desktop. This can be done easily with the following command in the shell from which you built:
$ gdbclient executable
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.