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

Segfault in secureResponseCachingAndRedirects on Android #437

Closed
swankjesse opened this issue Jan 12, 2014 · 8 comments
Closed

Segfault in secureResponseCachingAndRedirects on Android #437

swankjesse opened this issue Jan 12, 2014 · 8 comments
Labels
bug Bug in existing code
Milestone

Comments

@swankjesse
Copy link
Collaborator

I saw this in 2 of 3 runs:

F/libc    (13547): Fatal signal 11 (SIGSEGV) at 0xb0c2c000 (code=2), thread 13860 (pool-315-thread)
I/DEBUG   (24062): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (24062): Build fingerprint: 'google/occam/mako:4.4.2/KOT49H/937116:user/release-keys'
I/DEBUG   (24062): Revision: '11'
I/DEBUG   (24062): AM write failure (32 / Broken pipe)
I/DEBUG   (24062): pid: 13547, tid: 13860, name: pool-315-thread  >>> dalvikvm <<<
I/DEBUG   (24062): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr b0c2c000
W/NativeCrashListener(  593): Couldn't find ProcessRecord for pid 13547
I/DEBUG   (24062):     r0 b8c7a450  r1 b0c2bff2  r2 b8bb153d  r3 0000000b
I/DEBUG   (24062):     r4 00000000  r5 b8c61a81  r6 b8c65a30  r7 b8bc9f48
I/DEBUG   (24062):     r8 b8c61a7a  r9 00002130  sl 00000001  fp 00003004
I/DEBUG   (24062):     ip 60000000  sp af544978  lr 000000dd  pc b6f3c026  cpsr a00d0030
I/DEBUG   (24062):     d0  0000000000000000  d1  0000000000000000
I/DEBUG   (24062):     d2  0000000000000000  d3  0000000000000000
I/DEBUG   (24062):     d4  0000000000000000  d5  0000000000000000
I/DEBUG   (24062):     d6  0000000000000000  d7  0000000000000000
I/DEBUG   (24062):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   (24062):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (24062):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (24062):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (24062):     d16 18a85a01c1e0d252  d17 58bb2e087a11cd68
I/DEBUG   (24062):     d18 200c38205aee399d  d19 334c9b6bf339c0c1
I/DEBUG   (24062):     d20 3f8948b0fcd6e9e0  d21 3fe555b0aaeac752
I/DEBUG   (24062):     d22 3fd24998d6307188  d23 3fcc7288e957b53b
I/DEBUG   (24062):     d24 3fc74721cad6b0ed  d25 3fc2f112df3e5244
I/DEBUG   (24062):     d26 0000000000000020  d27 0000000000000009
I/DEBUG   (24062):     d28 0000000000000000  d29 0000000000000000
I/DEBUG   (24062):     d30 0000000000000000  d31 0000000000000000
I/DEBUG   (24062):     scr 60000010
I/DEBUG   (24062): 
I/DEBUG   (24062): backtrace:
I/DEBUG   (24062):     #00  pc 00022026  /system/lib/libc.so (__memcpy_base+81)
I/DEBUG   (24062):     #01  pc 0002e96b  /system/lib/libssl.so (ssl_add_serverhello_tlsext+618)
I/DEBUG   (24062):     #02  pc 0001f735  /system/lib/libssl.so (ssl3_send_server_hello+188)
I/DEBUG   (24062):     #03  pc 0001eaf5  /system/lib/libssl.so (ssl3_accept+1692)
I/DEBUG   (24062):     #04  pc 00026489  /system/lib/libssl.so (SSL_accept+20)
I/DEBUG   (24062):     #05  pc 00012b2d  /system/lib/libssl.so (ssl23_get_client_hello+1244)
I/DEBUG   (24062):     #06  pc 0001259f  /system/lib/libssl.so (ssl23_accept+294)
I/DEBUG   (24062):     #07  pc 00027ccb  /system/lib/libssl.so (SSL_do_handshake+50)
I/DEBUG   (24062):     #08  pc 0000aeb3  /system/lib/libjavacrypto.so
I/DEBUG   (24062):     #09  pc 0001dbcc  /system/lib/libdvm.so (dvmPlatformInvoke+112)
I/DEBUG   (24062):     #10  pc 0004e123  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
I/DEBUG   (24062):     #11  pc 00038825  /system/lib/libdvm.so (dvmCheckCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+8)
I/DEBUG   (24062):     #12  pc 00026fe0  /system/lib/libdvm.so
I/DEBUG   (24062):     #13  pc 0002dfa0  /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
I/DEBUG   (24062):     #14  pc 0002b638  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
I/DEBUG   (24062):     #15  pc 00060581  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
I/DEBUG   (24062):     #16  pc 000605a5  /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
I/DEBUG   (24062):     #17  pc 0005528b  /system/lib/libdvm.so
I/DEBUG   (24062):     #18  pc 0000d170  /system/lib/libc.so (__thread_entry+72)
I/DEBUG   (24062):     #19  pc 0000d308  /system/lib/libc.so (pthread_create+240)
I/DEBUG   (24062):     #20  pc 000d2a94  [heap]
I/DEBUG   (24062): 
I/DEBUG   (24062): stack:
I/DEBUG   (24062):          af544938  00000114  
I/DEBUG   (24062):          af54493c  b2d0a945  /system/lib/libcrypto.so (CRYPTO_free+36)
I/DEBUG   (24062):          af544940  b8c4fe18  [heap]
I/DEBUG   (24062):          af544944  00000006  
I/DEBUG   (24062):          af544948  00000100  
I/DEBUG   (24062):          af54494c  b2cd3acb  /system/lib/libcrypto.so (BIO_free+110)
I/DEBUG   (24062):          af544950  00000075  
I/DEBUG   (24062):          af544954  b2d008a9  /system/lib/libcrypto.so (EVP_DigestUpdate+8)
I/DEBUG   (24062):          af544958  af54498c  [stack:13860]
I/DEBUG   (24062):          af54495c  af544988  [stack:13860]
I/DEBUG   (24062):          af544960  00003004  
I/DEBUG   (24062):          af544964  b0c1c28f  /system/lib/libssl.so (SSL_get_ex_data+10)
I/DEBUG   (24062):          af544968  00003004  
I/DEBUG   (24062):          af54496c  b0c38e6f  /system/lib/libjavacrypto.so
I/DEBUG   (24062):          af544970  00000000  
I/DEBUG   (24062):          af544974  b0c38e65  /system/lib/libjavacrypto.so
I/DEBUG   (24062):     #00  af544978  b8c61a85  [heap]
I/DEBUG   (24062):          af54497c  b0c2296f  /system/lib/libssl.so (ssl_add_serverhello_tlsext+622)
I/DEBUG   (24062):     #01  af544980  ffffffff  
I/DEBUG   (24062):          af544984  b8c61aa0  [heap]
I/DEBUG   (24062):          af544988  b8bc9f48  [heap]
I/DEBUG   (24062):          af54498c  b0c13607  /system/lib/libssl.so (ssl3_get_client_hello+1926)
I/DEBUG   (24062):          af544990  af5449a8  [stack:13860]
I/DEBUG   (24062):          af544994  00000001  
I/DEBUG   (24062):          af544998  b8bc9f48  [heap]
I/DEBUG   (24062):          af54499c  00000049  
I/DEBUG   (24062):          af5449a0  b8c61a30  [heap]
I/DEBUG   (24062):          af5449a4  b8c61a34  [heap]
I/DEBUG   (24062):          af5449a8  00000000  
I/DEBUG   (24062):          af5449ac  b0c13739  /system/lib/libssl.so (ssl3_send_server_hello+192)
I/DEBUG   (24062):     #02  af5449b0  b8bc9f48  [heap]
I/DEBUG   (24062):          af5449b4  00002110  
I/DEBUG   (24062):          af5449b8  b8bc9f48  [heap]
I/DEBUG   (24062):          af5449bc  00002130  
I/DEBUG   (24062):          af5449c0  00000000  
I/DEBUG   (24062):          af5449c4  b0c391fd  /system/lib/libjavacrypto.so
I/DEBUG   (24062):          af5449c8  00003004  
I/DEBUG   (24062):          af5449cc  b0c12af9  /system/lib/libssl.so (ssl3_accept+1696)
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r0:
I/DEBUG   (24062):     b8c7a430 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a440 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a450 00000035 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a460 00000000 00000000 02010000 b2c69c78  
I/DEBUG   (24062):     b8c7a470 00000036 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a480 00000000 00000000 02010000 b2c69c78  
I/DEBUG   (24062):     b8c7a490 00000037 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a4a0 00000000 00000000 02010000 b2c69c78  
I/DEBUG   (24062):     b8c7a4b0 00000038 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a4c0 00000000 00000000 02010000 b2c69c78  
I/DEBUG   (24062):     b8c7a4d0 00000039 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a4e0 00000000 00000000 02010000 b2c69c78  
I/DEBUG   (24062):     b8c7a4f0 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a500 00000000 00000000 02000000 b2c69c78  
I/DEBUG   (24062):     b8c7a510 00006e65 00000000 00000000 00000000  
I/DEBUG   (24062):     b8c7a520 53550000 00000000 00000006 b8c7a530  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r1:
I/DEBUG   (24062):     b0c2bfd0 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2bfe0 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2bff0 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c000 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c010 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c020 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c030 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c040 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c050 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c060 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c070 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c080 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c090 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c0a0 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c0b0 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b0c2c0c0 00000000 00000000 00000000 00000000  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r2:
I/DEBUG   (24062):     b8bb151c 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bb152c 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bb153c 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bb154c 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bb155c 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bb156c 00000000 00000004 00000001 00000010  
I/DEBUG   (24062):     b8bb157c 00000000 00000100 00000000 00000000  
I/DEBUG   (24062):     b8bb158c 00000002 00000000 00000010 00000000  
I/DEBUG   (24062):     b8bb159c 0000024e b8bb15dc b8bb155c 00000000  
I/DEBUG   (24062):     b8bb15ac 0000001d 0000000a 0000000b 00000000  
I/DEBUG   (24062):     b8bb15bc 00000000 00000080 00000000 00000000  
I/DEBUG   (24062):     b8bb15cc 00000c00 00000000 00000000 00010000  
I/DEBUG   (24062):     b8bb15dc 00000250 b8bd1a04 b8bb159c b8bb14dc  
I/DEBUG   (24062):     b8bb15ec 000000a5 00000000 00000002 00000000  
I/DEBUG   (24062):     b8bb15fc 00000000 00000100 00000000 00000000  
I/DEBUG   (24062):     b8bb160c 00008000 00010000 00008000 00000000  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r5:
I/DEBUG   (24062):     b8c61a60 9adc25b6 23b8940a 3c1dc01f 042a352e  
I/DEBUG   (24062):     b8c61a70 ad4cb736 00222ccf 00330004 010001ff  
I/DEBUG   (24062):     b8c61a80 9f743300 dd082848 0f00f1b8 f04fbfb8  
I/DEBUG   (24062):     b8c61a90 e5e90801 90062050 480de5e1 62b4f44f  
I/DEBUG   (24062):     b8c61aa0 44784902 ba74e669 7f290001 b9e6ffff  
I/DEBUG   (24062):     b8c61ab0 b9880001 b8ac0001 b8c00001 b8de0001  
I/DEBUG   (24062):     b8c61ac0 b5e20001 b6a00001 b5ac0001 b5900001  
I/DEBUG   (24062):     b8c61ad0 b4200001 b4900001 b4ae0001 b74a0001  
I/DEBUG   (24062):     b8c61ae0 b72c0001 b8260001 b8780001 b9c00001  
I/DEBUG   (24062):     b8c61af0 bb3e0001 e92d0001 b08248f0 f2424604  
I/DEBUG   (24062):     b8c61b00 6b601130 d1674288 68206be1 0a00684e  
I/DEBUG   (24062):     b8c61b10 f8074637 68200f04 6da07170 01a0f100  
I/DEBUG   (24062):     b8c61b20 f96030b0 f1062a0f f9610016 f9400a0f  
I/DEBUG   (24062):     b8c61b30 1db02a0f 0a0ff940 00e8f8d4 0020f890  
I/DEBUG   (24062):     b8c61b40 0f02f010 6ee0d106 bf022800 00c0f8d4  
I/DEBUG   (24062):     b8c61b50 64412100 00c0f8d4 2d216c45 4832db05  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r6:
I/DEBUG   (24062):     b8c65a10 f7e94620 2400ed40 bd704620 74b6bf00  
I/DEBUG   (24062):     b8c65a20 ffe00001 e92dffff 46054830 f8d5460c  
I/DEBUG   (24062):     b8c65a30 b12800fc 4a054905 58514479 ed2cf7e9  
I/DEBUG   (24062):     b8c65a40 40fcf8c5 8830e8bd 748abf00 ffe00001  
I/DEBUG   (24062):     b8c65a50 e92dffff 46054830 f8d5460c b12800a0  
I/DEBUG   (24062):     b8c65a60 4a054905 58514479 ed16f7e9 40a0f8c5  
I/DEBUG   (24062):     b8c65a70 8830e8bd 745ebf00 ffe00001 f8d0ffff  
I/DEBUG   (24062):     b8c65a80 477000a0 4601bf00 f5b06848 d10f5f80  
I/DEBUG   (24062):     b8c65a90 f0206808 200002ff 7f40f5b2 4770bf18  
I/DEBUG   (24062):     b8c65aa0 20006d89 bf1c2900 036cf8d1 e0074770  
I/DEBUG   (24062):     b8c65ab0 00fcf8d1 bf042800 00e8f8d1 00a0f8d0  
I/DEBUG   (24062):     b8c65ac0 e92d4770 30fc4800 f803f000 8800e8bd  
I/DEBUG   (24062):     b8c65ad0 e92dbf00 460d4830 20004604 6820b1ed  
I/DEBUG   (24062):     b8c65ae0 f7e9b928 4601ebac 60212000 4628b1a9  
I/DEBUG   (24062):     b8c65af0 e856f7ea e84ef7ea 20004605 6820b16d  
I/DEBUG   (24062):     b8c65b00 f7e94629 4601ebae 29002001 e8bdbf18  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r7:
I/DEBUG   (24062):     b8bc9f28 00000001 0000001b b481aa40 00000002  
I/DEBUG   (24062):     b8bc9f38 00000000 00000000 00000015 000001f3  
I/DEBUG   (24062):     b8bc9f48 00000301 00002000 b0c2e898 b8c4fd48  
I/DEBUG   (24062):     b8bc9f58 b8c4fe70 b8c4fe70 00000001 00000002  
I/DEBUG   (24062):     b8bc9f68 b0c12459 00000001 00000000 00000000  
I/DEBUG   (24062):     b8bc9f78 00000000 00002130 000000f0 b8c4fe08  
I/DEBUG   (24062):     b8bc9f88 b8c61a34 00000000 00000000 b8c3a543  
I/DEBUG   (24062):     b8bc9f98 00000000 00000000 b8c5e2f8 00000000  
I/DEBUG   (24062):     b8bc9fa8 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bc9fb8 b8c4ed08 b8c4fc10 b8c4fc28 00000000  
I/DEBUG   (24062):     b8bc9fc8 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bc9fd8 00000000 00000000 b8c4ec50 00000001  
I/DEBUG   (24062):     b8bc9fe8 00000020 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bc9ff8 00000000 00000000 00000000 00000000  
I/DEBUG   (24062):     b8bca008 b8c4fee0 00000001 00000000 00000000  
I/DEBUG   (24062):     b8bca018 00000000 00000000 00000000 00000000  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r8:
I/DEBUG   (24062):     b8c61a58 26bc8ea2 84f132a7 9adc25b6 23b8940a  
I/DEBUG   (24062):     b8c61a68 3c1dc01f 042a352e ad4cb736 00222ccf  
I/DEBUG   (24062):     b8c61a78 00330004 010001ff 9f743300 dd082848  
I/DEBUG   (24062):     b8c61a88 0f00f1b8 f04fbfb8 e5e90801 90062050  
I/DEBUG   (24062):     b8c61a98 480de5e1 62b4f44f 44784902 ba74e669  
I/DEBUG   (24062):     b8c61aa8 7f290001 b9e6ffff b9880001 b8ac0001  
I/DEBUG   (24062):     b8c61ab8 b8c00001 b8de0001 b5e20001 b6a00001  
I/DEBUG   (24062):     b8c61ac8 b5ac0001 b5900001 b4200001 b4900001  
I/DEBUG   (24062):     b8c61ad8 b4ae0001 b74a0001 b72c0001 b8260001  
I/DEBUG   (24062):     b8c61ae8 b8780001 b9c00001 bb3e0001 e92d0001  
I/DEBUG   (24062):     b8c61af8 b08248f0 f2424604 6b601130 d1674288  
I/DEBUG   (24062):     b8c61b08 68206be1 0a00684e f8074637 68200f04  
I/DEBUG   (24062):     b8c61b18 6da07170 01a0f100 f96030b0 f1062a0f  
I/DEBUG   (24062):     b8c61b28 f9610016 f9400a0f 1db02a0f 0a0ff940  
I/DEBUG   (24062):     b8c61b38 00e8f8d4 0020f890 0f02f010 6ee0d106  
I/DEBUG   (24062):     b8c61b48 bf022800 00c0f8d4 64412100 00c0f8d4  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near r9:
I/DEBUG   (24062):     00002110 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002120 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002130 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002140 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002150 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002160 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002170 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002180 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002190 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000021a0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000021b0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000021c0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000021d0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000021e0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000021f0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002200 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near fp:
I/DEBUG   (24062):     00002fe4 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00002ff4 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003004 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003014 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003024 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003034 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003044 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003054 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003064 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003074 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003084 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     00003094 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000030a4 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000030b4 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000030c4 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000030d4 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near ip:
I/DEBUG   (24062):     5fffffe0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     5ffffff0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000000 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000010 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000020 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000030 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000040 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000050 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000060 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000070 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000080 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     60000090 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     600000a0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     600000b0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     600000c0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     600000d0 ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory near sp:
I/DEBUG   (24062):     af544958 af54498c af544988 00003004 b0c1c28f  
I/DEBUG   (24062):     af544968 00003004 b0c38e6f 00000000 b0c38e65  
I/DEBUG   (24062):     af544978 b8c61a85 b0c2296f ffffffff b8c61aa0  
I/DEBUG   (24062):     af544988 b8bc9f48 b0c13607 af5449a8 00000001  
I/DEBUG   (24062):     af544998 b8bc9f48 00000049 b8c61a30 b8c61a34  
I/DEBUG   (24062):     af5449a8 00000000 b0c13739 b8bc9f48 00002110  
I/DEBUG   (24062):     af5449b8 b8bc9f48 00002130 00000000 b0c391fd  
I/DEBUG   (24062):     af5449c8 00003004 b0c12af9 b8c4fe70 b8c4fe70  
I/DEBUG   (24062):     af5449d8 00000001 00000070 52d2e0c1 b8bc9f48  
I/DEBUG   (24062):     af5449e8 00002210 00000001 00000003 ffffffac  
I/DEBUG   (24062):     af5449f8 0000000b 00002210 00002000 b0c1a48b  
I/DEBUG   (24062):     af544a08 b8bc9f48 b0c06b31 00000001 b8c4fe18  
I/DEBUG   (24062):     af544a18 00002000 00010316 000001cd b00103c9  
I/DEBUG   (24062):     af544a28 a01ccbfc b8bc9f48 00002210 00000001  
I/DEBUG   (24062):     af544a38 b0c391fd 00000000 00002210 00002210  
I/DEBUG   (24062):     af544a48 00002000 b0c065a3 b8c4ec30 b6f7f004  
I/DEBUG   (24062): 
I/DEBUG   (24062): code around pc:
I/DEBUG   (24062):     b6f3c004 ea5feb01 da037c43 030df9a1 031df980  
I/DEBUG   (24062):     b6f3c014 f921d303 f900070d 3a40071d f921d30b  
I/DEBUG   (24062):     b6f3c024 f921020d f891420d 3a40f100 022df900  
I/DEBUG   (24062):     b6f3c034 422df900 3220d2f3 f921d305 f1a2020d  
I/DEBUG   (24062):     b6f3c044 f9000220 f102022d f0120220 d0030f10  
I/DEBUG   (24062):     b6f3c054 0a0df921 0a2df900 7c42ea5f f921d303  
I/DEBUG   (24062):     b6f3c064 f900070d da03070d 030df9a1 030df980  
I/DEBUG   (24062):     b6f3c074 7cc2ea5f f811bf44 f8003b01 bf213b01  
I/DEBUG   (24062):     b6f3c084 cb01f811 eb01f811 cb01f800 eb01f800  
I/DEBUG   (24062):     b6f3c094 4001e8bd bf004770 4803b500 44784901  
I/DEBUG   (24062):     b6f3c0a4 fcb6f7f0 000138e4 00027fda e1520003  
I/DEBUG   (24062):     b6f3c0b4 9a000008 e52de004 e59f000c e59f1004  
I/DEBUG   (24062):     b6f3c0c4 e080000f faffc251 000138fd 00027fcb  
I/DEBUG   (24062):     b6f3c0d4 e1a02001 e3a01000 e92d0001 eee01b10  
I/DEBUG   (24062):     b6f3c0e4 e2522020 3a000003 f2202150 e2522020  
I/DEBUG   (24062):     b6f3c0f4 f400020d 2afffffc e2822020 e3120010  
I/DEBUG   (24062): 
I/DEBUG   (24062): code around lr:
I/DEBUG   (24062):     000000bc ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000000cc ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000000dc ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000000ec ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000000fc ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000010c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000011c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000012c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000013c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000014c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000015c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000016c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000017c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000018c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     0000019c ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062):     000001ac ffffffff ffffffff ffffffff ffffffff  
I/DEBUG   (24062): 
I/DEBUG   (24062): memory map around fault addr b0c2c000:
I/DEBUG   (24062):     b0bf4000-b0c2c000 r-x /system/lib/libssl.so
I/DEBUG   (24062):     b0c2c000-b0c2d000 --- 
I/DEBUG   (24062):     b0c2d000-b0c2f000 r-- /system/lib/libssl.so
@eboudrant
Copy link

