Getting Fatal signal 11 (SIGSEGV), code 2 when using a Foreground service

PetiPeti Member ✭✭

Hello all, I am using a Foreground service and also boot intent to start it with the phone does after the user has entered their pin/fingerprint.

Using the latest Xamarin.Forms and Essentials.

If I turn WiFi off and leave the app for around 12 hours, I get the following if I attach adb just before turning WiFi on again (my log files and Appcenter Analytics show nothing):

09-20 08:38:19.799 10892 23227 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0x7fe00f88 in tid 23227 (Thread Pool Wor), pid 10892 (gsensor.staging)
09-20 08:38:20.103 15172 15172 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
09-20 08:38:20.108 1042 1042 I /system/bin/tombstoned: received crash request for pid 10892
09-20 08:38:20.110 15172 15172 I crash_dump32: performing dump of process 10892 (target tid = 23227)
09-20 08:38:20.110 15172 15172 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-20 08:38:20.111 15172 15172 F DEBUG : Build fingerprint: 'motorola/cedric/cedric:8.1.0/OPP28.85-19-4-2/3447de:user/release-keys'
09-20 08:38:20.111 15172 15172 F DEBUG : Revision: 'p500'
09-20 08:38:20.111 15172 15172 F DEBUG : ABI: 'arm'
09-20 08:38:20.111 15172 15172 F DEBUG : pid: 10892, tid: 23227, name: Thread Pool Wor >>> APPNAME <<<
09-20 08:38:20.111 15172 15172 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7fe00f88
09-20 08:38:20.111 15172 15172 F DEBUG : r0 00000000 r1 7fe00fa8 r2 00000001 r3 80000000
09-20 08:38:20.111 15172 15172 F DEBUG : r4 00000005 r5 7dda70f0 r6 8c7c9db8 r7 8b4846c8
09-20 08:38:20.111 15172 15172 F DEBUG : r8 8bcadaa0 r9 7feff7a4 sl a1871800 fp 7fe01078
09-20 08:38:20.111 15172 15172 F DEBUG : ip 92d53a38 sp 7fe00f98 lr 8bd41828 pc 92ad79c8 cpsr 600e0010
09-20 08:38:20.113 15172 15172 F DEBUG :
09-20 08:38:20.113 15172 15172 F DEBUG : backtrace:
09-20 08:38:20.113 15172 15172 F DEBUG : #00 pc 001169c8 /data/app/Mono.Android.DebugRuntime-_bxEgLQUgAahDSNDRvWXKg==/lib/arm/libmonosgen-32bit-2.0.so
09-20 08:38:20.995 1724 4439 I WifiService: acquireWifiLock uid=10037 lockMode=2
09-20 08:38:20.999 1724 2053 E WifiScanningService: Got invalid work source request: WorkSource{} from ClientInfo[uid=10037,[email protected]]
09-20 08:38:21.004 1724 2053 D WifiNative-wlan0: Scan issued for specific freq..
09-20 08:38:21.633 1724 14044 D WificondControl: Scan result ready event
09-20 08:38:21.678 1724 14044 I WifiService: releaseWifiLock uid=10037
09-20 08:38:22.618 1042 1042 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_03
09-20 08:38:22.621 1724 15174 W ActivityManager: Force finishing activity APPNAME/md5d3e34aaa668d83e07d6c4c917f76ec17.MainActivity
09-20 08:38:22.634 1724 1754 I ActivityManager: Showing crash dialog for package APPNAME u0
09-20 08:38:22.640 1724 1757 I BootReceiver: Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
09-20 08:38:22.645 1724 1753 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
09-20 08:38:22.645 1724 1753 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
09-20 08:38:22.741 2149 6328 W asset : Asset path /data/app/com.android.vending-y_AkvIhJjx7rtOBlJxPMZQ==/base.apk is neither a directory nor file (type=1).
09-20 08:38:22.741 2149 6328 E ResourcesManager: failed to add asset path /data/app/com.android.vending-y_AkvIhJjx7rtOBlJxPMZQ==/base.apk
09-20 08:38:22.741 2149 6328 W PackageManager: Failure retrieving resources for com.android.vending
09-20 08:38:22.741 2149 6328 W asset : Asset path /data/app/com.android.vending-y_AkvIhJjx7rtOBlJxPMZQ==/base.apk is neither a directory nor file (type=1).
09-20 08:38:22.742 2149 6328 E ResourcesManager: failed to add asset path /data/app/com.android.vending-y_AkvIhJjx7rtOBlJxPMZQ==/base.apk
09-20 08:38:22.742 2149 6328 W PackageManager: Failure retrieving resources for com.android.vending
09-20 08:38:22.742 2149 6328 W asset : Asset path /data/app/com.android.vending-y_AkvIhJjx7rtOBlJxPMZQ==/base.apk is neither a directory nor file (type=1).
09-20 08:38:22.742 2149 6328 E ResourcesManager: failed to add asset path /data/app/com.android.vending-y_AkvIhJjx7rtOBlJxPMZQ==/base.apk
09-20 08:38:22.742 2149 6328 W PackageManager: Failure retrieving resources for com.android.vending
09-20 08:38:22.766 1724 1753 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
09-20 08:38:22.766 1724 1753 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
09-20 08:38:22.840 1724 1923 W InputDispatcher: channel '1938a4d APPNAME/md5d3e34aaa668d83e07d6c4c917f76ec17.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-20 08:38:22.840 1724 1923 E InputDispatcher: channel '1938a4d APPNAME/md5d3e34aaa668d83e07d6c4c917f76ec17.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-20 08:38:22.841 1724 4875 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=174, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&FOREGROUND] ], [email protected])
09-20 08:38:22.842 1724 8287 I ActivityManager: Process APPNAME (pid 10892) has died: fore TOP
09-20 08:38:22.843 1724 8287 W ActivityManager: Scheduling restart of crashed service APPNAME/md582ab6c7e55d5692dd4fd30a2423b16db.ForegroundServiceBackgroundHost in 1000ms
09-20 08:38:22.846 1724 1755 W zygote : kill(-10892, 9) failed: No such process
09-20 08:38:22.850 1724 4441 I WindowManager: WIN DEATH: Window{1938a4d u0 APPNAME/md5d3e34aaa668d83e07d6c4c917f76ec17.MainActivity}
09-20 08:38:22.851 1724 4441 W InputDispatcher: Attempted to unregister already unregistered input channel '1938a4d APPNAME/md5d3e34aaa668d83e07d6c4c917f76ec17.MainActivity (server)'
09-20 08:38:22.862 1724 1755 W zygote : kill(-10892, 9) failed: No such process
09-20 08:38:22.870 1007 1007 I Zygote : Process 10892 exited due to signal (11)
09-20 08:38:22.875 1724 1755 W zygote : kill(-10892, 9) failed: No such process
09-20 08:38:22.875 1724 1755 I zygote : Successfully killed process cgroup uid 10132 pid 10892 in 29ms
09-20 08:38:22.915 1724 1760 W ActivityManager: setHasOverlayUi called on unknown pid: 10892

Is there any chance someone has seen something like this?

Posts

  • PetiPeti Member ✭✭

    I managed to run further tests with additional logging. Most likely cause was a GC that Android was doing and a broken connection to Azure IOT hub that wasn't been disposed of if. Tearing the connection down if inactive for 20 minutes seems to have cured it.

Sign In or Register to comment.