Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/lib/arm64/libconscrypt_jni.so [arm64-v8a] crash #797

Open
AlbertSnow opened this issue Dec 25, 2019 · 3 comments
Open

/lib/arm64/libconscrypt_jni.so [arm64-v8a] crash #797

AlbertSnow opened this issue Dec 25, 2019 · 3 comments
Assignees
Labels

Comments

@AlbertSnow
Copy link

I am an Android developer, And we face the crash on specify device ( All of crash happen on Android 5.1 API 22)
I already update conscrypt android SDK version to 2.2.1

Crash log is below

#00 pc 0000000000060284 /system/lib64/libc.so (tgkill+8) [arm64-v8a]

#1 pc 00000000000202bc /system/lib64/libc.so (pthread_kill+160) [arm64-v8a]
#2 pc 00000000000217f0 /system/lib64/libc.so (raise+28) [arm64-v8a]
#3 pc 000000000001b0fc /system/lib64/libc.so (abort+60) [arm64-v8a]
#4 pc 00000000000e0114 /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so [arm64-v8a]
#5 pc 0000000000020cc8 /system/lib64/libc.so (pthread_once+160) [arm64-v8a]
#6 pc 0000000000118f4c /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so (CRYPTO_once+8) [arm64-v8a]
#7 pc 00000000000dfd8c /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so [arm64-v8a]
#8 pc 00000000000ca388 /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so [arm64-v8a]
10 #9 pc 00000000000ca00c /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so (RAND_bytes+16) [arm64-v8a]
11 #10 pc 00000000000aaad0 /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so [arm64-v8a]
12 #11 pc 00000000000a9fa8 /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so [arm64-v8a]
13 #12 pc 000000000008e914 /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so (SSL_do_handshake+92) [arm64-v8a]
14 #13 pc 0000000000077e48 /data/app/com.sogou.translator-1/lib/arm64/libconscrypt_jni.so [arm64-v8a]
15 #14 pc 0000000001c54e68 /data/dalvik-cache/arm64/data@app@com.sogou.translator-1@base.apk@classes.dex (oatexec+7478888) []
16 java:
17 org.conscrypt.NativeSsl.doHandshake(SourceFile:3)
18 org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(SourceFile:28)
19 com.android.okhttp.Connection.upgradeToTls(Connection.java:201)
20 com.android.okhttp.Connection.connect(Connection.java:155)
21 com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:282)
22 com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:216)
23 com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:392)
24 com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:107)
25 com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:218)
26 com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
27 com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
28 com.umeng.commonsdk.stateless.e.a(SourceFile:24)
29 com.umeng.commonsdk.stateless.d.e(SourceFile:8)
30 com.umeng.commonsdk.stateless.d.c(SourceFile:1)
31 com.umeng.commonsdk.stateless.d$2.handleMessage(SourceFile:3)
32 android.os.Handler.dispatchMessage(Handler.java:111)
33 android.os.Looper.loop(Looper.java:194)
34 android.os.HandlerThread.run(HandlerThread.java:61)

@prbprbprb
Copy link
Collaborator

Does this happen on all devices running 5.1, or a particular model?

What I suspect is BoringSSL is calling abort() because getrandom() isn't available, which means we may need to submit a patch upstream to make newer BoringSSL deal with older Android.

@prbprbprb prbprbprb added the bug label Feb 10, 2020
@prbprbprb prbprbprb added the needs more info More information requested label Feb 10, 2020
@AlbertSnow
Copy link
Author

Yes, It's only happen on particular model.
Such as MeiZu mobile( M3S、M2、M578C); Gionee Mobile; Youxuepai/U32;
Android version probability distributions: Android 5.1,level22 (97.13%); Android5.0,level 21(2.67%); Android5.1.1,level 22(0.21%)

@prbprbprb
Copy link
Collaborator

Thanks! I don't have access to those particular models, but I'll see if I can reproduce on another 5.1 device.

@prbprbprb prbprbprb removed the needs more info More information requested label Feb 14, 2020
@prbprbprb prbprbprb assigned prbprbprb and unassigned AlbertSnow Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants