dascandy / hippomocks

GNU Lesser General Public License v2.1
192 stars 65 forks source link

[ANDROID] crash (SIGILL/ILL_ILLOPC) on arm64-v8a #73

Open games-neox opened 7 years ago

games-neox commented 7 years ago

OS: Android 7.0 Android Studio: 2.2.3 NDK: 13.1.3345770 cmake: (min) 3.4.1

test project: https://github.com/games-neox/hippomocks_test0

same code/test does work on an armeabi-v7a device/emulator

games-neox commented 7 years ago

hippomocks73logs020217_2312.txt.zip

logs attached

games-neox commented 7 years ago

from the attached logcat:

02-02 23:01:07.580  2838  2853 F libc    : Fatal signal 4 (SIGILL), code 1, fault addr 0x78402118f4 in tid 2853 (roidJUnitRunner)
...
02-02 23:01:07.705  2854  2854 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-02 23:01:07.706  2854  2854 F DEBUG   : Build fingerprint: 'Android/sdk_phone_arm64/generic_arm64:7.0/NYC/3245079:userdebug/test-keys'
02-02 23:01:07.706  2854  2854 F DEBUG   : Revision: '0'
02-02 23:01:07.706  2854  2854 F DEBUG   : ABI: 'arm64'
02-02 23:01:07.708  2854  2854 F DEBUG   : pid: 2838, tid: 2853, name: roidJUnitRunner  >>> com.gamesneox.hippomockstest0 <<<
02-02 23:01:07.708  2854  2854 F DEBUG   : signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x78402118f4
02-02 23:01:07.709  2854  2854 F DEBUG   :     x0   0000000000000000  x1   0000000000000001  x2   00000000ffffffff  x3   00000078403d7fe0
02-02 23:01:07.709  2854  2854 F DEBUG   :     x4   000000000000000a  x5   bca0cbfb47afaf6b  x6   000000000000007c  x7   0000000000000048
02-02 23:01:07.711  2854  2854 F DEBUG   :     x8   00000078403d7fc0  x9   0000000000000000  x10  bca0cbfb47afaf6b  x11  0000000000000003
02-02 23:01:07.711  2854  2854 F DEBUG   :     x12  000000784040c648  x13  0000000000000024  x14  000000000000007a  x15  0000000000000050
02-02 23:01:07.711  2854  2854 F DEBUG   :     x16  00000078402b8490  x17  00000078402118f4  x18  000000000000007c  x19  000000784d1cca00
02-02 23:01:07.711  2854  2854 F DEBUG   :     x20  00000078558b1ed0  x21  000000784d1cca00  x22  00000078403d86cc  x23  000000784077d94a
02-02 23:01:07.711  2854  2854 F DEBUG   :     x24  0000000000000004  x25  bca0cbfb47afaf6b  x26  000000784d1cca98  x27  bca0cbfb47afaf6b
02-02 23:01:07.712  2854  2854 F DEBUG   :     x28  0000000000000001  x29  00000078403d82a0  x30  00000078402095d0
02-02 23:01:07.712  2854  2854 F DEBUG   :     sp   00000078403d7fa0  pc   00000078402118f4  pstate 0000000020000000
02-02 23:01:07.730  2854  2854 F DEBUG   : 
02-02 23:01:07.730  2854  2854 F DEBUG   : backtrace:
02-02 23:01:07.731  2854  2854 F DEBUG   :     #00 pc 00000000000008f4  /data/app/com.gamesneox.hippomockstest0-1/lib/arm64/libhdhomerun.so (offset 0x5e000)
02-02 23:01:07.731  2854  2854 F DEBUG   :     #01 pc 00000000000565cc  /data/app/com.gamesneox.hippomockstest0-1/lib/arm64/libhdhomerun.so (_Z18tuners_native_scanP7_JNIEnv+76)
02-02 23:01:07.732  2854  2854 F DEBUG   :     #02 pc 0000000000045b54  /data/app/com.gamesneox.hippomockstest0-1/lib/arm64/libhdhomerun.so (Java_cpp_core_TunersNativeTest_nativeTestScanErrorFindingDevices+224)
02-02 23:01:07.732  2854  2854 F DEBUG   :     #03 pc 0000000000094490  /data/app/com.gamesneox.hippomockstest0.test-1/oat/arm64/base.odex (offset 0x8f000)
games-neox commented 7 years ago

symbols decoded:

X$ X/Android/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-addr2line -C -f -e X/libhdhomerun.so 0000000000045b54
Java_cpp_core_TunersNativeTest_nativeTestScanErrorFindingDevices
X/hippomocks_test0/app/src/androidTest/cpp/core/cpp_core_TunersNativeTest.cxx:40
X$ X/Android/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-addr2line -C -f -e X/libhdhomerun.so 00000000000565cc
tuners_native_scan(_JNIEnv*)
X/hippomocks_test0/app/src/main/cpp/core/tuners_native.cxx:22
dascandy commented 7 years ago

From your bug report I get that this could be an ARM64 problem, rather than device specific. I'll look into ARM64 specifics to see if I can find out what's causing the crash.

rzr commented 6 years ago

Does it also occur on latest release ? Probably yes: https://buildd.debian.org/status/package.php?p=hippomocks&suite=sid

xiashaohua2010 commented 5 years ago

what's the conclusion please?