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

Native crash in SSL_CTX_set_alpn_protos #666

Closed
andaag opened this issue Mar 28, 2014 · 17 comments
Closed

Native crash in SSL_CTX_set_alpn_protos #666

andaag opened this issue Mar 28, 2014 · 17 comments

Comments

@andaag
Copy link

andaag commented Mar 28, 2014

We get this error using okhttp 1.5.2. We get it when activly using our app (loading next page of data + loading a ton of images for that new page), it's not terribly difficult to reproduce. Happens on a nexus 5 4.4.2.

I managed to reproduce it 3 times in fairly short succession, downgraded to 1.3.0 and used the app for a while without issues so I'm fairly confident it's okhttp causing it, but it's tricky to be 100% certain :/.

I'm downgrading okhttp in this branch now and I'll close this issue if I'm ever able to reproduce it on 1.3.x.

F/libc    ( 5118): invalid address or address of corrupt block 0x78bcec60 passed to dlfree
F/libc    ( 5118): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 5147 (Thread-451)
I/DEBUG   (  180): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  180): Build fingerprint: 'google/hammerhead/hammerhead:4.4.2/KOT49H/937116:user/release-keys'
I/DEBUG   (  180): Revision: '11'
I/DEBUG   (  180): pid: 5118, tid: 5147, name: Thread-451  >>> no.finn.android.dev <<<
I/DEBUG   (  180): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
I/DEBUG   (  180): Abort message: 'invalid address or address of corrupt block 0x78bcec60 passed to dlfree'
I/DEBUG   (  180):     r0 00000000  r1 4011fc66  r2 deadbaad  r3 401237a8
I/DEBUG   (  180):     r4 78bcec60  r5 4012e180  r6 415bb000  r7 78bcec68
I/DEBUG   (  180):     r8 75795b0c  r9 75697c70  sl 74ef9f18  fp 75795b24
I/DEBUG   (  180):     ip 00000001  sp 75795aa8  lr 400f16cb  pc 400f16cc  cpsr 600d0030
I/DEBUG   (  180):     d0  2064657373617064  d1  6f2073736572646c
I/DEBUG   (  180):     d2  707572726f632066  d3  206b636f6c622072
I/DEBUG   (  180):     d4  8080808080808080  d5  8080808080808080
I/DEBUG   (  180):     d6  0000000000000000  d7  0000000000000000
I/DEBUG   (  180):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  180):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  180):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  180):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  180):     d16 0000000000000000  d17 0000000000000000
I/DEBUG   (  180):     d18 0000000000000000  d19 0000000000000000
I/DEBUG   (  180):     d20 002f002d0033002d  d21 0032002f002b002b
I/DEBUG   (  180):     d22 0000000000000000  d23 0000000000000000
I/DEBUG   (  180):     d24 002f002d0033002d  d25 0032002f002b002b
I/DEBUG   (  180):     d26 0000000000000000  d27 0000000000000000
I/DEBUG   (  180):     d28 002f002d0033002d  d29 0032002f002b002b
I/DEBUG   (  180):     d30 0000000000000000  d31 0000000000000000
I/DEBUG   (  180):     scr 68000010
I/DEBUG   (  180): 
I/DEBUG   (  180): backtrace:
I/DEBUG   (  180):     #00  pc 000116cc  /system/lib/libc.so (dlfree+1191)
I/DEBUG   (  180):     #01  pc 0000dc0b  /system/lib/libc.so (free+10)
I/DEBUG   (  180):     #02  pc 00083943  /system/lib/libcrypto.so (CRYPTO_free+34)
I/DEBUG   (  180):     #03  pc 00026fb5  /system/lib/libssl.so (SSL_CTX_set_alpn_protos+16)
I/DEBUG   (  180):     #04  pc 00008b7f  /system/lib/libjavacrypto.so
I/DEBUG   (  180):     #05  pc 0001dbcc  /system/lib/libdvm.so (dvmPlatformInvoke+112)
I/DEBUG   (  180):     #06  pc 0004e123  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
I/DEBUG   (  180):     #07  pc 00026fe0  /system/lib/libdvm.so
I/DEBUG   (  180):     #08  pc 0002dfa0  /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
I/DEBUG   (  180):     #09  pc 0002b638  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
I/DEBUG   (  180):     #10  pc 00060581  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
I/DEBUG   (  180):     #11  pc 000605a5  /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
I/DEBUG   (  180):     #12  pc 0005528b  /system/lib/libdvm.so
I/DEBUG   (  180):     #13  pc 0000d170  /system/lib/libc.so (__thread_entry+72)
I/DEBUG   (  180):     #14  pc 0000d308  /system/lib/libc.so (pthread_create+240)
I/DEBUG   (  180): 
I/DEBUG   (  180): stack:
I/DEBUG   (  180):          75795a68  00000002  
I/DEBUG   (  180):          75795a6c  73291fd5  /system/lib/libjavacrypto.so
I/DEBUG   (  180):          75795a70  40a6cf6c  /system/lib/libcrypto.so
I/DEBUG   (  180):          75795a74  24f28d06  
I/DEBUG   (  180):          75795a78  78bcec60  [anon:libc_malloc]
I/DEBUG   (  180):          75795a7c  4012e180  
I/DEBUG   (  180):          75795a80  415bb000  [anon:libc_malloc]
I/DEBUG   (  180):          75795a84  400f2a41  /system/lib/libc.so
I/DEBUG   (  180):          75795a88  4011fc66  /system/lib/libc.so
I/DEBUG   (  180):          75795a8c  75795a9c  [stack:5147]
I/DEBUG   (  180):          75795a90  401237a8  /system/lib/libc.so
I/DEBUG   (  180):          75795a94  400f16cb  /system/lib/libc.so (dlfree+1190)
I/DEBUG   (  180):          75795a98  4011fc66  /system/lib/libc.so
I/DEBUG   (  180):          75795a9c  78bcec60  [anon:libc_malloc]
I/DEBUG   (  180):          75795aa0  401237a8  /system/lib/libc.so
I/DEBUG   (  180):          75795aa4  00000000  
I/DEBUG   (  180):     #00  75795aa8  4012a000  /system/lib/libc.so
I/DEBUG   (  180):          75795aac  78bcec68  [anon:libc_malloc]
I/DEBUG   (  180):          75795ab0  0000711c  
I/DEBUG   (  180):          75795ab4  40a91e64  /system/lib/libcrypto.so
I/DEBUG   (  180):          75795ab8  75697c7c  
I/DEBUG   (  180):          75795abc  400edc0d  /system/lib/libc.so (free+12)
I/DEBUG   (  180):     #01  75795ac0  b8e00005  
I/DEBUG   (  180):          75795ac4  40a31945  /system/lib/libcrypto.so (CRYPTO_free+36)
I/DEBUG   (  180):     #02  75795ac8  00000024  
I/DEBUG   (  180):          75795acc  761d1240  [anon:libc_malloc]
I/DEBUG   (  180):          75795ad0  42b7f3b8  /dev/ashmem/dalvik-heap (deleted)
I/DEBUG   (  180):          75795ad4  40ac1fb9  /system/lib/libssl.so (SSL_CTX_set_alpn_protos+20)
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r1:
I/DEBUG   (  180):     4011fc44 69747075 64206e6f 63657465 20646574  
I/DEBUG   (  180):     4011fc54 25207962 696c0073 6d5f6362 6f6c6c61  
I/DEBUG   (  180):     4011fc64 6e690063 696c6176 64612064 73657264  
I/DEBUG   (  180):     4011fc74 726f2073 64646120 73736572 20666f20  
I/DEBUG   (  180):     4011fc84 72726f63 20747075 636f6c62 7025206b  
I/DEBUG   (  180):     4011fc94 73617020 20646573 25206f74 616d0073  
I/DEBUG   (  180):     4011fca4 79732078 6d657473 74796220 3d207365  
I/DEBUG   (  180):     4011fcb4 30312520 000a756c 74737973 62206d65  
I/DEBUG   (  180):     4011fcc4 73657479 20202020 25203d20 756c3031  
I/DEBUG   (  180):     4011fcd4 6e69000a 65737520 74796220 20207365  
I/DEBUG   (  180):     4011fce4 3d202020 30312520 000a756c 63617473  
I/DEBUG   (  180):     4011fcf4 6f63206b 70757272 6e6f6974 74656420  
I/DEBUG   (  180):     4011fd04 65746365 73250064 3a64253a 73736120  
I/DEBUG   (  180):     4011fd14 69747265 22206e6f 20227325 6c696166  
I/DEBUG   (  180):     4011fd24 25006465 64253a73 7325203a 7361203a  
I/DEBUG   (  180):     4011fd34 74726573 206e6f69 22732522 69616620  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r3:
I/DEBUG   (  180):     40123788 20646572 7262696c 0a797261 746e6900  
I/DEBUG   (  180):     40123798 616e7265 75625f6c 665f6b6c 00656572  
I/DEBUG   (  180):     401237a8 72666c64 74006565 6c6c616d 735f636f  
I/DEBUG   (  180):     401237b8 6c6c616d 616d7400 636f6c6c 72616c5f  
I/DEBUG   (  180):     401237c8 64006567 6c616d6c 00636f6c 5f797274  
I/DEBUG   (  180):     401237d8 6c616572 5f636f6c 6e756863 6964006b  
I/DEBUG   (  180):     401237e8 736f7073 68635f65 006b6e75 5f646461  
I/DEBUG   (  180):     401237f8 6d676573 00746e65 70657270 5f646e65  
I/DEBUG   (  180):     40123808 6f6c6c61 65720063 7361656c 6e755f65  
I/DEBUG   (  180):     40123818 64657375 6765735f 746e656d 6e6d0073  
I/DEBUG   (  180):     40123828 746e6574 6567202a 746e6d74 28746e65  
I/DEBUG   (  180):     40123838 454c4946 6900292a 7420746e 616e7974  
I/DEBUG   (  180):     40123848 725f656d 746e6928 6863202c 2c2a7261  
I/DEBUG   (  180):     40123858 7a697320 29745f65 696f7600 6e652064  
I/DEBUG   (  180):     40123868 65777064 2928746e 61686300 67202a72  
I/DEBUG   (  180):     40123878 73757465 68737265 286c6c65 6f760029  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r4:
I/DEBUG   (  180):     78bcec40 00000001 00000010 72646e61 2e64696f  
I/DEBUG   (  180):     78bcec50 78bd6dac 78bd6db4 78bd6dcc 78bd6df0  
I/DEBUG   (  180):     78bcec60 00000028 00000029 4012e1d0 4012e1d0  
I/DEBUG   (  180):     78bcec70 2d746661 322f3930 7308302e 2f796470  
I/DEBUG   (  180):     78bcec80 08312e33 70747468 00000028 0000003a  
I/DEBUG   (  180):     78bcec90 3f800000 00000000 00000000 00000000  
I/DEBUG   (  180):     78bceca0 3f800000 42100000 00000000 00000000  
I/DEBUG   (  180):     78bcecb0 3f800000 00000011 00000001 78bcecc0  
I/DEBUG   (  180):     78bcecc0 00000038 00000013 00000001 40120000  
I/DEBUG   (  180):     78bcecd0 00000003 000000eb 405e8f68 00000009  
I/DEBUG   (  180):     78bcece0 00000009 42280000 3f800000 00000000  
I/DEBUG   (  180):     78bcecf0 3f800000 00000000 00000000 3f800000  
I/DEBUG   (  180):     78bced00 00000000 00000000 ffffffff 00005959  
I/DEBUG   (  180):     78bced10 01060001 00000000 75fe6e90 78bbc908  
I/DEBUG   (  180):     78bced20 00000001 00000001 00000000 00000000  
I/DEBUG   (  180):     78bced30 00000000 00000000 00000000 71c321f8  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r5:
I/DEBUG   (  180):     4012e160 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     4012e170 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     4012e180 03d12fac 0000093e 00000060 00008288  
I/DEBUG   (  180):     4012e190 415bb000 7b25e670 7a351d50 00200000  
I/DEBUG   (  180):     4012e1a0 000000e4 06604a08 00000000 00000000  
I/DEBUG   (  180):     4012e1b0 4012e1a8 4012e1a8 4012e1b0 4012e1b0  
I/DEBUG   (  180):     4012e1c0 7ad6b8d8 76f08100 7b316200 7ad6bac0  
I/DEBUG   (  180):     4012e1d0 76f21878 76f21878 78bcec60 78bcec60  
I/DEBUG   (  180):     4012e1e0 7a381868 7a381868 7b3717d0 7b25e900  
I/DEBUG   (  180):     4012e1f0 7b325728 78bbdfc0 7b3006a0 7b373fc8  
I/DEBUG   (  180):     4012e200 7b3736d0 76df44b0 76dfef78 7ad6daf0  
I/DEBUG   (  180):     4012e210 76f13e58 76f13e58 76f26508 76f26508  
I/DEBUG   (  180):     4012e220 76f21828 76f21828 7611e5c0 7611e5c0  
I/DEBUG   (  180):     4012e230 76df4400 76df4400 7b373c28 7b373c28  
I/DEBUG   (  180):     4012e240 7a381508 7a381508 7b372520 7b372520  
I/DEBUG   (  180):     4012e250 76f23c90 76f23c90 7a32f278 7a32f278  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r6:
I/DEBUG   (  180):     415bafe0 415baed8 71dcfef8 415ba7e0 415baeb8  
I/DEBUG   (  180):     415baff0 00000001 71dca000 00000100 00000000  
I/DEBUG   (  180):     415bb000 00000000 0000200b ffffffff 0000001f  
I/DEBUG   (  180):     415bb010 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb020 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb030 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb040 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb050 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb060 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb070 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb080 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb090 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb0a0 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb0b0 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb0c0 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     415bb0d0 00000000 00000000 00000000 00000000  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r7:
I/DEBUG   (  180):     78bcec48 72646e61 2e64696f 78bd6dac 78bd6db4  
I/DEBUG   (  180):     78bcec58 78bd6dcc 78bd6df0 00000028 00000029  
I/DEBUG   (  180):     78bcec68 4012e1d0 4012e1d0 2d746661 322f3930  
I/DEBUG   (  180):     78bcec78 7308302e 2f796470 08312e33 70747468  
I/DEBUG   (  180):     78bcec88 00000028 0000003a 3f800000 00000000  
I/DEBUG   (  180):     78bcec98 00000000 00000000 3f800000 42100000  
I/DEBUG   (  180):     78bceca8 00000000 00000000 3f800000 00000011  
I/DEBUG   (  180):     78bcecb8 00000001 78bcecc0 00000038 00000013  
I/DEBUG   (  180):     78bcecc8 00000001 40120000 00000003 000000eb  
I/DEBUG   (  180):     78bcecd8 405e8f68 00000009 00000009 42280000  
I/DEBUG   (  180):     78bcece8 3f800000 00000000 3f800000 00000000  
I/DEBUG   (  180):     78bcecf8 00000000 3f800000 00000000 00000000  
I/DEBUG   (  180):     78bced08 ffffffff 00005959 01060001 00000000  
I/DEBUG   (  180):     78bced18 75fe6e90 78bbc908 00000001 00000001  
I/DEBUG   (  180):     78bced28 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     78bced38 00000000 71c321f8 71c32900 71c32900  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r8:
I/DEBUG   (  180):     75795aec 74e6d8e8 b8e00005 42b7f3b8 42b7f3a8  
I/DEBUG   (  180):     75795afc 6d8be088 74ef9f08 41525bd0 b8e00005  
I/DEBUG   (  180):     75795b0c 41551111 75697c70 00000001 4164d22f  
I/DEBUG   (  180):     75795b1c 418e2d58 42be2198 41556127 75697c70  
I/DEBUG   (  180):     75795b2c 4164d22c 73293b51 74ef9f18 00000000  
I/DEBUG   (  180):     75795b3c 00000000 cdb00001 00000000 00000000  
I/DEBUG   (  180):     75795b4c 4012e384 00000000 00000000 00000000  
I/DEBUG   (  180):     75795b5c 00000000 00000000 00000080 00000080  
I/DEBUG   (  180):     75795b6c 4278c008 00000000 00000080 415b71f0  
I/DEBUG   (  180):     75795b7c 75697c04 74efa274 42b87ba0 fffffea0  
I/DEBUG   (  180):     75795b8c 74ef9f08 42b87ba0 00000080 00000000  
I/DEBUG   (  180):     75795b9c 4155d8f9 42b87ba0 00000000 42b87ba0  
I/DEBUG   (  180):     75795bac 415b71f0 00000080 41531e40 00000000  
I/DEBUG   (  180):     75795bbc 0000001c 0000001c 415b2c74 4173b9f8  
I/DEBUG   (  180):     75795bcc 0000001c 00000080 415710af 42be2198  
I/DEBUG   (  180):     75795bdc 42b527e8 ffffffff 42b527e8 417392d0  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near r9:
I/DEBUG   (  180):     75697c50 42b56598 75697c90 4163aea8 75697c90  
I/DEBUG   (  180):     75697c60 4163aedc 6d8be088 00000000 00000000  
I/DEBUG   (  180):     75697c70 761d1240 00000000 b8e00005 75697d48  
I/DEBUG   (  180):     75697c80 75065d68 6d7374a8 4163aedc 00000000  
I/DEBUG   (  180):     75697c90 761d1240 00000000 42b7f3a8 417bfaf8  
I/DEBUG   (  180):     75697ca0 00000000 428b9808 42b5a738 00000001  
I/DEBUG   (  180):     75697cb0 417d55b8 428db920 4173a2a8 00000023  
I/DEBUG   (  180):     75697cc0 00000000 75697d18 750685f8 6d5f25e8  
I/DEBUG   (  180):     75697cd0 6e6946ee 00000000 00000000 42b5a738  
I/DEBUG   (  180):     75697ce0 429a11d8 417d55b8 00000001 4173a2a8  
I/DEBUG   (  180):     75697cf0 00000023 00000000 428b9808 42b5a738  
I/DEBUG   (  180):     75697d00 429a11d8 75697d48 75065d62 00000000  
I/DEBUG   (  180):     75697d10 00000400 00000000 75065d52 761d1240  
I/DEBUG   (  180):     75697d20 00000000 42b7f3a8 429b3a38 42b5a738  
I/DEBUG   (  180):     75697d30 42b5a738 75697d90 75065fa6 6d9c4d28  
I/DEBUG   (  180):     75697d40 75065d68 00000000 6d8e6cc0 429b3a38  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near sl:
I/DEBUG   (  180):     74ef9ef8 d1d1d1d1 d1d1d1d1 00000000 0000045b  
I/DEBUG   (  180):     74ef9f08 4162f100 75697c70 6d7374a8 41604000  
I/DEBUG   (  180):     74ef9f18 42b527e8 00000000 75795c40 00000000  
I/DEBUG   (  180):     74ef9f28 75795c94 0000000f 00000000 41525d40  
I/DEBUG   (  180):     74ef9f38 00000000 00000000 6c9b6970 75694300  
I/DEBUG   (  180):     74ef9f48 00000000 00000000 00000001 00004000  
I/DEBUG   (  180):     74ef9f58 00000000 74efbf60 41525d40 4152ac00  
I/DEBUG   (  180):     74ef9f68 00000000 4152ecfc 4152ed70 4152ec20  
I/DEBUG   (  180):     74ef9f78 4152ec40 4152ec9c 00000000 00000000  
I/DEBUG   (  180):     74ef9f88 78be0458 00000028 00000000 00000000  
I/DEBUG   (  180):     74ef9f98 00000000 00000000 00001f48 415b791c  
I/DEBUG   (  180):     74ef9fa8 429c1aa0 6d9cf008 00000002 74efc1a8  
I/DEBUG   (  180):     74ef9fb8 00000001 00000040 00000200 00000000  
I/DEBUG   (  180):     74ef9fc8 00000001 6e68c1a6 6e68c1a6 00000001  
I/DEBUG   (  180):     74ef9fd8 6e6dabf0 6d5ea110 fce47880 06ca5150  
I/DEBUG   (  180):     74ef9fe8 9800738a dd48137e dce06ec1 e4a448ad  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near fp:
I/DEBUG   (  180):     75795b04 41525bd0 b8e00005 41551111 75697c70  
I/DEBUG   (  180):     75795b14 00000001 4164d22f 418e2d58 42be2198  
I/DEBUG   (  180):     75795b24 41556127 75697c70 4164d22c 73293b51  
I/DEBUG   (  180):     75795b34 74ef9f18 00000000 00000000 cdb00001  
I/DEBUG   (  180):     75795b44 00000000 00000000 4012e384 00000000  
I/DEBUG   (  180):     75795b54 00000000 00000000 00000000 00000000  
I/DEBUG   (  180):     75795b64 00000080 00000080 4278c008 00000000  
I/DEBUG   (  180):     75795b74 00000080 415b71f0 75697c04 74efa274  
I/DEBUG   (  180):     75795b84 42b87ba0 fffffea0 74ef9f08 42b87ba0  
I/DEBUG   (  180):     75795b94 00000080 00000000 4155d8f9 42b87ba0  
I/DEBUG   (  180):     75795ba4 00000000 42b87ba0 415b71f0 00000080  
I/DEBUG   (  180):     75795bb4 41531e40 00000000 0000001c 0000001c  
I/DEBUG   (  180):     75795bc4 415b2c74 4173b9f8 0000001c 00000080  
I/DEBUG   (  180):     75795bd4 415710af 42be2198 42b527e8 ffffffff  
I/DEBUG   (  180):     75795be4 42b527e8 417392d0 4157b19d 74efa274  
I/DEBUG   (  180):     75795bf4 415599a3 74ef9f08 4155d94b 42b87ba0  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory near sp:
I/DEBUG   (  180):     75795a88 4011fc66 75795a9c 401237a8 400f16cb  
I/DEBUG   (  180):     75795a98 4011fc66 78bcec60 401237a8 00000000  
I/DEBUG   (  180):     75795aa8 4012a000 78bcec68 0000711c 40a91e64  
I/DEBUG   (  180):     75795ab8 75697c7c 400edc0d b8e00005 40a31945  
I/DEBUG   (  180):     75795ac8 00000024 761d1240 42b7f3b8 40ac1fb9  
I/DEBUG   (  180):     75795ad8 761d1240 42b7f3b8 00000004 73293b83  
I/DEBUG   (  180):     75795ae8 00000003 74e6d8e8 b8e00005 42b7f3b8  
I/DEBUG   (  180):     75795af8 42b7f3a8 6d8be088 74ef9f08 41525bd0  
I/DEBUG   (  180):     75795b08 b8e00005 41551111 75697c70 00000001  
I/DEBUG   (  180):     75795b18 4164d22f 418e2d58 42be2198 41556127  
I/DEBUG   (  180):     75795b28 75697c70 4164d22c 73293b51 74ef9f18  
I/DEBUG   (  180):     75795b38 00000000 00000000 cdb00001 00000000  
I/DEBUG   (  180):     75795b48 00000000 4012e384 00000000 00000000  
I/DEBUG   (  180):     75795b58 00000000 00000000 00000000 00000080  
I/DEBUG   (  180):     75795b68 00000080 4278c008 00000000 00000080  
I/DEBUG   (  180):     75795b78 415b71f0 75697c04 74efa274 42b87ba0  
I/DEBUG   (  180): 
I/DEBUG   (  180): code around pc:
I/DEBUG   (  180):     400f16ac 6a014478 62021e4a f7fdb95a e008fd39  
I/DEBUG   (  180):     400f16bc 4621482a 44784a2a f001447a 4a13f9b3  
I/DEBUG   (  180):     400f16cc 49286014 f8d14479 079a31bc f501d51c  
I/DEBUG   (  180):     400f16dc e8bd70e0 f02b40f8 4823bf01 f7fd4478  
I/DEBUG   (  180):     400f16ec 4822fd0d e7fa4478 42b7688f ae10f43f  
I/DEBUG   (  180):     400f16fc 481fe611 e7f24478 4478481e 6888e7ef  
I/DEBUG   (  180):     400f170c f43f4298 e606aed4 bf00bdf8 deadbaad  
I/DEBUG   (  180):     400f171c 0003cf46 0003cf38 0003cea0 0003247e  
I/DEBUG   (  180):     400f172c 0003ce14 0003ce02 0003cd8a 0003cd68  
I/DEBUG   (  180):     400f173c 0003cd0c 0003ccf6 0003cc90 0003cc78  
I/DEBUG   (  180):     400f174c 0003cc66 0003cc0e 0003cbe8 0003cb5e  
I/DEBUG   (  180):     400f175c 0003cb08 0003caee 0003cad0 0002e5a0  
I/DEBUG   (  180):     400f176c 000320e0 0003caac 000320bc 000320b4  
I/DEBUG   (  180):     400f177c 000320a4 0003209e 460db538 b1704601  
I/DEBUG   (  180):     400f178c 0200ea45 f405fb00 04030c10 4620b143  
I/DEBUG   (  180):     400f179c ed90f028 bf1842a8 34fff04f 4604e000  
I/DEBUG   (  180): 
I/DEBUG   (  180): code around lr:
I/DEBUG   (  180):     400f16a8 482e61a3 6a014478 62021e4a f7fdb95a  
I/DEBUG   (  180):     400f16b8 e008fd39 4621482a 44784a2a f001447a  
I/DEBUG   (  180):     400f16c8 4a13f9b3 49286014 f8d14479 079a31bc  
I/DEBUG   (  180):     400f16d8 f501d51c e8bd70e0 f02b40f8 4823bf01  
I/DEBUG   (  180):     400f16e8 f7fd4478 4822fd0d e7fa4478 42b7688f  
I/DEBUG   (  180):     400f16f8 ae10f43f 481fe611 e7f24478 4478481e  
I/DEBUG   (  180):     400f1708 6888e7ef f43f4298 e606aed4 bf00bdf8  
I/DEBUG   (  180):     400f1718 deadbaad 0003cf46 0003cf38 0003cea0  
I/DEBUG   (  180):     400f1728 0003247e 0003ce14 0003ce02 0003cd8a  
I/DEBUG   (  180):     400f1738 0003cd68 0003cd0c 0003ccf6 0003cc90  
I/DEBUG   (  180):     400f1748 0003cc78 0003cc66 0003cc0e 0003cbe8  
I/DEBUG   (  180):     400f1758 0003cb5e 0003cb08 0003caee 0003cad0  
I/DEBUG   (  180):     400f1768 0002e5a0 000320e0 0003caac 000320bc  
I/DEBUG   (  180):     400f1778 000320b4 000320a4 0003209e 460db538  
I/DEBUG   (  180):     400f1788 b1704601 0200ea45 f405fb00 04030c10  
I/DEBUG   (  180):     400f1798 4620b143 ed90f028 bf1842a8 34fff04f  
I/DEBUG   (  180): 
I/DEBUG   (  180): memory map around fault addr deadbaad:
I/DEBUG   (  180):     becbe000-becdf000 rw- [stack]
I/DEBUG   (  180):     (no map for address)
I/DEBUG   (  180):     ffff0000-ffff1000 r-x [vectors]
I/BootReceiver(  769): Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
W/ActivityManager(  769):   Force finishing activity no.finn.android.dev/no.finn.android.ui.activity.HomeActivity
I/WindowState(  769): WIN DEATH: Window{42f54218 u0 no.finn.android.dev/no.finn.android.ui.activity.HomeActivity}
I/WindowState(  769): WIN DEATH: Window{433f33d8 u0 Toast}
W/ActivityManager(  769): Exception thrown during pause
W/ActivityManager(  769): android.os.DeadObjectException
W/ActivityManager(  769):   at android.os.BinderProxy.transact(Native Method)
W/ActivityManager(  769):   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:660)
W/ActivityManager(  769):   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:761)
W/ActivityManager(  769):   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2455)
W/ActivityManager(  769):   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2329)
W/ActivityManager(  769):   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2035)
W/ActivityManager(  769):   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:9543)
W/ActivityManager(  769):   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:9436)
W/ActivityManager(  769):   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:10081)
W/ActivityManager(  769):   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:9632)
W/ActivityManager(  769):   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
I/ActivityManager(  769): Process no.finn.android.dev (pid 5118) has died.
@swankjesse
Copy link
Member

