Hello,
We are using an i.MX8QM device running Android 10. We have an AM/FM source code originally developed for Linux that we want to use on Android 10. We have built the binary using the NDK 25 toolchain.
After pushing the binary and its dependency libraries(libgpiod, libgpiocxx, libncurse) to the device, we placed the required libc.so.6 and ld-linux-aarch64.so.1 libraries in the system/lib64 directory. However, we are encountering a segmentation fault when running the binary.
Steps we have taken so far:
We need assistance in identifying and resolving the cause of this segmentation fault. Any guidance on how to proceed would be greatly appreciated.
Thank you.
Hello,
Segmentation fault is a specific kind of error caused by accessing memory that “does not belong to you.” It’s a helper mechanism that keeps you from corrupting the memory and introducing hard-to-debug memory bugs. Whenever you get a segfault you know you are doing something wrong with memory – accessing a variable that has already been freed, writing to a read-only portion of the memory, etc. it has to be with memory management.
Regards