I figure out a way to create Android aab using zig and debug them using Android Studio, while debugging I can have a perfectly fine stacktrace.
But when the program panics zigs (from popular zig-android repos) panichandler stack trace crashes even unwind.h crashes with SIGILL!
Native crash report prints a backtrace that just doesn’t make any cense printing a stack different from the one I have when debugging on Android Studio, addr2line also doesn’t work to resolve the backtrace.
What could be possibly the issue, for can’t printing a stacktrace at runtime and having a bad native crash backtrace?
Plus triggering a SIGSEV doesn’t go through the zig panic handle instead it goes to a function called art_sigsegv_fault
Edit: I captured the signal using sigaction but callstack in debug is lost