Duplicate of #647. Workaround the problem by adding this code to run early in your program:

OkHttpClient okHttpClient = new OkHttpClient();
URL.setURLStreamHandlerFactory(okHttpClient);

It's caused by mixing both AOSP's built-in HttpURLConnection and OkHttp in the same process. There's a bug in Android's TLS stack that fixes the problem, but that fix isn't widely available.

@andaag
Copy link
Author

andaag commented Mar 29, 2014

We already have that workaround in, first line in Application's oncreate.

@swankjesse swankjesse reopened this Mar 29, 2014
@swankjesse
Copy link
Member

Hey @kruton, @andaag is seeing a crash in SSL_CTX_set_alpn_protos. Is it unsafe for us to request ALPN before there's a public API for it?

@swankjesse swankjesse changed the title invalid address or address of corrupt block Native crash in SSL_CTX_set_alpn_protos Mar 29, 2014
@kruton
Copy link
Contributor

kruton commented Mar 30, 2014

Hmm, maybe this is from using the same context on multiple threads?

@swankjesse
Copy link
Member

@kruton that should be supported. Is sharing an SSLContext between threads broken in 4.4?

@kruton
Copy link
Contributor

kruton commented Mar 30, 2014

I meant calling SSL_CTX_set_alpn_protos from multiple threads simultaneously. These should all probably be using SSL_set_alpn_protos instead. Sigh.

