Android Question Fatal signal 11 (SIGSEGV) at 0x00770065 (code=1), thread 3982

phukol

Active Member
Licensed User
Longtime User
Hi guys, just want to ask your help. My application is working fine however, when i call a certain sub Sometimes it crashes and sometimes it does not. During crashes i received Fatal signal 11 (SIGSEGV) at 0x00770065 (code=1), thread 3982.
The log is
B4X:
GC_FOR_ALLOC freed 9380K, 22% free 42253K/53688K, paused 12ms, total 13ms
GC_CONCURRENT freed 4923K, 16% free 45408K/53688K, paused 2ms+2ms, total 23ms
GC_FOR_ALLOC freed 1736K, 10% free 48563K/53688K, paused 11ms, total 12ms
GC_CONCURRENT freed 1426K, 20% free 14727K/18232K, paused 0ms+29ms, total 43ms
eglSurfaceAttrib not implemented
out_write() limiting sleep time 44149 to 23219
out_write() limiting sleep time 55759 to 23219
out_write() limiting sleep time 47369 to 23219
out_write() limiting sleep time 28979 to 23219
Fatal signal 11 (SIGSEGV) at 0x00770065 (code=1), thread 3982 (manila.fun)
out_write() limiting sleep time 31178 to 23219
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'generic/vbox86p/vbox86p:4.2.2/JDQ39E/eng.buildbot.20150609.211601:userdebug/test-keys'
Revision: '0'
pid: 3982, tid: 3982, name: manila.fun  >>> manila.fun <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00770065
Received Ping
    eax 00770065  ebx b71b8ff4  ecx b96dc670  edx baf07014
    esi b91f9d28  edi 00000000
    xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
    eip b71ace9a  ebp baf07008  esp bfd34b90  flags 00010206
backtrace:
    #00  pc 00025e9a  /system/lib/libutils.so (android::Looper::pollInner(int)+970)
    #01  pc 002e0064  <unknown>
stack:
         bfd34b50  00000000 
         bfd34b54  00000000 
         bfd34b58  00000000 
         bfd34b5c  00000000 
         bfd34b60  00000000 
         bfd34b64  00000000 
         bfd34b68  00000000 
         bfd34b6c  00000000 
         bfd34b70  00000000 
         bfd34b74  00000000 
         bfd34b78  00000000 
         bfd34b7c  00000000 
         bfd34b80  00000000 
         bfd34b84  00000000 
         bfd34b88  00000000 
         bfd34b8c  00000000 
    #00  bfd34b90  b96dc660  [heap]
         ........  ........
    #01  baf07010  00690076 
         baf07014  00770065 
         baf07018  0049002e 
         baf0701c  00690057 
         baf07020  0064006e 
         baf07024  0077006f 
         baf07028  00650053 
         baf0702c  00730073 
         baf07030  006f0069 
         baf07034  0000006e 
         baf07038  73622a85 
         baf0703c  0000017f 
         baf07040  bb197378  [heap]
         baf07044  bb18ce10  [heap]
         baf07048  00000350 
         baf0704c  00000000 
memory map around fault addr 00770065:
    (no map below)
    (no map for address)
    957d6000-95b5b000 /dev/ashmem/gralloc-buffer (deleted)
Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)
Process manila.fun (pid 3982) has died.
Scheduling restart of crashed service manila.fun/.manilafun in 5000ms
Scheduling restart of crashed service manila.fun/.imagedownloader in 5000ms
Scheduling restart of crashed service manila.fun/anywheresoftware.b4a.samples.httputils2.httputils2service in 5000ms
Scheduling restart of crashed service manila.fun/.starter in 5000ms
Failed write_ctrl(s 0 10085) res=-1 errno=1
Force removing ActivityRecord{537fa8b8 u0 manila.fun/.main_page}: app died, no saved state
setKernelCountSet(10085, 0) failed with errno -1
Failed write_ctrl(s 1 10023) res=-1 errno=1
setKernelCountSet(10023, 1) failed with errno -1
WIN DEATH: Window{5381e184 u0 manila.fun/manila.fun.main_page}
Process 3982 terminated by signal (11)
eglSurfaceAttrib not implemented

I am using imagedownloader and a service using httpjob and saxparser.
 

DavideV

Active Member
Licensed User
Longtime User
I had it with subs related to menu items on android 4+
Solved using callsubdelayed(...) from the menu sub to run the code for menu items:

B4X:
'add menus...
Activity.AddMenuItem("Connect","MnBtconn")
...

Sub MnBtconn_click
    CallSubDelayed(Me,"SubMnBtconn")  
End Sub

Sub SubMnBtconn  
    'connect to a bt device, disconnet if already connected
    ...
End Sub

hope this help :)
Cheers
Davide
 
Upvote 0
Top