0

I am running a multi-threaded C++ program in a Linux system which has android on it. I am getting a crash due to SIGSEGV 11 (segmentation fault). A backtrace generated shows .so file followed by heap with some address.

How to check where exactly the segmentation fault has occurred? How to debug the address which gets printed in the backtrace?

1 Answers1

0

Use adb logcat to get the logs. The extra info (callstack, registry) there should help you identify the issue.

To translate addresses in source line use addr2line available in NDK

cprogrammer
  • 5,503
  • 3
  • 36
  • 56
  • Yes I used addr2line available in SDK to translate the addresses in source line. Got the line where the crash has occurred. Thanks for the inputs – Radhicka Pardessi Apr 04 '19 at 07:25