(gdb) cContinuing.[New Thread 15717]Program received signal SIGILL, Illegal instruction.[Switching to Thread 15717]0xb00055bc in ?? () from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/linker
(gdb) bt#0 0xb00055bc in ?? ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/linker#1 0x00100000 in ?? ()#2 0x00100000 in ?? ()Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) info threads[New Thread 15705][New Thread 15706][New Thread 15707][New Thread 15708][New Thread 15709][New Thread 15710][New Thread 15711][New Thread 15716]Id Target Id Frame10 Thread 15716 0xafd0c868 in __futex_syscall3 ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so9 Thread 15711 0xafd0b82c in __ioctl ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so8 Thread 15710 0xafd0b82c in __ioctl ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so7 Thread 15709 0xafd0c868 in __futex_syscall3 ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so6 Thread 15708 0xafd0b974 in select ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so5 Thread 15707 0xafd0c11c in __rt_sigtimedwait ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so4 Thread 15706 0xafd0c868 in __futex_syscall3 ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so3 Thread 15705 0xafd0c868 in __futex_syscall3 ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so* 2 Thread 15717 0xb00055bc in ?? ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/linker1 Thread 15704 0xafd0c868 in __futex_syscall3 ()from <MY_PROJECT_DIR>/android/debug/obj/local/armeabi-v7a/libc.so
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/7_my9F8_w-AJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
On Monday, August 6, 2012 4:20:11 PM UTC-7, Ian Ni-Lewis wrote:
Can you confirm that the gdbserver on your 2.3 device is the new one from r8b and not the old one from r6b?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/0RwveXetOQoJ.
1. Does r8b gdb work for 4.1 devices for the same app?
2. Could you debug app built by r6b with gdb/gdbserver in r8b, and vice versa?
Not sure if this helps: r8b toolchain enables NX bit and relro/bind_now protections by default. Maybe it worth a try to disable both with the following:LOCAL_DISABLE_NO_EXECUTE=true # disable "--noexecstack" and "-z noexecstack"DISABLE_RELRO=true # disable "-z relro" and "-z now"
(gdb) b android_native_app_glue.c:android_app_set_activity_stateBreakpoint 1 at 0x80c69b28: file <MY_NDK_R8B>/sources/android/native_app_glue/android_native_app_glue.c, line 314.(gdb) cContinuing.Breakpoint 1, android_app_set_activity_state (android_app=0x371018, cmd=11 '\v')at <MY_NDK_R8B>/sources/android/native_app_glue/android_native_app_glue.c:314314 pthread_mutex_lock(&android_app->mutex);(gdb) bt#0 android_app_set_activity_state (android_app=0x371018, cmd=11 '\v')at <MY_NDK_R8B>/sources/android/native_app_glue/android_native_app_glue.c:314#1 0x80c69c86 in onResume (activity=0x370f00)at <MY_NDK_R8B>/sources/android/native_app_glue/android_native_app_glue.c:349#2 0xad337ba4 in ?? ()#3 0xad337ba4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) si
Program received signal SIGILL, Illegal instruction.
0x80c69b2c in android_app_set_activity_state (android_app=0x371018, cmd=11 '\v')at <MY_NDK_R8B>/sources/android/native_app_glue/android_native_app_glue.c:314
pc 0x80c69b28 0x80c69b28 <android_app_set_activity_state+12>
pc 0x80c69b2c 0x80c69b2c <android_app_set_activity_state+16>
│0x80c69b24 <android_app_set_activity_state+8> strb.w r3, [sp, #3]B+ │0x80c69b28 <android_app_set_activity_state+12> ldr r3, [sp, #4]│0x80c69b2a <android_app_set_activity_state+14> add.w r3, r3, #64 ; 0x40
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/x7sF18ZX-pYJ.
1. confirm that the gdb 7.3.x single-step fine the same app on 4.1 devices
2. try if the same behavior happen in 2.3.4 emulator as well
3. open a bug at http://code.google.com/p/android/issues/list to track this issueI can see the exact thumb2 code around android_app_set_activity_state. I will modify a sample native-activity app and try to reproduce the issue in the meantime.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/4GNJOZ4CYmcJ.