Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1) 관련


안드로이드 버전 : 4.1.2
사용 jni : fresco, 외부 블루투스 솔루션

안녕하세요 처음으로 질문을 올리게 됩니다 ㅎㅎ

다름이나라 현재 앱을 사용 중 가끔 아주 가끔 앱이 오류 없이 종료하게 됩니다.

로그를 확인결과 Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1) 와 아래와 같은 오류가 뜸니다

=========================================================================
A/libc: Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 31762 (.dys.membership)
I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG: Build fingerprint: 'ALL_N_G/mypad2_kyowon/mypad2:4.1.2/JZO54L/KYO00.1.0.05:user/release-keys'
I/DEBUG: pid: 31762, tid: 31762, name: .dys.membership  >>> com.kyowon.dys.membership <<<
I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
I/DEBUG:     r0 00000001  r1 00000000  r2 00000006  r3 034fee9b
I/DEBUG:     r4 00000000  r5 617ed968  r6 00000006  r7 40135534
I/DEBUG:     r8 0000000a  r9 0000000a  sl 430d6928  fp 0000000a
I/DEBUG:     ip 40174e60  sp beed6458  lr 401001e3  pc 40100222  cpsr 080d0070
I/DEBUG:     d0  0000000000000000  d1  3f80000000000000
I/DEBUG:     d2  0000000000000000  d3  0000000000000000
I/DEBUG:     d4  c1c0f800c1bcf800  d5  3f80000000000008
I/DEBUG:     d6  3f8000003f800000  d7  41d0000041d00000
I/DEBUG:     d8  43c1000000000205  d9  4460c000433c0000
I/DEBUG:     d10 400921fb44014000  d11 3fdfffe340b86cdf
I/DEBUG:     d12 4000000000000000  d13 3f0000003f7fff8d
I/DEBUG:     d14 000000003f7fff8d  d15 0000000000000000
I/DEBUG:     d16 1000010500000000  d17 0000000000000000
I/DEBUG:     d18 0000443200003156  d19 000002cd000003ce
I/DEBUG:     d20 0000000000000000  d21 0000000000000000
I/DEBUG:     d22 0000000000000000  d23 090a0b0c0d0e0f10
I/DEBUG:     d24 000012c7000020e7  d25 0000129500000eeb
I/DEBUG:     d26 000002cd000003ce  d27 000002fb00000257
I/DEBUG:     d28 000002cd000003ce  d29 000002fb00000257
I/DEBUG:     d30 0000000900000009  d31 0000000900000009
I/DEBUG:     scr 60000013
I/DEBUG:     #00  pc 00014222  /system/lib/libc.so (dlmalloc+117)
I/DEBUG:     #01  pc 0001714f  /system/lib/libc.so (malloc+10)
I/DEBUG:     #02  pc 0000f01d  /system/lib/libutils.so (android::SharedBuffer::alloc(unsigned int)+8)
I/DEBUG:     #03  pc 0000f0b5  /system/lib/libutils.so (android::SharedBuffer::editResize(unsigned int) const+36)
I/DEBUG:     #04  pc 0000fdfd  /system/lib/libutils.so (android::String16::setTo(unsigned short const*, unsigned int)+16)
I/DEBUG:     #05  pc 0007076b  /system/lib/libandroid_runtime.so (android::TextLayoutCacheKey::TextLayoutCacheKey(android::TextLayoutCacheKey const&)+74)
I/DEBUG:     #06  pc 00071759  /system/lib/libandroid_runtime.so
I/DEBUG:     #07  pc 00071983  /system/lib/libandroid_runtime.so (android::TextLayoutCache::getValue(SkPaint const*, unsigned short const*, int, int, int, int)+94)
I/DEBUG:     #08  pc 00071d25  /system/lib/libandroid_runtime.so (android::TextLayoutEngine::getValue(SkPaint const*, unsigned short const*, int, int, int, int)+36)
I/DEBUG:     #09  pc 00070355  /system/lib/libandroid_runtime.so (android::TextLayout::getTextRunAdvances(SkPaint*, unsigned short const*, int, int, int, int, float*, float*)+42)
I/DEBUG:     #10  pc 0006d3a1  /system/lib/libandroid_runtime.so
I/DEBUG:     #11  pc 0006d523  /system/lib/libandroid_runtime.so
I/DEBUG:     #12  pc 0001de30  /system/lib/libdvm.so (dvmPlatformInvoke+112)
I/DEBUG:     #13  pc 0004d083  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
I/DEBUG:     #14  pc 00027260  /system/lib/libdvm.so
I/DEBUG:     #15  pc 0002bb68  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
I/DEBUG:     #16  pc 0005fab7  /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
I/DEBUG:     #17  pc 0006700d  /system/lib/libdvm.so
I/DEBUG:     #18  pc 00027260  /system/lib/libdvm.so
I/DEBUG:     #19  pc 0002bb68  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
I/DEBUG:     #20  pc 0005f7f1  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
I/DEBUG:     #21  pc 00049673  /system/lib/libdvm.so
I/DEBUG:     #22  pc 0004698d  /system/lib/libandroid_runtime.so
I/DEBUG:     #23  pc 0004746f  /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390)
I/DEBUG:     #24  pc 00000dcf  /system/bin/app_process
I/DEBUG:          beed6418  beed64f0  [stack]
I/DEBUG:          beed641c  00000010  
I/DEBUG:          beed6420  00000000  
I/DEBUG:          beed6424  5cf9b0a8  
I/DEBUG:          beed6428  00000016  
I/DEBUG:          beed642c  5a0d0f80  
I/DEBUG:          beed6430  c0000000  
I/DEBUG:          beed6434  0000002e  
I/DEBUG:          beed6438  00000000  
I/DEBUG:          beed643c  0000001e  
I/DEBUG:          beed6440  c0000000  
I/DEBUG:          beed6444  00000026  
I/DEBUG:          beed6448  00000000  
I/DEBUG:          beed644c  00000016  
I/DEBUG:          beed6450  df0027ad  
I/DEBUG:          beed6454  00000000  
I/DEBUG:     #00  beed6458  616c2150  
I/DEBUG:          beed645c  0000001e  
I/DEBUG:          beed6460  0000000e  
I/DEBUG:          beed6464  0000001e  
I/DEBUG:          beed6468  00001000  
I/DEBUG:          beed646c  00000016  
I/DEBUG:          beed6470  0000000a  
I/DEBUG:          beed6474  00000016  
I/DEBUG:          beed6478  430d6928  /dev/ashmem/dalvik-heap (deleted)
I/DEBUG:          beed647c  0000000a  
I/DEBUG:          beed6480  0000000a  
I/DEBUG:          beed6484  430d6928  /dev/ashmem/dalvik-heap (deleted)
I/DEBUG:          beed6488  0000000a  
I/DEBUG:          beed648c  40103151  /system/lib/libc.so (malloc+12)
I/DEBUG:     #01  beed6490  0000008b  
I/DEBUG:          beed6494  4016b021  /system/lib/libutils.so (android::SharedBuffer::alloc(unsigned int)+12)
I/DEBUG:     #02  beed6498  414fc020  [heap]
I/DEBUG:          beed649c  4016b0b9  /system/lib/libutils.so (android::SharedBuffer::editResize(unsigned int) const+40)
I/DEBUG:     034fee78 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG:     034fee88 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG:     034fee98 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG:     034feea8 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG:     034feeb8 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG:     617ed948 00000000 00000000 00000000 00000000  ................
I/DEBUG:     617ed958 00000000 00000000 00000000 00000000  ................
I/DEBUG:     617ed968 00000001 00000031 00000000 00000000  ....1...........
I/DEBUG:     617ed978 00000000 00000000 00000000 00000000  ................
I/DEBUG:     617ed988 00000000 00001400 00000500 000002cc  ................
I/DEBUG:     40135514 4013550c 4013550c 651ee798 5d957af8  .U.@.U.@...e.z.]
I/DEBUG:     40135524 651cbc30 5cf17550 65229578 5d121a18  0..ePu.\x."e...]
I/DEBUG:     40135534 652af378 656c4177 617ed968 65194f88  x.*ewAleh.~a.O.e
I/DEBUG:     40135544 65723e70 60731ff8 65722fe8 65722fe8  p>re..s`./re./re
I/DEBUG:     40135554 5cbc5428 5cbc5428 5cbba218 5cdd3e90  (T.\(T.\...\.>.\
I/DEBUG:     430d6908 00460045 0000004e 00000000 0000002b  E.F.N.......+...
I/DEBUG:     430d6918 41503928 00000000 0000000a 00000000  (9PA............
I/DEBUG:     430d6928 006d0053 00720061 00200074 c5b4b2e8  S.m.a.r.t. .....
I/DEBUG:     430d6938 c790c0c1 00000023 415030b8 00000000  ....#....0PA....
I/DEBUG:     430d6948 430d6960 22c3ab3c 00000000 00000007  `i.C<.."........
I/DEBUG:     40174e40 00000000 400fac48 400cf3a9 4008ce90  ....H..@...@...@
I/DEBUG:     40174e50 4003c911 4003c907 40103159 4010b795  ...@...@Y1.@...@
I/DEBUG:     40174e60 40103145 400fa1fc 400f9d78 400cf2f5  E1.@...@x..@...@
I/DEBUG:     40174e70 4003c8f9 400fe490 400fe890 400fec10  ...@...@...@...@
I/DEBUG:     40174e80 40103181 40143629 40143637 40142048  .1.@)6.@76.@H .@
I/DEBUG:     beed6438 00000000 0000001e c0000000 00000026  ............&...
I/DEBUG:     beed6448 00000000 00000016 df0027ad 00000000  .........'......
I/DEBUG:     beed6458 616c2150 0000001e 0000000e 0000001e  P!la............
I/DEBUG:     beed6468 00001000 00000016 0000000a 00000016  ................
I/DEBUG:     beed6478 430d6928 0000000a 0000000a 430d6928  (i.C........(i.C
I/DEBUG:     40100200 447f08e2 fa36683e 079df302 f003d042  ...D>h6.....B...
I/DEBUG:     40100210 37240001 0401f080 eb0718a6 68bd07c6  ..$7...........h
I/DEBUG:     40100220 68e368ac d00842ab 0b94f8df f8df462a  .h.h.B......*F..
I/DEBUG:     40100230 44781b94 f7ff4479 42a7fc83 f8dfd10c  ..xDyD.....B....
I/DEBUG:     40100240 2001cb88 fa1044fc f8dcf206 ea233000  ... .D.......0#.
I/DEBUG:     401001c0 b930fd21 2becf8df f8d2447a 078b11b4  !.0....+zD......
I/DEBUG:     401001d0 f8dfd50a 447d5be4 70dcf505 f7fe2500  .....[}D...p.%..
I/DEBUG:     401001e0 2800e958 8249f041 f2002cf4 2c0a823f  X..(A.I..,..?..,
I/DEBUG:     401001f0 340bd903 0407f024 2410e000 7bbcf8df  ...4$......$...{
I/DEBUG:     40100200 447f08e2 fa36683e 079df302 f003d042  ...D>h6.....B...
I/BootReceiver: Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
D/dalvikvm: GC_CONCURRENT freed 1718K, 30% free 17032K/24327K, paused 3ms+6ms, total 72ms
D/xx: trangtrangtrang check isBrowser  >pkgName : com.kyowon.dys.membership
D/xx: trangtrangtrang doCheckPackage curImPortanceReasonCode: 0: curTopPackage : com.kyowon.dys.membership, curTopClass: com.kyowon.dys.membership.activity.DysMainActivity
D/xx: trangtrangtrang doCheckPackage else package chanaged
D/xx: trangtrangtrang doCheckPackage else package chanaged For Block same package but activity diff
D/xx: Trangtrangtrang MainService checkPackageBlock : com.kyowon.dys.membership ,activityName: com.kyowon.dys.membership.activity.DysMainActivity ,useTime: 0
D/xx: checkPackageBlock > App useService : useBlock = 1 : 1
D/xx: checkPackageBlock > App useService : packageName : com.kyowon.dys.membership, mContext.getPackageName() : kr.co.plustech.android.kyowon.safechild
D/xx: device : true : true : false
D/xx: cursor count : 1
D/xx: checkBlockTypeApp : 0 : -1 : com.kyowon.dys.membership
I/xx: checkPhoneBlockTime > mCursor.getCount() : 0
I/xx: getBlockingType > mCursor.getCount() : 1, packageName : com.kyowon.dys.membership, app_set : 0
I/xx: checkAppBlockType > blockingType : 0
I/xx: getBlockingType > mCursor.getCount() : 1, packageName : com.kyowon.dys.membership, app_set : 0
I/xx: checkAppBlockTime > blockingType : 0
I/xx: checkAppBlockTime > mCursor.getCount() : 0
I/WindowState: WIN DEATH: Window{41b5eb18 com.kyowon.dys.membership/com.kyowon.dys.membership.activity.DysMainActivity paused=false}
I/ActivityManager: Process com.kyowon.dys.membership (pid 31762) has died.
/? W/ActivityManager: Force removing ActivityRecord{41af5318 com.kyowon.dys.membership/.activity.DysMainActivity}: app died, no saved state
=========================================================================
의심이 되는것은 현재 단말 다른앱에서 jni 오류가 1~2초에 한번 꼴로 반복되어 발생합니다 그 오류는 아래와 같습니다. .

=========================================================================
  I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG: Build fingerprint: 'ALL_N_G/mypad2_kyowon/mypad2:4.1.2/JZO54L/KYO00.1.0.05:user/release-keys'
I/DEBUG: pid: 1798, tid: 1798, name: sh  >>> /system/bin/sh <<<
I/DEBUG: signal 13 (SIGPIPE), code -6 (?), fault addr --------
I/DEBUG:     r0 ffffffe0  r1 41965ef0  r2 000008ae  r3 00000000
I/DEBUG:     r4 00000000  r5 00000003  r6 41965ecc  r7 00000004
I/DEBUG:     r8 41965ef0  r9 41965e40  sl 41965ef0  fp 400b8cb8
I/DEBUG:     ip 400bcf40  sp bea857b0  lr 400a5501  pc 4014a9b8  cpsr 000b0010
I/DEBUG:     d0  0000000000000000  d1  0000000000000000
I/DEBUG:     d2  0000000000000000  d3  0000000000000000
I/DEBUG:     d4  0000000000000000  d5  0000000000000000
I/DEBUG:     d6  0000000000000000  d7  28f6f0c200000000
I/DEBUG:     d8  0000000000000000  d9  0000000000000000
I/DEBUG:     d10 0000000000000000  d11 0000000000000000
I/DEBUG:     d12 0000000000000000  d13 0000000000000000
I/DEBUG:     d14 0000000000000000  d15 0000000000000000
I/DEBUG:     d16 41c47b78615a1cac  d17 3f50624dd2f1a9fc
I/DEBUG:     d18 41b0386290000000  d19 0000000000000000
I/DEBUG:     d20 0000000000000000  d21 0000000000000000
I/DEBUG:     d22 0000000000000000  d23 0000000000000000
I/DEBUG:     d24 0000000000000000  d25 0000000000000000
I/DEBUG:     d26 0000000000000000  d27 0000000000000000
I/DEBUG:     d28 0000000000000000  d29 0000000000000000
I/DEBUG:     d30 0000000000000000  d31 0000000000000000
I/DEBUG:     scr 00000010
I/DEBUG:     #00  pc 0000c9b8  /system/lib/libc.so (write+12)
I/DEBUG:     #01  pc 0000e4fd  /system/bin/mksh
I/DEBUG:          bea85770  0000100b  
I/DEBUG:          bea85774  4015367b  /system/lib/libc.so (dlmalloc+5326)
I/DEBUG:          bea85778  00000000  
I/DEBUG:          bea8577c  00000004  
I/DEBUG:          bea85780  41965ea0  [heap]
I/DEBUG:          bea85784  4015367b  /system/lib/libc.so (dlmalloc+5326)
I/DEBUG:          bea85788  00000000  
I/DEBUG:          bea8578c  400bceac  /system/bin/mksh
I/DEBUG:          bea85790  41965e38  [heap]
I/DEBUG:          bea85794  400c1cc4  
I/DEBUG:          bea85798  00000000  
I/DEBUG:          bea8579c  41965ef0  [heap]
I/DEBUG:          bea857a0  00000000  
I/DEBUG:          bea857a4  00000003  
I/DEBUG:          bea857a8  df0027ad  
I/DEBUG:          bea857ac  00000000  
I/DEBUG:     #00  bea857b0  00000000  
I/DEBUG:          bea857b4  000008ae  
I/DEBUG:     #01  bea857b8  41965e38  [heap]
I/DEBUG:          bea857bc  00013804  
I/DEBUG:          bea857c0  00000001  
I/DEBUG:          bea857c4  400bceac  /system/bin/mksh
I/DEBUG:          bea857c8  400c1d84  
I/DEBUG:          bea857cc  400c1d88  
I/DEBUG:          bea857d0  400c1bb0  
I/DEBUG:          bea857d4  41965e38  [heap]
I/DEBUG:          bea857d8  41962f9c  [heap]
I/DEBUG:          bea857dc  400c1df6  
I/DEBUG:          bea857e0  00000001  
I/DEBUG:          bea857e4  400a25cd  /system/bin/mksh
I/DEBUG:          bea857e8  41965e38  [heap]
I/DEBUG:          bea857ec  0000001f  
I/DEBUG:          bea857f0  41965ebc  [heap]
I/DEBUG:          bea857f4  41965a4c  [heap]
I/DEBUG:     41965ed0 656e2f63 74782f74 6174715f 64697567  c/net/xt_qtaguid
I/DEBUG:     41965ee0 6174732f 00007374 00000000 0000100b  /stats..........
I/DEBUG:     41965ef0 20786469 63616669 63612065 745f7463  idx iface acct_t
I/DEBUG:     41965f00 685f6761 75207865 745f6469 695f6761  ag_hex uid_tag_i
I/DEBUG:     41965f10 6320746e 735f746e 72207465 79625f78  nt cnt_set rx_by
I/DEBUG:     41965eac 40187514 00000010 00000012 00000000  .u.@............
I/DEBUG:     41965ebc 00746163 00000000 0000002b 41965eb8  cat.....+....^.A
I/DEBUG:     41965ecc 6f72702f 656e2f63 74782f74 6174715f  /proc/net/xt_qta
I/DEBUG:     41965edc 64697567 6174732f 00007374 00000000  guid/stats......
I/DEBUG:     41965eec 0000100b 20786469 63616669 63612065  ....idx iface ac
I/DEBUG:     41965ed0 656e2f63 74782f74 6174715f 64697567  c/net/xt_qtaguid
I/DEBUG:     41965ee0 6174732f 00007374 00000000 0000100b  /stats..........
I/DEBUG:     41965ef0 20786469 63616669 63612065 745f7463  idx iface acct_t
I/DEBUG:     41965f00 685f6761 75207865 745f6469 695f6761  ag_hex uid_tag_i
I/DEBUG:     41965f10 6320746e 735f746e 72207465 79625f78  nt cnt_set rx_by
I/DEBUG:     41965e20 00000000 00000004 00000000 0000001b  ................
I/DEBUG:     41965e30 41965ec8 00000000 41965ebc 41965ecc  .^.A.....^.A.^.A
I/DEBUG:     41965e40 00000000 00000063 41965e30 41965b08  ....c...0^.A.[.A
I/DEBUG:     41965e50 bea85c5c 00000000 00000000 4196200c  \\........... .A
I/DEBUG:     41965e60 41965e4c 4196597c 00000006 00000003  L^.A|Y.A........
I/DEBUG:     41965ed0 656e2f63 74782f74 6174715f 64697567  c/net/xt_qtaguid
I/DEBUG:     41965ee0 6174732f 00007374 00000000 0000100b  /stats..........
I/DEBUG:     41965ef0 20786469 63616669 63612065 745f7463  idx iface acct_t
I/DEBUG:     41965f00 685f6761 75207865 745f6469 695f6761  ag_hex uid_tag_i
I/DEBUG:     41965f10 6320746e 735f746e 72207465 79625f78  nt cnt_set rx_by
I/DEBUG:     400b8c98 27000a27 49005c00 22005346 27262423  '..'.\.IFS."#$&'
I/DEBUG:     400b8ca8 3a2a2928 3e3d3c3b 605c5b3f 007d7c7b  ()*:;<=>?[\`{|}.
I/DEBUG:     400b8cb8 203a7325 67007325 68626172 00747369  %s: %s.grabhist.
I/DEBUG:     400b8cc8 20646162 74736968 2079726f 61727261  bad history arra
I/DEBUG:     400b8cd8 20200079 25002020 64252073 20636600  y.    .%s %d.fc 
I/DEBUG:     400bcf20 4014b144 40157a01 40160b99 4014b518  D..@.z.@...@...@
I/DEBUG:     400bcf30 4014a5ac 4014a990 4014cc48 40155145  ...@...@H..@EQ.@
I/DEBUG:     400bcf40 4014a9ac 4015689d 4014a854 4015792d  ...@.h.@T..@-y.@
I/DEBUG:     400bcf50 4014b960 40157965 4014bd24 4014b10c  `..@ey.@$..@...@
I/DEBUG:     400bcf60 4014a838 4014a81c 4014a638 4014b300  8..@...@8..@...@
I/DEBUG:     bea85790 41965e38 400c1cc4 00000000 41965ef0  8^.A...@.....^.A
I/DEBUG:     bea857a0 00000000 00000003 df0027ad 00000000  .........'......
I/DEBUG:     bea857b0 00000000 000008ae 41965e38 00013804  ........8^.A.8..
I/DEBUG:     bea857c0 00000001 400bceac 400c1d84 400c1d88  .......@...@...@
I/DEBUG:     bea857d0 400c1bb0 41965e38 41962f9c 400c1df6  ...@8^.A./.A...@
I/DEBUG:     4014a998 ef000000 e8bd0090 e1b00000 512fff1e  ............../Q
I/DEBUG:     4014a9a8 ea00b55e e92d0090 e3a07004 ef000000  ^.....-..p......
I/DEBUG:     4014a9b8 e8bd0090 e1b00000 512fff1e ea00b557  ........../QW...
I/DEBUG:     4014a9c8 e1a0c00d e92d00f0 e89c0070 e3a070b4  ......-.p....p..
I/DEBUG:     4014a9d8 ef000000 e8bd00f0 e1b00000 512fff1e  ............../Q
I/DEBUG:     400a54e0 f7f36800 4631ed6a 46584602 fe64f009  .h..j.1F.FXF..d.
I/DEBUG:     400a54f0 b320e025 200146c2 463a4651 ed80f7f3  %. ..F. QF:F....
I/DEBUG:     400a5500 bf1c1c43 0707ebc0 d1154482 ed1ef7f3  C........D......
I/DEBUG:     400a5510 2a046802 f7f3d010 6800ed1a ed4cf7f3  .h.*.......h..L.
I/DEBUG:     400a5520 44794916 48164602 f0094478 b17dfe45  .IyD.F.HxD..E.}.
I/BootReceiver: Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)

너무 오류코드만 올린것 같은데 분석이 되지않아 취합할수 있는 오류는 다 올려 보았습니다 ㅠㅠ

위에 오류는 jni에서 메모리참조하다가 오류난다고 하던데 정확히 알수가 없어서 도움 요청드립니다.

  • 2016년 06월 01일에 수정됨
    루비와 파이썬을 좋아합니다. 새로운 언어를 배우는것도 좋아해요. 모바일 게임도 조금 만들어 봤습니다.
  • 2016년 03월 28일에 작성됨

조회수 2553


2 답변


좋아요
0
싫어요
채택취소하기

내용이 보기 완전 불편하네요.

원론적으로 잘못된 메모리를 참조하여 프로그램이 사망한겁니다. 위에 보여주신 backtrace에서 표시하는 함수의 소스를 보고, 원치 않는 값이 포인터에 들어가는지 확인 해보셔야합니다.

혹시 외부 라이브러리를 사용하신 거라면, 해당 라이브러리 호출시 특정 매개변수에 따라서 저런 문제가 발생 할 수도 있을테니 조절해보는 것 정도가 방법이겠죠.

  • 2016년 03월 28일에 작성됨

  • 저도 올리면서 아 너무 보기 불편한데.. 라고 생각하고있었네요 ㅠㅠ 흠...........찾아봐도 왼쪽하고 오른쪽하고 표시되는게 다르네요 답변 감사드립니다 ㅎㅎ    dunkindonass   2016.3.28 14:37     

아마 별 도움은 안되실테지만, 조금 더 설명 드리겠습니다.

아마 jni 내에서 사용하는 메모리에 침범이 생긴것 같습니다 (10바이트 할당한 메모리에 11바이트 쓰는 등..) 이런 일이 생겼을 경우에는 OS나 그때의 환경에 따라 동작이 다를 수 있는데, 보통 경고를 발생시키나, 무시되면서 넘어가는 경우가 있습니다.

그리고 이런 것이 중첩되면서 메모리 할당을 하려다 해당 오류를 내면서 프로그램이 강제 종료됩니다.

※ 위의 상황에 오류로그가 난다면 조금은 찾기 쉽겠지만, 그게 아닌 경우에는 jni 코드를 다 뒤져봐야 할 정도로 간단하지 않은 상황이네요.

  • 2016년 03월 29일에 작성됨

  • 답변을 늦게봣네요 ㅠㅠ 답변 감사드립니다~    dunkindonass   2016.4.6 10:07     

로그인이 필요한 기능입니다.

Hashcode는 개발자들을 위한 무료 QnA사이트 입니다. 작성한 답변에 다른 개발자들이 댓글을 작성하거나 좋아요/싫어요를 할 수 있기 때문에 계정을 필요로 합니다.
► 로그인
► 계정만들기
Close