I am not sure it is related but since I migrated an bitmap downloader from HttpClient to OkHttp (v1.3.0) I have random crashes :

I/DEBUG   (  179): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  179): Build fingerprint: 'google/hammerhead/hammerhead:4.4.2/KOT49H/937116:user/release-keys'
I/DEBUG   (  179): Revision: '11'
I/DEBUG   (  179): pid: 29422, tid: 29441, name: GAThread  >>> kr.infli <<<
I/DEBUG   (  179): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG   (  179):     r0 00000000  r1 00000000  r2 4b9b305d  r3 00000022
I/DEBUG   (  179):     r4 00000008  r5 4b9b305e  r6 00000000  r7 ffffffff
I/DEBUG   (  179):     r8 00000001  r9 40ac3130  sl 00000022  fp 4b9b305d
I/DEBUG   (  179):     ip 45ffab34  sp 490113f8  lr 45fef09d  pc 40aadf2e  cpsr 600f0030
I/DEBUG   (  179):     d0  0000000000000000  d1  0000000000000000
I/DEBUG   (  179):     d2  0000000000000000  d3  0000000000000000
I/DEBUG   (  179):     d4  6275cdd2c675afe0  d5  8cfc8d44d6b9b4d2
I/DEBUG   (  179):     d6  ded8940cd74a7949  d7  11c079a2299f9b35
I/DEBUG   (  179):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  179):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  179):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  179):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  179):     d16 0000000000000000  d17 0000000000000000
I/DEBUG   (  179):     d18 6b57d96801cb5248  d19 d552b285275cb5cc
I/DEBUG   (  179):     d20 4156e36000000000  d21 4008000000000000
I/DEBUG   (  179):     d22 3ff0000000000000  d23 4059000000000000
I/DEBUG   (  179):     d24 3ff0000000000000  d25 0000000000000003
I/DEBUG   (  179):     d26 4000000000000000  d27 547d42aea2879f2e
I/DEBUG   (  179):     d28 0800000009000000  d29 0001000000010000
I/DEBUG   (  179):     d30 4059000000000000  d31 4024000000000000
I/DEBUG   (  179):     scr 60000010
I/DEBUG   (  179): 
I/DEBUG   (  179): backtrace:
I/DEBUG   (  179):     #00  pc 00026f2e  /system/lib/libssl.so (SSL_select_next_proto+49)
I/DEBUG   (  179):     #01  pc 00007099  /system/lib/libjavacrypto.so
I/DEBUG   (  179):     #02  pc 0002f2f3  /system/lib/libssl.so (ssl_parse_serverhello_tlsext+434)
I/DEBUG   (  179):     #03  pc 0001810d  /system/lib/libssl.so (ssl3_get_server_hello+1004)
I/DEBUG   (  179):     #04  pc 00017517  /system/lib/libssl.so (ssl3_connect+566)
I/DEBUG   (  179):     #05  pc 00027ccb  /system/lib/libssl.so (SSL_do_handshake+50)
I/DEBUG   (  179):     #06  pc 0000aeb3  /system/lib/libjavacrypto.so
I/DEBUG   (  179):     #07  pc 004631ac  /data/dalvik-cache/system@framework@boot.oat
I/DEBUG   (  179): 
I/DEBUG   (  179): stack:
I/DEBUG   (  179):          490113b8  fbe1fa68  
I/DEBUG   (  179):          490113bc  217401bc  
I/DEBUG   (  179):          490113c0  00000002  
I/DEBUG   (  179):          490113c4  45feefd5  /system/lib/libjavacrypto.so
I/DEBUG   (  179):          490113c8  00000002  
I/DEBUG   (  179):          490113cc  45feefd5  /system/lib/libjavacrypto.so
I/DEBUG   (  179):          490113d0  40a58f6c  /system/lib/libcrypto.so
I/DEBUG   (  179):          490113d4  409f78fd  /system/lib/libcrypto.so (CRYPTO_lock+40)
I/DEBUG   (  179):          490113d8  4b52d1c8  [anon:libc_malloc]
I/DEBUG   (  179):          490113dc  00000000  
I/DEBUG   (  179):          490113e0  00000000  
I/DEBUG   (  179):          490113e4  000070a4  
I/DEBUG   (  179):          490113e8  00000002  
I/DEBUG   (  179):          490113ec  45feefd5  /system/lib/libjavacrypto.so
I/DEBUG   (  179):          490113f0  00000002  
I/DEBUG   (  179):          490113f4  45feefd5  /system/lib/libjavacrypto.so
I/DEBUG   (  179):     #00  490113f8  40a58f6c  /system/lib/libcrypto.so
I/DEBUG   (  179):          490113fc  49011478  [stack:29441]
I/DEBUG   (  179):          49011400  49011474  [stack:29441]
I/DEBUG   (  179):          49011404  4b9b305d  [anon:libc_malloc]
I/DEBUG   (  179):          49011408  00000022  
I/DEBUG   (  179):          4901140c  4b9b305d  [anon:libc_malloc]
I/DEBUG   (  179):          49011410  4c143900  [anon:libc_malloc]
I/DEBUG   (  179):          49011414  49011474  [stack:29441]
I/DEBUG   (  179):          49011418  49011478  [stack:29441]
I/DEBUG   (  179):          4901141c  4b63b1b0  [anon:libc_malloc]
I/DEBUG   (  179):          49011420  40ac3130  /system/lib/libssl.so
I/DEBUG   (  179):          49011424  00000022  
I/DEBUG   (  179):          49011428  4b9b3059  [anon:libc_malloc]
I/DEBUG   (  179):          4901142c  45fef09d  /system/lib/libjavacrypto.so
I/DEBUG   (  179):     #01  49011430  00000000  
I/DEBUG   (  179):          49011434  ffffffff  
I/DEBUG   (  179):          49011438  4b9b307f  [anon:libc_malloc]
I/DEBUG   (  179):          4901143c  490114b0  [stack:29441]
I/DEBUG   (  179):          49011440  490114b0  [stack:29441]
I/DEBUG   (  179):          49011444  4b9b305d  [anon:libc_malloc]
I/DEBUG   (  179):          49011448  00003374  
I/DEBUG   (  179):          4901144c  40ab62f5  /system/lib/libssl.so (ssl_parse_serverhello_tlsext+436)
I/DEBUG   (  179):     #02  49011450  00000022  
I/DEBUG   (  179):          49011454  00000000  
I/DEBUG   (  179):          49011458  40abe5a5  /system/lib/libssl.so
I/DEBUG   (  179):          4901145c  00000000  
I/DEBUG   (  179):          49011460  00000001  
I/DEBUG   (  179):          49011464  490114b4  [stack:29441]
I/DEBUG   (  179):          49011468  4b9b307b  [anon:libc_malloc]
I/DEBUG   (  179):          4901146c  4b9b307f  [anon:libc_malloc]
I/DEBUG   (  179):          49011470  4b63b1b0  [anon:libc_malloc]
I/DEBUG   (  179):          49011474  4ba1ce10  [anon:libc_malloc]
I/DEBUG   (  179):          49011478  40a7bdc0  /system/lib/libcrypto.so
I/DEBUG   (  179):          4901147c  4b63b1b0  [anon:libc_malloc]
I/DEBUG   (  179):          49011480  00000073  
I/DEBUG   (  179):          49011484  4b9b300c  [anon:libc_malloc]
I/DEBUG   (  179):          49011488  49ed68f0  [anon:libc_malloc]
I/DEBUG   (  179):          4901148c  4b9b302f  [anon:libc_malloc]
I/DEBUG   (  179):          ........  ........
I/DEBUG   (  179): 
I/DEBUG   (  179): memory near r2:
I/DEBUG   (  179):     4b9b303c fc8d44d6 4a79498c d8940cd7 9f9b35de  
I/DEBUG   (  179):     4b9b304c c079a229 2b000011 010001ff 00743300  
I/DEBUG   (  179):     4b9b305c 70730822 342f7964 73083461 2f796470  
I/DEBUG   (  179):     4b9b306c 06312e33 79647073 6808332f 2f707474  
I/DEBUG   (  179):     4b9b307c 00312e31 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b308c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b309c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30ac 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30bc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30cc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30dc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30ec 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30fc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b310c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b311c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b312c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179): 
I/DEBUG   (  179): memory near r5:
I/DEBUG   (  179):     4b9b303c fc8d44d6 4a79498c d8940cd7 9f9b35de  
I/DEBUG   (  179):     4b9b304c c079a229 2b000011 010001ff 00743300  
I/DEBUG   (  179):     4b9b305c 70730822 342f7964 73083461 2f796470  
I/DEBUG   (  179):     4b9b306c 06312e33 79647073 6808332f 2f707474  
I/DEBUG   (  179):     4b9b307c 00312e31 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b308c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b309c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30ac 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30bc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30cc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30dc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30ec 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30fc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b310c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b311c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b312c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179): 
I/DEBUG   (  179): memory near r9:
I/DEBUG   (  179):     40ac3110 00000001 00000020 00000002 00000002  
I/DEBUG   (  179):     40ac3120 00000105 0000c030 00000000 00000000  
I/DEBUG   (  179):     40ac3130 00000001 40ab960f 0300c011 00000080  
I/DEBUG   (  179):     40ac3140 00000001 00000004 00000002 00000002  
I/DEBUG   (  179):     40ac3150 00000041 0000c030 00000080 00000080  
I/DEBUG   (  179):     40ac3160 00000001 40ab9621 0300c012 00000080  
I/DEBUG   (  179):     40ac3170 00000001 00000002 00000002 00000002  
I/DEBUG   (  179):     40ac3180 00000181 0000c030 000000a8 000000a8  
I/DEBUG   (  179):     40ac3190 00000001 40ab9638 0300c013 00000080  
I/DEBUG   (  179):     40ac31a0 00000001 00000040 00000002 00000002  
I/DEBUG   (  179):     40ac31b0 00000181 0000c030 00000080 00000080  
I/DEBUG   (  179):     40ac31c0 00000001 40ab964d 0300c014 00000080  
I/DEBUG   (  179):     40ac31d0 00000001 00000080 00000002 00000002  
I/DEBUG   (  179):     40ac31e0 00000181 0000c030 00000100 00000100  
I/DEBUG   (  179):     40ac31f0 00000001 40ab9662 0300c015 00000080  
I/DEBUG   (  179):     40ac3200 00000004 00000020 00000002 00000002  
I/DEBUG   (  179): 
I/DEBUG   (  179): memory near fp:
I/DEBUG   (  179):     4b9b303c fc8d44d6 4a79498c d8940cd7 9f9b35de  
I/DEBUG   (  179):     4b9b304c c079a229 2b000011 010001ff 00743300  
I/DEBUG   (  179):     4b9b305c 70730822 342f7964 73083461 2f796470  
I/DEBUG   (  179):     4b9b306c 06312e33 79647073 6808332f 2f707474  
I/DEBUG   (  179):     4b9b307c 00312e31 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b308c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b309c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30ac 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30bc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30cc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30dc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30ec 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b30fc 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b310c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b311c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179):     4b9b312c 00000000 00000000 00000000 00000000  
I/DEBUG   (  179): 
I/DEBUG   (  179): memory near ip:
I/DEBUG   (  179):     45ffab14 40a136e1 409d7af9 40a09d21 40a099c5  
I/DEBUG   (  179):     45ffab24 40a0a70d 40a029cd 40a0dd41 400df021  
I/DEBUG   (  179):     45ffab34 40aadefd 400da7dc 400da8e0 40a21091  
I/DEBUG   (  179):     45ffab44 40aad775 40127927 400c83b1 402a05b5  
I/DEBUG   (  179):     45ffab54 40a1619d 40a0ea49 40a0e8b5 40a0e851  
I/DEBUG   (  179):     45ffab64 40a0edd9 40a10ec9 400f1235 40a10ea9  
I/DEBUG   (  179):     45ffab74 40a10f8d 400d9c01 400df415 400ddef5  
I/DEBUG   (  179):     45ffab84 402a06f5 40aadf79 40ab0e9d 40a48bfd  
I/DEBUG   (  179):     45ffab94 409e15f5 409e16dd 40a48c45 409e4799  
I/DEBUG   (  179):     45ffaba4 409daa29 409dd25d 40a48385 40a3bef9  
I/DEBUG   (  179):     45ffabb4 409e32f5 409e6a5d 40a16ad9 409e6b01  
I/DEBUG   (  179):     45ffabc4 409d6905 40a17135 40a06f01 40a07265  
I/DEBUG   (  179):     45ffabd4 40a06a5d 40a06c69 40a0709d 40a069d9  
I/DEBUG   (  179):     45ffabe4 40a06e8d 40a20f39 40a06e99 40a06e91  
I/DEBUG   (  179):     45ffabf4 40a06d6d 40a18839 40a1873d 40a18b79  
I/DEBUG   (  179):     45ffac04 409d7b01 40a07365 409d59a1 409e0b61  
I/DEBUG   (  179): 
I/DEBUG   (  179): memory near sp:
I/DEBUG   (  179):     490113d8 4b52d1c8 00000000 00000000 000070a4  
I/DEBUG   (  179):     490113e8 00000002 45feefd5 00000002 45feefd5  
I/DEBUG   (  179):     490113f8 40a58f6c 49011478 49011474 4b9b305d  
I/DEBUG   (  179):     49011408 00000022 4b9b305d 4c143900 49011474  
I/DEBUG   (  179):     49011418 49011478 4b63b1b0 40ac3130 00000022  
I/DEBUG   (  179):     49011428 4b9b3059 45fef09d 00000000 ffffffff  
I/DEBUG   (  179):     49011438 4b9b307f 490114b0 490114b0 4b9b305d  
I/DEBUG   (  179):     49011448 00003374 40ab62f5 00000022 00000000  
I/DEBUG   (  179):     49011458 40abe5a5 00000000 00000001 490114b4  
I/DEBUG   (  179):     49011468 4b9b307b 4b9b307f 4b63b1b0 4ba1ce10  
I/DEBUG   (  179):     49011478 40a7bdc0 4b63b1b0 00000073 4b9b300c  
I/DEBUG   (  179):     49011488 49ed68f0 4b9b302f 40ac3130 00000020  
I/DEBUG   (  179):     49011498 00001110 40a9f111 490114b0 490114ac  
I/DEBUG   (  179):     490114a8 4b63b1b0 00000001 4c143900 4b9b3052  
I/DEBUG   (  179):     490114b8 4b63b1b0 00001120 4c143900 45fef1fd  
I/DEBUG   (  179):     490114c8 00000000 00001120 00001000 40a9e51b  
I/DEBUG   (  179): 
I/DEBUG   (  179): code around pc:
I/DEBUG   (  179):     40aadf0c d02c2b00 9f0f9701 21009102 4001f81b  
I/DEBUG   (  179):     40aadf1c 0801f101 eb0bb1cf eb0b0001 90030508  
I/DEBUG   (  179):     40aadf2c f8162000 f1009000 454c0a01 eb06d109  
I/DEBUG   (  179):     40aadf3c 4628010a f7e54622 4601ef8c 29002001  
I/DEBUG   (  179):     40aadf4c eb0ad00a 42b80009 eb08d3eb 9a040104  
I/DEBUG   (  179):     40aadf5c 42912002 e000d3da 99029e03 1c729f01  
I/DEBUG   (  179):     40aadf6c 7832603a b005700a 8ff0e8bd 3178f8d0  
I/DEBUG   (  179):     40aadf7c 2100600b bf182b00 117cf890 47706011  
I/DEBUG   (  179):     40aadf8c 11a4f8c0 21a8f8c0 bf004770 11acf8c0  
I/DEBUG   (  179):     40aadf9c 21b0f8c0 bf004770 4605b570 f8d54614  
I/DEBUG   (  179):     40aadfac 460e01bc bf182800 ee02f7e5 f240480a  
I/DEBUG   (  179):     40aadfbc 490a6296 44014478 f7e54620 2101edee  
I/DEBUG   (  179):     40aadfcc 01bcf8c5 4631b130 f7e54622 2100ee2e  
I/DEBUG   (  179):     40aadfdc 41c0f8c5 bd704608 00013a84 ffffb5ae  
I/DEBUG   (  179):     40aadfec 4605b570 f8d54614 460e019c bf182800  
I/DEBUG   (  179):     40aadffc eddef7e5 f240480a 490a62aa 44014478  
I/DEBUG   (  179): 
I/DEBUG   (  179): code around lr:
I/DEBUG   (  179):     45fef07c 46052121 f7fe4640 6a6aef98 b13c6aab  
I/DEBUG   (  179):     45fef08c 000ce88d 46314638 9b084622 ef74f7fe  
I/DEBUG   (  179):     45fef09c e8bd2000 b53881fc b1884604 b1556a05  
I/DEBUG   (  179):     45fef0ac ffccf7ff 68036829 47906d9a f7fe4628  
I/DEBUG   (  179):     45fef0bc 2000ef82 21006220 60e12001 bd386161  
I/DEBUG   (  179):     45fef0cc b508bd38 6d5a6803 bd084790 6803b508  
I/DEBUG   (  179):     45fef0dc 47906dda b508bd08 6fda6803 bd084790  
I/DEBUG   (  179):     45fef0ec 6804b510 4084f8d4 bd1047a0 b513b40c  
I/DEBUG   (  179):     45fef0fc 6804ab04 2b04f853 40c8f8d4 47a09301  
I/DEBUG   (  179):     45fef10c 401ce8bd 4770b002 b513b40c 6804ab04  
I/DEBUG   (  179):     45fef11c 2b04f853 40f8f8d4 47a09301 401ce8bd  
I/DEBUG   (  179):     45fef12c 4770b002 b513b40c 6804ab04 2b04f853  
I/DEBUG   (  179):     45fef13c 41ccf8d4 47a09301 401ce8bd 4770b002  
I/DEBUG   (  179):     45fef14c 6803b508 229cf8d3 bd084790 6803b508  
I/DEBUG   (  179):     45fef15c 22acf8d3 bd084790 6804b510 42b0f8d4  
I/DEBUG   (  179):     45fef16c bd1047a0 6803b508 32b4f8d3 bd084798  

