m2049r / xmrwallet

monerujo: An Android Monero Wallet
https://www.monerujo.io/
Apache License 2.0
605 stars 274 forks source link

BUILDING external libs: Crash in cn_slow_hash() #391

Open Pei116 opened 6 years ago

Pei116 commented 6 years ago

I followed your instructions to build the monero wallet lib for Android according to BUILDING external libs. But it's always crashed in Android. ` 08-18 03:46:14.587 26496-26496/? A/DEBUG:

Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PPP4.180612.007/4860066:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 26475, tid: 26491, name: roidJUnitRunner  >>> network.pyxis.moneroj.test <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xcbe7c000
    eax cbd7a830  ebx cb6c7894  ecx 00000080  edx cbe7bff8
    edi cbd7a830  esi 00101680
    ebp cbf7a998  esp cbd7a708  eip e8fa3097
08-18 03:46:14.593 26496-26496/? A/DEBUG: backtrace:
    #00 pc 0001b097  /system/lib/libc.so (memcpy+55)
    #01 pc 015faeed  /data/app/network.pyxis.moneroj.test-ALsPr7G6nmrkDF-WsTllwQ==/lib/x86/libmoneroj.so (cn_slow_hash+765)

` I tried several suggestions but no luck yet. Any advice will be appreciated.

m2049r commented 6 years ago

what are you trying to do?

run addr2line (https://stackoverflow.com/questions/5314036/how-to-use-addr2line-in-android) to find out which memcpy in cn_slow_hash() is crashing (you will need to build debug libraries - build_type=debug) or output lots of debug logs. and then you can look into why.

m2049r commented 5 years ago

@Pei116 what's the news on this?

CokeBear666 commented 5 years ago

@m2049r image