Random crash while executing script on random devices
I'm not really sure what causes this, but this is a copy of the logcat:
07-24 17:13:50.309: A/libc(24079): Fatal signal 7 (SIGBUS) at 0x74bdebe0 (code=0), thread 24102 (Script Executio)
07-24 17:13:50.410: I/DEBUG(156): *** *** *** *** *** *** *** *** *** *** *** *** *** *** ** ***
07-24 17:13:50.410: I/DEBUG(156): Build fingerprint: 'google/occam/mako:4.2.2/JDQ39/573038:user/release-keys'
07-24 17:13:50.410: I/DEBUG(156): Revision: '11'
07-24 17:13:50.410: I/DEBUG(156): pid: 24079, tid: 24102, name: Script Executio >>> com.mypermissions.mypermissions <<<
07-24 17:13:50.410: I/DEBUG(156): signal 7 (SIGBUS), code 0 (?), fault addr 74bdebe0
07-24 17:13:50.920: I/DEBUG(156): r0 00000004 r1 00000000 r2 00000001 r3 00000001
07-24 17:13:50.920: I/DEBUG(156): r4 74c17290 r5 74c2a4c8 r6 ffffe9cc r7 74c2a4c8
07-24 17:13:50.920: I/DEBUG(156): r8 79c73010 r9 00000000 sl 73e12bec fp 73e12c64
07-24 17:13:50.920: I/DEBUG(156): ip 00004000 sp 73e124b8 lr 74bdfad8 pc 74bdebe0 cpsr 20000010
07-24 17:13:50.920: I/DEBUG(156): d0 66206e6f6974610a d1 202d2064656c6923
07-24 17:13:50.920: I/DEBUG(156): d2 20737365636f720a d3 6d20666f2074750a
07-24 17:13:50.920: I/DEBUG(156): d4 e59fc034e5931003 d5 1a000006e151000c
07-24 17:13:50.920: I/DEBUG(156): d6 e58d3008e5903017 d7 e591300be5918017
07-24 17:13:50.920: I/DEBUG(156): d8 0000000000000000 d9 0000000000000000
07-24 17:13:50.920: I/DEBUG(156): d10 0000000000000000 d11 0000000000000000
07-24 17:13:50.920: I/DEBUG(156): d12 0000000000000000 d13 0000000000000000
07-24 17:13:50.920: I/DEBUG(156): d14 0000000000000000 d15 0000000000000000
07-24 17:13:50.920: I/DEBUG(156): d16 0000000000004fff d17 ffffffffffffffff
07-24 17:13:50.920: I/DEBUG(156): d18 0000000000004001 d19 00bc800000b98000
07-24 17:13:50.920: I/DEBUG(156): d20 00b6802e00b3802d d21 00bc802f00b9802f
07-24 17:13:50.920: I/DEBUG(156): d22 0707070703030303 d23 0000002f0000002e
07-24 17:13:50.920: I/DEBUG(156): d24 0000000000000000 d25 0000000000000000
07-24 17:13:50.920: I/DEBUG(156): d26 0000002f0000002f d27 0000002f0000002f
07-24 17:13:50.920: I/DEBUG(156): d28 0001000000010000 d29 0001000000010000
07-24 17:13:50.920: I/DEBUG(156): d30 0003000000030000 d31 0003000000030000
07-24 17:13:50.920: I/DEBUG(156): scr 22000090
07-24 17:13:50.920: I/DEBUG(156): backtrace:
07-24 17:13:50.920: I/DEBUG(156): #00 pc 003d0be0 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (v8::internal::OS::DebugBreak())
07-24 17:13:50.920: I/DEBUG(156): #01 pc 003d1ad4 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (v8::internal::OS::Abort()+28)
07-24 17:13:50.920: I/DEBUG(156): #02 pc 0018ae20 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (API_Fatal(char const_, char const_, ...)+60)
07-24 17:13:50.920: I/DEBUG(156): #03 pc 0015e08c /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.920: I/DEBUG(156): #04 pc 0015f7d0 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (v8::internal::V8::FatalProcessOutOfMemory(char const_, bool)+416)
07-24 17:13:50.920: I/DEBUG(156): #05 pc 002431c4 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (v8::internal::Isolate::Init(v8::internal::Deserializer_)+1208)
07-24 17:13:50.920: I/DEBUG(156): #06 pc 00345108 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (v8::Locker::Initialize(v8::Isolate_)+104)
07-24 17:13:50.920: I/DEBUG(156): #07 pc 0015c8cc /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (jv8::V8Runner::V8Runner()+56)
07-24 17:13:50.920: I/DEBUG(156): #08 pc 0015b2d0 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.920: I/DEBUG(156): #09 pc 0001e290 /system/lib/libdvm.so (dvmPlatformInvoke+112)
07-24 17:13:50.920: I/DEBUG(156): #10 pc 0004d411 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const_, JValue_, Method const_, Thread_)+396)
07-24 17:13:50.920: I/DEBUG(156): #11 pc 000276a0 /system/lib/libdvm.so
07-24 17:13:50.920: I/DEBUG(156): #12 pc 0002b57c /system/lib/libdvm.so (dvmInterpret(Thread_, Method const_, JValue_)+184)
07-24 17:13:50.920: I/DEBUG(156): #13 pc 0005fc31 /system/lib/libdvm.so (dvmCallMethodV(Thread_, Method const_, Object_, bool, JValue_, std::va_list)+272)
07-24 17:13:50.920: I/DEBUG(156): #14 pc 0005fc5b /system/lib/libdvm.so (dvmCallMethod(Thread, Method const, Object_, JValue_, ...)+20)
07-24 17:13:50.920: I/DEBUG(156): #15 pc 000547d7 /system/lib/libdvm.so
07-24 17:13:50.920: I/DEBUG(156): #16 pc 0000e3d8 /system/lib/libc.so (thread_entry+72)
07-24 17:13:50.920: I/DEBUG(156): #17 pc 0000dac4 /system/lib/libc.so (pthread_create+160)
07-24 17:13:50.920: I/DEBUG(156): stack:
07-24 17:13:50.920: I/DEBUG(156): 73e12478 00000000
07-24 17:13:50.920: I/DEBUG(156): 73e1247c 73e12bec [stack:24102]
07-24 17:13:50.920: I/DEBUG(156): 73e12480 402901b4 /system/lib/libc.so
07-24 17:13:50.920: I/DEBUG(156): 73e12484 4026898d /system/lib/libc.so (vfprintf+44)
07-24 17:13:50.920: I/DEBUG(156): 73e12488 74ca5de0 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e1248c 74c17290 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e12490 74c2a4c8 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e12494 ffffe9cc
07-24 17:13:50.930: I/DEBUG(156): 73e12498 74c2a4c8 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e1249c 74bde6ec /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (v8::internal::OS::PrintError(char const, ...)+32)
07-24 17:13:50.930: I/DEBUG(156): 73e124a0 402901b4 /system/lib/libc.so
07-24 17:13:50.930: I/DEBUG(156): 73e124a4 73e124b4 [stack:24102]
07-24 17:13:50.930: I/DEBUG(156): 73e124a8 74ca5de0 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e124ac 74998e20 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (API_Fatal(char const, char const_, ...)+60)
07-24 17:13:50.930: I/DEBUG(156): 73e124b0 df0027ad
07-24 17:13:50.930: I/DEBUG(156): 73e124b4 00000000
07-24 17:13:50.930: I/DEBUG(156): #00 73e124b8 74c17290 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): ........ ........
07-24 17:13:50.930: I/DEBUG(156): #01 73e124b8 74c17290 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e124bc 74998e24 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so (API_Fatal(char const_, char const, ...)+64)
07-24 17:13:50.930: I/DEBUG(156): #02 73e124c0 74c44234 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e124c4 73e124d0 [stack:24102]
07-24 17:13:50.930: I/DEBUG(156): 73e124c8 7496c090 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e124cc 74c17290 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.930: I/DEBUG(156): 73e124d0 00000017
07-24 17:13:50.930: I/DEBUG(156): 73e124d4 00000000
07-24 17:13:50.940: I/DEBUG(156): memory near r4:
07-24 17:13:50.940: I/DEBUG(156): 74c17270 61626f6c 0000006c 61656c43 61655772
07-24 17:13:50.940: I/DEBUG(156): 74c17280 0000006b 656b614d 6b616557 00000000
07-24 17:13:50.940: I/DEBUG(156): 74c17290 6f6c6c41 69746163 66206e6f 656c6961
07-24 17:13:50.940: I/DEBUG(156): 74c172a0 202d2064 636f7270 20737365 2074756f
07-24 17:13:50.940: I/DEBUG(156): 74c172b0 6d20666f 726f6d65 00000079 64616552
07-24 17:13:50.940: I/DEBUG(156): 74c172c0 20676e69 6d6f7266 706d6520 68207974
07-24 17:13:50.940: I/DEBUG(156): 74c172d0 6c646e61 00000065 3a3a3876 6c6f7349
07-24 17:13:50.940: I/DEBUG(156): 74c172e0 3a657461 7369443a 65736f70 00002928
07-24 17:13:50.940: I/DEBUG(156): 74c172f0 70736944 6e69736f 68742067 73692065
07-24 17:13:50.940: I/DEBUG(156): 74c17300 74616c6f 68742065 69207461 6e652073
07-24 17:13:50.940: I/DEBUG(156): 74c17310 65726574 79622064 74206120 61657268
07-24 17:13:50.940: I/DEBUG(156): 74c17320 00002e64 3a3a3856 6d726554 74616e69
07-24 17:13:50.940: I/DEBUG(156): 74c17330 65784565 69747563 29286e6f 00000000
07-24 17:13:50.940: I/DEBUG(156): 74c17340 65746e45 676e6972 65687420 20385620
07-24 17:13:50.940: I/DEBUG(156): 74c17350 20495041 68746977 2074756f 706f7270
07-24 17:13:50.940: I/DEBUG(156): 74c17360 6c207265 696b636f 6920676e 6c70206e
07-24 17:13:50.940: I/DEBUG(156): memory near r5:
07-24 17:13:50.940: I/DEBUG(156): 74c2a4a8 6f6d654d 68547972 64616572 75687320
07-24 17:13:50.940: I/DEBUG(156): 74c2a4b8 6e697474 6f642067 0a2e6e77 00000000
07-24 17:13:50.940: I/DEBUG(156): 74c2a4c8 70616568 74657320 00007075 70616568
07-24 17:13:50.940: I/DEBUG(156): 74c2a4d8 6a626f20 20746365 61657263 6e6f6974
07-24 17:13:50.940: I/DEBUG(156): 74c2a4e8 00000000 732f2e2e 692f6372 616c6f73
07-24 17:13:50.940: I/DEBUG(156): 74c2a4f8 632e6574 00000063 43454843 51455f4b
07-24 17:13:50.940: I/DEBUG(156): 74c2a508 2c732528 29732520 69616620 0a64656c
07-24 17:13:50.940: I/DEBUG(156): 74c2a518 20202023 65707845 64657463 6925203a
07-24 17:13:50.940: I/DEBUG(156): 74c2a528 2020230a 756f4620 203a646e 00006925
07-24 17:13:50.940: I/DEBUG(156): 74c2a538 74617473 635f6369 3c747361 3e746e69
07-24 17:13:50.940: I/DEBUG(156): 74c2a548 46464f28 5f544553 4928464f 616c6f73
07-24 17:13:50.940: I/DEBUG(156): 74c2a558 202c6574 74617473 29295f65 00000000
07-24 17:13:50.940: I/DEBUG(156): 74c2a568 65746e49 6c616e72 6b3a3a73 6c6f7349
07-24 17:13:50.940: I/DEBUG(156): 74c2a578 53657461 65746174 7366664f 00007465
07-24 17:13:50.940: I/DEBUG(156): 74c2a588 74617473 635f6369 3c747361 3e746e69
07-24 17:13:50.940: I/DEBUG(156): 74c2a598 46464f28 5f544553 4928464f 616c6f73
07-24 17:13:50.940: I/DEBUG(156): memory near r7:
07-24 17:13:50.940: I/DEBUG(156): 74c2a4a8 6f6d654d 68547972 64616572 75687320
07-24 17:13:50.940: I/DEBUG(156): 74c2a4b8 6e697474 6f642067 0a2e6e77 00000000
07-24 17:13:50.940: I/DEBUG(156): 74c2a4c8 70616568 74657320 00007075 70616568
07-24 17:13:50.940: I/DEBUG(156): 74c2a4d8 6a626f20 20746365 61657263 6e6f6974
07-24 17:13:50.940: I/DEBUG(156): 74c2a4e8 00000000 732f2e2e 692f6372 616c6f73
07-24 17:13:50.940: I/DEBUG(156): 74c2a4f8 632e6574 00000063 43454843 51455f4b
07-24 17:13:50.940: I/DEBUG(156): 74c2a508 2c732528 29732520 69616620 0a64656c
07-24 17:13:50.940: I/DEBUG(156): 74c2a518 20202023 65707845 64657463 6925203a
07-24 17:13:50.950: I/DEBUG(156): 74c2a528 2020230a 756f4620 203a646e 00006925
07-24 17:13:50.950: I/DEBUG(156): 74c2a538 74617473 635f6369 3c747361 3e746e69
07-24 17:13:50.950: I/DEBUG(156): 74c2a548 46464f28 5f544553 4928464f 616c6f73
07-24 17:13:50.950: I/DEBUG(156): 74c2a558 202c6574 74617473 29295f65 00000000
07-24 17:13:50.950: I/DEBUG(156): 74c2a568 65746e49 6c616e72 6b3a3a73 6c6f7349
07-24 17:13:50.950: I/DEBUG(156): 74c2a578 53657461 65746174 7366664f 00007465
07-24 17:13:50.950: I/DEBUG(156): 74c2a588 74617473 635f6369 3c747361 3e746e69
07-24 17:13:50.950: I/DEBUG(156): 74c2a598 46464f28 5f544553 4928464f 616c6f73
07-24 17:13:50.950: I/DEBUG(156): memory near r8:
07-24 17:13:50.950: I/DEBUG(156): 79c72ff0 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73000 00000000 0000576b 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73010 79c73008 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73020 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73030 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73040 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73050 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73060 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73070 00000000 00000000 73d97bac 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73080 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c73090 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c730a0 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c730b0 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c730c0 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c730d0 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 79c730e0 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): memory near sl:
07-24 17:13:50.950: I/DEBUG(156): 73e12bcc 0000001a 00000019 0000001c 72914080
07-24 17:13:50.950: I/DEBUG(156): 73e12bdc 73437370 0000001c 40256894 72834a1c
07-24 17:13:50.950: I/DEBUG(156): 73e12bec 79c73008 0015a014 73e12c38 00000001
07-24 17:13:50.950: I/DEBUG(156): 73e12bfc 000018f4 74ced6d8 73e12c78 40054ed0
07-24 17:13:50.950: I/DEBUG(156): 73e12c0c 73515c38 73e12c64 74b5310c 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12c1c 40054ed8 73e12c78 836d8ee0 73515c28
07-24 17:13:50.950: I/DEBUG(156): 73e12c2c 00000000 40054ed8 7496a8d0 40050101
07-24 17:13:50.950: I/DEBUG(156): 73e12c3c 79c73008 40054ed0 73515c38 73e12c74
07-24 17:13:50.950: I/DEBUG(156): 73e12c4c 40254f01 73abb714 836d8ee0 73515c28
07-24 17:13:50.950: I/DEBUG(156): 73e12c5c 00000003 73e12c74 749692d4 73abb714
07-24 17:13:50.950: I/DEBUG(156): 73e12c6c 6d10f2f8 73e12c8c 40ad2294 40054ecc
07-24 17:13:50.950: I/DEBUG(156): 73e12c7c 00000001 4288bff0 00000000 417439c0
07-24 17:13:50.950: I/DEBUG(156): 73e12c8c 40b01415 40054ecc 73b0b473 749692bc
07-24 17:13:50.950: I/DEBUG(156): 73e12c9c 73515c38 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12cac 40293228 40b621b0 73abb70c 40054eac
07-24 17:13:50.950: I/DEBUG(156): 73e12cbc 6d10f2c0 70347000 4288bf98 00000000
07-24 17:13:50.950: I/DEBUG(156): memory near fp:
07-24 17:13:50.950: I/DEBUG(156): 73e12c44 73515c38 73e12c74 40254f01 73abb714
07-24 17:13:50.950: I/DEBUG(156): 73e12c54 836d8ee0 73515c28 00000003 73e12c74
07-24 17:13:50.950: I/DEBUG(156): 73e12c64 749692d4 73abb714 6d10f2f8 73e12c8c
07-24 17:13:50.950: I/DEBUG(156): 73e12c74 40ad2294 40054ecc 00000001 4288bff0
07-24 17:13:50.950: I/DEBUG(156): 73e12c84 00000000 417439c0 40b01415 40054ecc
07-24 17:13:50.950: I/DEBUG(156): 73e12c94 73b0b473 749692bc 73515c38 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12ca4 00000000 00000000 40293228 40b621b0
07-24 17:13:50.950: I/DEBUG(156): 73e12cb4 73abb70c 40054eac 6d10f2c0 70347000
07-24 17:13:50.950: I/DEBUG(156): 73e12cc4 4288bf98 00000000 73e12da0 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12cd4 73e12dd4 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12ce4 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12cf4 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12d04 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12d14 00000000 73515c28 6cdfef70 73e12d8c
07-24 17:13:50.950: I/DEBUG(156): 73e12d24 73e12d8c 40054ebc 6e010f64 73e12d90
07-24 17:13:50.950: I/DEBUG(156): 73e12d34 40b13c35 73515c28 6cdfef70 00000000
07-24 17:13:50.950: I/DEBUG(156): memory near ip:
07-24 17:13:50.950: I/DEBUG(156): 00003fe0 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00003ff0 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004000 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004010 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004020 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004030 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004040 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004050 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004060 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004070 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004080 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 00004090 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 000040a0 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 000040b0 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 000040c0 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): 000040d0 ffffffff ffffffff ffffffff ffffffff
07-24 17:13:50.950: I/DEBUG(156): memory near sp:
07-24 17:13:50.950: I/DEBUG(156): 73e12498 74c2a4c8 74bde6ec 402901b4 73e124b4
07-24 17:13:50.950: I/DEBUG(156): 73e124a8 74ca5de0 74998e20 df0027ad 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e124b8 74c17290 74998e24 74c44234 73e124d0
07-24 17:13:50.950: I/DEBUG(156): 73e124c8 7496c090 74c17290 00000017 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e124d8 73e124f0 74ca5de0 7496c058 79c73008
07-24 17:13:50.950: I/DEBUG(156): 73e124e8 ffffe9cc 7496d7d4 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e124f8 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12508 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12518 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12528 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12538 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12548 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12558 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12568 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12578 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): 73e12588 00000000 00000000 00000000 00000000
07-24 17:13:50.950: I/DEBUG(156): code around pc:
07-24 17:13:50.950: I/DEBUG(156): 74bdebc0 e59f3014 e79f3003 e1500003 33a00000
07-24 17:13:50.950: I/DEBUG(156): 74bdebd0 23a00001 e12fff1e 000c92fc 000ca708
07-24 17:13:50.950: I/DEBUG(156): 74bdebe0 e1200070 e12fff1e e12fff1e e5900008
07-24 17:13:50.950: I/DEBUG(156): 74bdebf0 e12fff1e e590000c e12fff1e e24dd008
07-24 17:13:50.950: I/DEBUG(156): 74bdec00 e1a0300d e8830003 e3a00000 e28dd008
07-24 17:13:50.950: I/DEBUG(156): 74bdec10 e12fff1e e3a02000 e5802004 e5802000
07-24 17:13:50.950: I/DEBUG(156): 74bdec20 e12fff1e e3a02000 e5802004 e5802000
07-24 17:13:50.950: I/DEBUG(156): 74bdec30 e12fff1e e5900000 e2500000 13a00001
07-24 17:13:50.950: I/DEBUG(156): 74bdec40 e12fff1e e3a03000 e5803004 e5803000
07-24 17:13:50.950: I/DEBUG(156): 74bdec50 e12fff1e e3a00001 e12fff1e e59f3020
07-24 17:13:50.950: I/DEBUG(156): 74bdec60 e92d4010 e79f3003 e3530000 08bd8010
07-24 17:13:50.950: I/DEBUG(156): 74bdec70 e1a00003 e5933000 e1a0e00f e593f004
07-24 17:13:50.950: I/DEBUG(156): 74bdec80 e8bd8010 000ca66c e2800004 eaf62866
07-24 17:13:50.950: I/DEBUG(156): 74bdec90 e92d4010 e1a04000 ebf6275b e1a00004
07-24 17:13:50.950: I/DEBUG(156): 74bdeca0 e8bd8010 e92d4010 e1a04000 ebf62756
07-24 17:13:50.950: I/DEBUG(156): 74bdecb0 e1a00004 e8bd8010 e92d4010 e1a04000
07-24 17:13:50.950: I/DEBUG(156): code around lr:
07-24 17:13:50.950: I/DEBUG(156): 74bdfab8 e59f301c e92d4010 e79f3003 e5d33000
07-24 17:13:50.950: I/DEBUG(156): 74bdfac8 e3530000 1a000000 ebf62529 ebfffc41
07-24 17:13:50.950: I/DEBUG(156): 74bdfad8 ebf62527 000c61f0 e3a03ffa e0000093
07-24 17:13:50.950: I/DEBUG(156): 74bdfae8 eaf62526 e52de004 e3a00000 e24dd00c
07-24 17:13:50.950: I/DEBUG(156): 74bdfaf8 ebf62525 e28d3008 e5230004 e1a00003
07-24 17:13:50.950: I/DEBUG(156): 74bdfb08 ebf624b2 e30e3e80 e3403036 e5901024
07-24 17:13:50.950: I/DEBUG(156): 74bdfb18 e5902020 e3a00ffa e0000190 e3520000
07-24 17:13:50.950: I/DEBUG(156): 74bdfb28 d3a03000 e0630000 eb00a436 e28dd00c
07-24 17:13:50.950: I/DEBUG(156): 74bdfb38 e8bd8000 e92d4030 e1a02000 e24dd00c
07-24 17:13:50.950: I/DEBUG(156): 74bdfb48 e1a03001 e1a04000 e1a05001 eb00a5cb
07-24 17:13:50.950: I/DEBUG(156): 74bdfb58 e3500000 1a000010 e3043000 e3a02000
07-24 17:13:50.950: I/DEBUG(156): 74bdfb68 e344308f e1a00004 e1a01005 eb00a4f7
07-24 17:13:50.950: I/DEBUG(156): 74bdfb78 ebf623fa eb00a5cf e28d3008 e5230004
07-24 17:13:50.950: I/DEBUG(156): 74bdfb88 e1a00003 ebf62491 e3500000 15900028
07-24 17:13:50.950: I/DEBUG(156): 74bdfb98 0a000004 e28dd00c e8bd8030 e59f0010
07-24 17:13:50.950: I/DEBUG(156): 74bdfba8 e08f0000 eafffffa e59f0008 e08f0000
07-24 17:13:50.950: I/DEBUG(156): memory map around fault addr 74bdebe0:
07-24 17:13:50.950: I/DEBUG(156): 74808000-7480e000
07-24 17:13:50.950: I/DEBUG(156): 7480e000-74c8d000 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
07-24 17:13:50.950: I/DEBUG(156): 74c8d000-74ca6000 /data/app-lib/com.mypermissions.mypermissions-1/libjv8.so
Do you understand any of it? Could the last commits solve random crashes?
Thanks! I will compare your solution to the one that I came up with, which involved removing task.files[i].orig.cwd from task.files[i].src. On Oct 24, 2014 7:26 AM, "Todd H. Gardner" [email protected] wrote:
changed file arguments to loop over task.data.files.src. Updated common
test fixture to construct the fake task with this data structure.
You can merge this Pull Request by running
git pull https://github.com/TrackJs/grunt-git master
Or view, comment on, or merge it at:
https://github.com/rubenv/grunt-git/pull/83 Commit Summary
- changed file arguments to loop over task.data.files.src. Updated common test fixture to construct the fake task with this data structure.
File Changes
- M lib/command_add.js https://github.com/rubenv/grunt-git/pull/83/files#diff-0 (6)
- M lib/command_clean.js https://github.com/rubenv/grunt-git/pull/83/files#diff-1 (6)
- M lib/command_commit.js https://github.com/rubenv/grunt-git/pull/83/files#diff-2 (6)
- M lib/command_reset.js https://github.com/rubenv/grunt-git/pull/83/files#diff-3 (10)
- M test/_common.js https://github.com/rubenv/grunt-git/pull/83/files#diff-4 (8)
- M test/add_test.js https://github.com/rubenv/grunt-git/pull/83/files#diff-5 (4)
Patch Links:
- https://github.com/rubenv/grunt-git/pull/83.patch
- https://github.com/rubenv/grunt-git/pull/83.diff
— Reply to this email directly or view it on GitHub https://github.com/rubenv/grunt-git/pull/83.
Hi @toddhgardner,
Thanks for pointing out task.data.files. Here is a rather lengthly example to illustrate some potenital issues that I see with this approach. The basic idea is that the dist/ directory contains a separate git repository, and we want to commit everything that does not have a .exclude suffix.
Here's the relevant portion of the sample Gruntfile.:
gitcommit: {
dist: {
options: {
expand: true,
cwd: 'dist',
message: "foo"
},
files: [{
expand: true,
cwd: 'dist',
src: ['**/*', '!*.exclude*']
}]
}
}
Assume a directory structure that looks like this:
project/
Gruntfile.js
dist/
foo.exclude
foo2.js
test/
test.html
When this task is run, the task.data.files and task.files look like this:
// task.data.files:
[ { expand: true, cwd: 'dist', src: [ '**/*', '!*.exclude' ] } ]
// task.files:
[ { src: [ 'dist/foo2.js' ],
orig: { expand: true, cwd: 'dist', src: [Object] },
dest: 'foo2.js' },
{ src: [ 'dist/test' ],
orig: { expand: true, cwd: 'dist', src: [Object] },
dest: 'test' },
{ src: [ 'dist/test/test.html' ],
orig: { expand: true, cwd: 'dist', src: [Object] },
dest: 'test/test.html' } ]
The issue with looping over task.data.files.src, and adding each string to the args array is that we would add both **/* and !*.exclude' (e.g.git commit -m 'foo' / !.exclude`). This will cause issues in almost every environment. In some cases, the OS will take the globbing patterns separately, and expand them into actual file lists that get passed to git commit. However, even then, they will not actually exclude the foo.exclude file.
So... I think that is is necessary to iterate over task.files. In order to make that work, we will need to either use task.files[i].dest, which seems to omit the cwd from the path, or manually strip the portion of the path that is the cwd. This is a solution that I'm working on now, but am getting hung up on a robust way to test it.
Please let me know if you have any suggestions, or if I am misinterpreting the problem that you're trying to solve.
Thanks for the detailed response @dylancwood!
The problem that we are running into is this: assume this structure:
project/
Gruntfile.js
dist/
package.json
foo.js
bar.js
We make changes to foo.js and pakcage.json, but nothing else, and need to add them back to the repo. When we reference the changed files explicitly like this:
options: { cwd: 'dist' },
files: { src: ['foo.js', 'package.json']
The only file that is ever detected is the first listed in the array. I am not familiar enough with the internals of grunt to know why this is, but checking the data addressed our problem.
I understand you have other use cases, no worries at all :) Thanks for writing this, it helped us a lot.