@eboudrant
Copy link

Ok I think it is related, I have some url redirect. As my code already follow redirects, this line fixed the crashes :

okHttpClient.setFollowProtocolRedirects(false);

Thanks

@swankjesse
Copy link
Collaborator Author

@eboudrant curious. Protocol redirects are those from HTTP to HTTPS.

@swankjesse
Copy link
Collaborator Author

@eboudrant By the way, does this also fix your problem? #184

@eboudrant
Copy link

Ok, make sense, some urls I use do a protocol redirect

http://farm6.staticflickr.com/5243/5231017493_6ae9145a3d_c.jpg
redirect on
https://s.yimg.com/pw/images/photo_unavailable.gif

I don't know about #184 I did not participate

@swankjesse
Copy link
Collaborator Author

I'm testing this again and it looks like getting the NPN protocols is returning bogus data. I got 165 chars each time. The first time this:

a877bfb791cdc2b701000000010000008056bfb71021000001000000fda1aeb00000000010210000010000002937acb0e05bb3b7e05bb3b70100000003000000cbda0a538056bfb7102200000100000003000000acffffff0b00000010220000002000008bb4acb08056bfb7317babb001000000985bb3b70020000016030100f7010000f30301b0184aa02f8056bfb71022000001000000fda1aeb0000000001022000010

