The app I'm developing has undergone some semi-major changes recently.
At some point, I seem to have introduced code that produces either Fatal Signal 11, Fatal Signal 7, or no error at all when you try to exit the app.
Before exiting the app, I use Activity_KeyPress to check if the user really wants to quit. If so, the function returns false.
In that case, I'd expect the program to continue in Activity_Pause, which doesn't happen. The program just exits without going there.
If the fatal signal occures, it does so directly after processing the return line from Activity_KeyPress.
The Log file for Fatal Signal 11 looks like this:
I've been trying to figure out the problem for a few hours now, but didn't find a solution.
Also, it seems to only appear on one of my three testing phones, a HTC One.
Do you have any ideas on what could be the cause?
At some point, I seem to have introduced code that produces either Fatal Signal 11, Fatal Signal 7, or no error at all when you try to exit the app.
Before exiting the app, I use Activity_KeyPress to check if the user really wants to quit. If so, the function returns false.
In that case, I'd expect the program to continue in Activity_Pause, which doesn't happen. The program just exits without going there.
If the fatal signal occures, it does so directly after processing the return line from Activity_KeyPress.
The Log file for Fatal Signal 11 looks like this:
ion: Alloc buf base:0x4fcfd000 size:1835008 fd:126
ion: Alloc buf base:0x4438a000 size:4096 fd:127
ion: Mapped buf base:0x73cb6000 size:1835008 offset:0 fd:366
ion: Mapped buf base:0x63219000 size:4096 offset:0 fd:369
ion: Unmap buf base:0x4fcfd000 size:1835008
ion: Unmap buf base:0x4438a000 size:4096
ion: Free buf base:0x0 size:1835008 fd:126
ion: Free buf base:0x0 size:4096 fd:127
ion: Mapped buf base:0x4fcfd000 size:1835008 offset:0 fd:130
ion: Mapped buf base:0x4438a000 size:4096 offset:0 fd:131
ion: Unmap buf base:0x4fcfd000 size:1835008
ion: Unmap buf base:0x4438a000 size:4096
ion: Unmap buf base:0x73cb6000 size:1835008
ion: Unmap buf base:0x63219000 size:4096
Fatal signal 11 (SIGSEGV) at 0x002e0064 (code=1), thread 13724 (.client.android)
acquireWL(4306d760): PARTIAL_WAKE_LOCK ActivityManager-Launch 0x1 2361 1000
Build fingerprint: 'htc/htc_europe/m7:4.3/JSS15J/245412.2:user/release-keys'
Revision: '3'
pid: 13724, tid: 13724, name: .client.android >>> de.neofonie.smas.client.android <<<
debuggerd: checkTellHTCSettings
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 002e0064
Read id1=-1243796867 id2=-217320719, they are start flags. This is HTC header
r0 00000001 r1 64ac4574 r2 6553c600 r3 002e0064
r4 64a401f8 r5 64ac4568 r6 00000000 r7 00000037
r8 64a40240 r9 00000000 sl 00000037 fp 00000001
ip 426286e0 sp beeec328 lr 40a4956d pc 4044b4ba cpsr 200d0030
d0 0000000000000000 d1 0000000000000000
d2 000003e800000000 d3 0000000000000008
d4 0009228000000000 d5 0000000010001000
d6 0000000000000000 d7 0000000000000000
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 0074006900760069 d17 006e0061004d0079
d18 002e006900750067 d19 0070007300690044
d20 004500790061006c d21 0074006e00650076
d22 006e006e006f0043 d23 0069007400630065
d24 bf29e7f85243f954 d25 bfdfffff939b93bf
d26 4010c15240000000 d27 bf56a47c08c7e563
d28 4012d97c7f3321d2 d29 bfe0c151f9990e90
d30 3fd18bc3be7ba803 d31 3f811110896efbb2
scr 68000012
backtrace:
#00 pc 0001a4ba /system/lib/libutils.so (android::Looper:ollInner(int)+593)
#01 pc 0001a56d /system/lib/libutils.so (android::Looper:ollOnce(int, int*, int*, void**)+92)
#02 pc 0006f3cd /system/lib/libandroid_runtime.so (android::NativeMessageQueue:ollOnce(_JNIEnv*, int)+22)
#03 pc 0002004c /system/lib/libdvm.so (dvmPlatformInvoke+112)
#04 pc 0005689d /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+428)
#05 pc 000294e0 /system/lib/libdvm.so
#06 pc 0002f194 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+232)
#07 pc 0006c3ef /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+350)
#08 pc 00075b3d /system/lib/libdvm.so
#09 pc 000294e0 /system/lib/libdvm.so
#10 pc 0002f194 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+232)
#11 pc 0006c0e5 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#12 pc 00051e63 /system/lib/libdvm.so
#13 pc 0004eeff /system/lib/libandroid_runtime.so
#14 pc 0005002f /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+522)
#15 pc 000010bb /system/bin/app_process
#16 pc 0000dcd7 /system/lib/libc.so (__libc_init+50)
#17 pc 00000db8 /system/bin/app_process
stack:
beeec2e8 404f57cc /system/lib/libandroid_runtime.so
beeec2ec 41dfaf70
beeec2f0 00000000
beeec2f4 404c138d /system/lib/libandroid_runtime.so (android::MessageQueue::raiseAndClearException(_JNIEnv*, char const*)+16)
beeec2f8 41ed3468
beeec2fc 6553c600
beeec300 00000000
beeec304 41dfaf70
beeec308 00000037
beeec30c 404bb407 /system/lib/libandroid_runtime.so (android::NativeInputEventSender::handleEvent(int, int, void*)+98)
beeec310 6553c600
beeec314 00000037
beeec318 64a401f8
beeec31c 64ac4568
beeec320 df0027ad
beeec324 00000000
#00 beeec328 00000001
beeec32c 00000001
beeec330 00007205
beeec334 4045104c /system/lib/libutils.so
beeec338 4044e378 /system/lib/libutils.so
beeec33c 4044e46f /system/lib/libutils.so
beeec340 0000002c
beeec344 64c4d910
beeec348 00000001
beeec34c 401f197f /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+222)
beeec350 00000037
beeec354 00000000
beeec358 64f8fb88
beeec35c 00000000
beeec360 00000008
beeec364 00000000
........ ........
#01 beeec470 00000000
beeec474 64abef08
beeec478 00000000
beeec47c 41dfaf70
beeec480 6321fde0
beeec484 beeec4a8 [stack]
beeec488 6321fdd8
beeec48c 404c13d1 /system/lib/libandroid_runtime.so (android::NativeMessageQueue:ollOnce(_JNIEnv*, int)+26)
#02 beeec490 00000000
beeec494 41dfaf70
beeec498 63425250 /dev/ashmem/dalvik-LinearAlloc (deleted)
beeec49c 41ed3468
beeec4a0 00000000
beeec4a4 40a18050 /system/lib/libdvm.so (dvmPlatformInvoke+116)
memory near r1:
64ac4554 00000033 4041803f 40418084 612e656c
64ac4564 796c616e 006e0061 00720064 0069006f
64ac4574 002e0064 00000001 68583c49 68583c49
64ac4584 0000003b 006d003f 0049002e 00610050
64ac4594 006b0063 00670061 004d0065 006e0061
64ac45a4 00670061 00000001 68583c49 68583c49
64ac45b4 3924f4a7 00000038 0000001b 633f3850
64ac45c4 00000028 00000000 00000000 00000001
64ac45d4 00000113 00000001 000000f8 00000000
64ac45e4 00000000 41400000 41600000 41200000
64ac45f4 41e80000 41200000 41c00000 41c00000
64ac4604 41b80000 41200000 41300000 41600000
64ac4614 41c00000 4169d000 41b00000 41b00000
64ac4624 41d80000 41200000 41c00000 41b00000
64ac4634 41b00000 41200000 41c00000 41c00000
64ac4644 41200000 41bbb800 41700000 41c00000
memory near r2:
6553c5e0 00000018 0000001b 63644ca0 00000030
6553c5f0 00000000 00000000 00000001 0000003b
6553c600 4050680c 1d30042a 64510790 64abef08
6553c610 40506788 644232a8 00000000 00000007
6553c620 00000008 00000003 40506834 6553c638
6553c630 00000000 00000023 00000002 00000002
6553c640 6553c628 00000000 63262868 4041802c
6553c650 00000020 000008c1 6553c650 6553c650
6553c660 64a99b08 00000000 64a98868 00000006
6553c670 00000000 00000000 00000000 00000000
6553c680 00000000 6553bef8 64a9d790 00000000
6553c690 64a9d870 64a9d8a8 00000000 64a9d850
6553c6a0 00000000 00000000 00000000 00000000
6553c6b0 40737138 00000000 00000000 00000000
6553c6c0 dead10cc 2f674d00 2f514541 66494167
6553c6d0 00000080 0000080a ff7c7a79 ff7c7a79
memory near r3:
002e0044 ffffffff ffffffff ffffffff ffffffff
002e0054 ffffffff ffffffff ffffffff ffffffff
002e0064 ffffffff ffffffff ffffffff ffffffff
002e0074 ffffffff ffffffff ffffffff ffffffff
002e0084 ffffffff ffffffff ffffffff ffffffff
002e0094 ffffffff ffffffff ffffffff ffffffff
002e00a4 ffffffff ffffffff ffffffff ffffffff
002e00b4 ffffffff ffffffff ffffffff ffffffff
002e00c4 ffffffff ffffffff ffffffff ffffffff
002e00d4 ffffffff ffffffff ffffffff ffffffff
002e00e4 ffffffff ffffffff ffffffff ffffffff
002e00f4 ffffffff ffffffff ffffffff ffffffff
002e0104 ffffffff ffffffff ffffffff ffffffff
002e0114 ffffffff ffffffff ffffffff ffffffff
002e0124 ffffffff ffffffff ffffffff ffffffff
002e0134 ffffffff ffffffff ffffffff ffffffff
memory near r4:
64a401d8 006b0072 6e6f0000 6e74625f 00000013
64a401e8 00000001 4041802c 00000010 00000073
64a401f8 40450b90 63263cb8 00000000 00000026
64a40208 0000002c 00000000 404509d0 00000000
64a40218 00000000 00000000 00000010 00000000
64a40228 0000002d 40450a18 64a9bb00 00000004
64a40238 00000000 00000014 40450a88 6553bff0
64a40248 00000000 00000000 00000014 00000000
64a40258 ffffffff 7fffffff 00000038 0000005b
64a40268 00000001 00000040 4073e6f0 6648ff50
64a40278 40510e18 1d30027a 41dfaf10 404c7ca9
64a40288 32300101 6648ff50 00005a40 00000000
64a40298 00000070 00000042 40735da0 00000000
64a402a8 4073e6fc 653f5ca0 00000000 075bcd15
64a402b8 00000000 00000023 00000001 00000001
64a402c8 41e425e4 00000001 2e736501 006b7061
memory near r5:
64ac4548 00000000 00000000 00000005 00000033
64ac4558 4041803f 40418084 612e656c 796c616e
64ac4568 006e0061 00720064 0069006f 002e0064
64ac4578 00000001 68583c49 68583c49 0000003b
64ac4588 006d003f 0049002e 00610050 006b0063
64ac4598 00670061 004d0065 006e0061 00670061
64ac45a8 00000001 68583c49 68583c49 3924f4a7
64ac45b8 00000038 0000001b 633f3850 00000028
64ac45c8 00000000 00000000 00000001 00000113
64ac45d8 00000001 000000f8 00000000 00000000
64ac45e8 41400000 41600000 41200000 41e80000
64ac45f8 41200000 41c00000 41c00000 41b80000
64ac4608 41200000 41300000 41600000 41c00000
64ac4618 4169d000 41b00000 41b00000 41d80000
64ac4628 41200000 41c00000 41b00000 41b00000
64ac4638 41200000 41c00000 41c00000 41200000
memory near r8:
64a40220 00000010 00000000 0000002d 40450a18
64a40230 64a9bb00 00000004 00000000 00000014
64a40240 40450a88 6553bff0 00000000 00000000
64a40250 00000014 00000000 ffffffff 7fffffff
64a40260 00000038 0000005b 00000001 00000040
64a40270 4073e6f0 6648ff50 40510e18 1d30027a
64a40280 41dfaf10 404c7ca9 32300101 6648ff50
64a40290 00005a40 00000000 00000070 00000042
64a402a0 40735da0 00000000 4073e6fc 653f5ca0
64a402b0 00000000 075bcd15 00000000 00000023
64a402c0 00000001 00000001 41e425e4 00000001
64a402d0 2e736501 006b7061 00000020 000003a3
64a402e0 00990483 00010003 000d00c0 00c00000
64a402f0 00010011 001b00c0 00c00000 0000001e
64a40300 002200c0 00c00001 00000029 002d00c0
64a40310 00c00001 00030035 003900c4 00c40043
memory near ip:
426286c0 00000000 00000000 424622b0 00000000
426286d0 00000000 00000000 00000000 00000023
426286e0 4230ab08 00000000 41fdf148 425ed450
426286f0 4244fd20 6553c600 424622b0 0000002b
42628700 41fcef20 00000000 00000000 41fcf640
42628710 00000000 426286e0 42622f60 42628860
42628720 00000000 00000023 41fd8c50 00000000
42628730 00000000 00000000 00000000 426286e0
42628740 0073006c 00000023 41fcb0e0 00000000
42628750 42628768 df7c4952 00000000 0000000f
42628760 00000001 0000003b 41fcb968 00000000
42628770 0000000f 00000000 0065004b 00430079
42628780 00610068 00610072 00740063 00720065
42628790 0061004d 00000070 00000000 00000023
426287a0 41fcb0e0 00000000 426287c0 bc35c205
426287b0 00000000 0000003a 00670065 0000008b
memory near sp:
beeec308 00000037 404bb407 6553c600 00000037
beeec318 64a401f8 64ac4568 df0027ad 00000000
beeec328 00000001 00000001 00007205 4045104c
beeec338 4044e378 4044e46f 0000002c 64c4d910
beeec348 00000001 401f197f 00000037 00000000
beeec358 64f8fb88 00000000 00000008 00000000
beeec368 00000000 401f63e5 64c4d910 00007206
beeec378 00000000 401f1ef5 64f8fb8c 40286300
beeec388 0000003d 401f5921 64f8e908 40418200
beeec398 00000000 401f1ab9 00000066 00000002
beeec3a8 00000000 0000003d 00000011 00000000
beeec3b8 00000000 00000060 00000004 bb6e547f
beeec3c8 64a9c9c0 00000000 64c4d8e0 644254d8
beeec3d8 00000001 64f8e908 00000002 0000003d
beeec3e8 beeec4bc 401f20db 0000003d 64f8e908
beeec3f8 00000000 00000009 41e42550 404465d3
code around pc:
4044b498 692b68c0 68024639 c008f8d2 47e0682a
4044b4a8 4620b918 f7ff4639 68ebfe53 010cf105
4044b4b8 6818b13b 7c0cf850 f7f719d8 f8c5ff98
4044b4c8 f06f900c 36010701 429e6d23 4638d3d7
4044b4d8 e8bdb049 bf008ff0 00005d62 00003080
4044b4e8 0000306a 000030f7 00005d26 00003050
4044b4f8 00003143 00005cf6 00003014 00002ffe
4044b508 000030ba 00002fa2 43f8e92d 46884604
4044b518 461e4615 20009f08 0914f04f 6ce3e011
4044b528 65e11c51 3202fb09 2b006893 6850db09
4044b538 69126811 6028b105 6031b106 603ab1b7
4044b548 6de2e014 429a6d23 b148d3e9 2100b10d
4044b558 b10e6029 60322200 2300b13f e004603b
4044b568 46414620 fe7cf7ff 4603e7eb e8bd4618
4044b578 000083f8 47f3e92d 46071e0e 46994690
4044b588 a028f8dd 4642dc0a a000f8cd 46314638
code around lr:
40a4954c fffffe08 00075d5a 0005781a 00057806
40a4955c 0005c20a 2107b510 68004604 f9a7f00c
40a4956c bd104620 4603b537 460c4d19 46194668
40a4957c f7ff447d b334ffb5 582d4816 7058f505
40a4958c f7ce9001 f505e864 21007052 f7d94622
40a4959c b9a8e9ac 447a4a10 06037810 480fd505
40a495ac 31fff04f f7cd4478 f3c0efe0 b13901c0
40a495bc 2005490b 46234a0b 447a4479 efdaf7cd
40a495cc f7ffa801 4668fec9 ffc4f7ff bf00bd3e
40a495dc 000756c8 fffffe0c 00075cc6 00057786
40a495ec 00057772 0005c1b7 b5374603 a801460d
40a495fc 4c094619 ff74f7ff 447c4808 a8015821
40a4960c 2a00688a f04fbf0c 240034ff f7ff602a
40a4961c 4620ffa1 bf00bd3e 0007563e fffffe08
40a4962c 4601b513 a8014614 ff5af7ff f7cd4620
40a4963c a801efb4 ff8ef7ff b573bd1c 46014616
memory map around fault addr 002e0064:
(no map below)
(no map for address)
40000000-40001000 r--
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
App crashed! Process: de.neofonie.smas.client.android
App crashed! Package: de.neofonie.smas.client.android v40 (3.0)
App crashed! Application Label: Preisvergleich
Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
Recipient 13724
WIN DEATH: Window{42d20040 u0 de.neofonie.smas.client.android/de.neofonie.smas.client.android.main}
[Eng]canLogUserProfiling, TellHtc Ui Mode is: normal
channel '42cf3040 de.neofonie.smas.client.android.main (s)' ~ Consumer closed input channel or an error occurred. events=0x9
channel '42cf3040 de.neofonie.smas.client.android.main (s)' ~ Channel is unrecoverably broken and will be disposed!
Attempted to unregister already unregistered input channel '42cf3040 de.neofonie.smas.client.android.main (s)'
Process de.neofonie.smas.client.android (pid 13724) has died.
Scheduling restart of crashed service de.neofonie.smas.client.android/.pushservice in 5000ms
WIN DEATH: Window{42cf3040 u0 de.neofonie.smas.client.android/de.neofonie.smas.client.android.main}
handleTopAppChanged(): The previous AP is died unexpectedly.
getMirrorDisplayStatus:falsecurState:1
[Eng]canLogUserProfiling, TellHtc Ui Mode is: normal
Process 13724 terminated by signal (11)
ion: Alloc buf base:0x4be91000 size:1622016 fd:55
ion: Alloc buf base:0x4438a000 size:4096 fd:119
ion: Mapped buf base:0x748d3000 size:1622016 offset:0 fd:364
ion: Mapped buf base:0x63219000 size:4096 offset:0 fd:365
ion: Alloc buf base:0x55909000 size:8355840 fd:111
ion: Alloc buf base:0x443e2000 size:4096 fd:84
ion: Mapped buf base:0x706a6000 size:8355840 offset:0 fd:81
ion: Mapped buf base:0x4001a000 size:4096 offset:0 fd:82
ion: Alloc buf base:0x568f9000 size:8355840 fd:112
ion: Alloc buf base:0x443f7000 size:4096 fd:118
ion: Mapped buf base:0x726be000 size:8355840 offset:0 fd:84
ion: Mapped buf base:0x400bd000 size:4096 offset:0 fd:85
releaseWL(4306d760): PARTIAL_WAKE_LOCK ActivityManager-Launch 0x1
ion: Unmap buf base:0x50ced000 size:8355840
ion: Unmap buf base:0x442aa000 size:4096
ion: Free buf base:0x0 size:8355840 fd:61
ion: Free buf base:0x0 size:4096 fd:62
ion: Unmap buf base:0x514e5000 size:8355840
ion: Unmap buf base:0x442b1000 size:4096
ion: Free buf base:0x0 size:8355840 fd:80
ion: Free buf base:0x0 size:4096 fd:109
ion: Unmap buf base:0x4baf5000 size:1261568
ion: Unmap buf base:0x44336000 size:4096
ion: Free buf base:0x0 size:1261568 fd:89
ion: Free buf base:0x0 size:4096 fd:104
ion: Unmap buf base:0x4bc29000 size:1261568
ion: Unmap buf base:0x44393000 size:4096
ion: Free buf base:0x0 size:1261568 fd:96
ion: Free buf base:0x0 size:4096 fd:105
ion: Unmap buf base:0x4daf5000 size:8355840
ion: Unmap buf base:0x438f5000 size:4096
ion: Free buf base:0x0 size:8355840 fd:45
ion: Free buf base:0x0 size:4096 fd:73
ion: Unmap buf base:0x4bd5d000 size:1261568
ion: Unmap buf base:0x443a4000 size:4096
ion: Free buf base:0x0 size:1261568 fd:97
ion: Free buf base:0x0 size:4096 fd:103
ion: Alloc buf base:0x4baf5000 size:1622016 fd:45
ion: Alloc buf base:0x438f5000 size:4096 fd:87
ion: Mapped buf base:0x74cac000 size:1622016 offset:0 fd:366
ion: Mapped buf base:0x6336b000 size:4096 offset:0 fd:370
fetchRssiAndLinkSpeedNative RSSI = -58
fetchRssiAndLinkSpeedNative mLinkspeedCount = 2, mLinkspeedSum: 108
ion: Alloc buf base:0x4bc81000 size:1622016 fd:82
ion: Alloc buf base:0x442aa000 size:4096 fd:96
ion: Mapped buf base:0x74e38000 size:1622016 offset:0 fd:372
ion: Mapped buf base:0x64b39000 size:4096 offset:0 fd:375
ion: Alloc buf base:0x4daf5000 size:8355840 fd:73
ion: Alloc buf base:0x442b1000 size:4096 fd:62
ion: Mapped buf base:0x72f04000 size:8355840 offset:0 fd:86
ion: Mapped buf base:0x401ab000 size:4096 offset:0 fd:87
I've been trying to figure out the problem for a few hours now, but didn't find a solution.
Also, it seems to only appear on one of my three testing phones, a HTC One.
Do you have any ideas on what could be the cause?