@swankjesse
Copy link
Member

(OkHttp code calls OpenSSLSocketImpl.setAlpnProtocols().)

@kruton
Copy link
Contributor

kruton commented Mar 30, 2014

Yes, but the startHandshake code calls SSL_CTX_set_alpn_protos which does not look thread-safe at all.

@swankjesse
Copy link
Member

@kruton I'll open an AOSP bug?

@kruton
Copy link
Contributor

kruton commented Mar 30, 2014

Sounds good.

@swankjesse
Copy link
Member

@swankjesse
Copy link
Member

In the interim I'll disable ALPN...

swankjesse added a commit that referenced this issue Mar 31, 2014
@swankjesse
Copy link
Member

ALPN disabled. Still to do: cherry-pick to 1.5 branch and release that.

@andaag
Copy link
Author

andaag commented Apr 7, 2014

Any update on merging this to the 1.5 branch?

@swankjesse
Copy link
Member

Will do this week.

@swankjesse
Copy link
Member

It's been 8 days and I still haven't cherry-picked. I was hoping to find a reproducible fix for another, unrelated issue, but that's not revealing itself.

swankjesse added a commit that referenced this issue Apr 15, 2014
#666
(cherry picked from commit 4c86085)
@swankjesse
Copy link
Member

1.5.4 went out last night.

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

No branches or pull requests

3 participants