The 2nd time this:

4027b8b7d9d2b1b70100000001000000c8deb7b71021000001000000fd91b2b00000000010210000010000002927b0b0d825b8b7d825b8b70100000003000000f7e00a53c8deb7b7102200000100000003000000acffffff0b00000010220000002000008ba4b0b0c8deb7b7316bafb000000000e9add1b2484a53af16030100f7010000f3030100f93053bfc8deb7b71022000001000000fd91b2b0000000001022000010

The test case that produces this reliably runs two tests in sequence:

  @Test public void foo() throws Exception {
    HttpResponseCacheTest t1 = new HttpResponseCacheTest();
    t1.setUp();
    t1.secureResponseCachingAndProtocolRedirects();
    t1.tearDown();

    HttpResponseCacheTest t2 = new HttpResponseCacheTest();
    t2.setUp();
    t2.secureResponseCachingAndRedirects();
    t2.tearDown();
  }

The problem happens on secureResponseCachingAndRedirects, but only when run after secureResponseCachingAndProtocolRedirects.

@swankjesse
Copy link
Collaborator Author

@swankjesse
Copy link
Collaborator Author

Workaround: avoid reusing SSLContext. For both client and server.

This is unlikely to cause problems in practice. I'm marking as closed since there's no action we can take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing code
Projects
None yet
Development

No branches or pull requests

2 participants