4 Replies Latest reply on Jun 12, 2013 11:26 AM by Kutir Mobility

    Fatal Signal 11 (SIGSEGV)

      Hi

       

      I have a problem running our app on a client's devices ... they have ASUS fonepads (Model K004 -  Android 4.1.2)...  When you try and run up our app it never comes up ...however we have the same app running on Samsung, & HTC devices without problems on a variety of Android versions.

       

      I've now got one of these devices here and if I try the "rhodes system api samples" I get the same probelm it is dying with 'Fatal Signal 11'  ... See ADB logcat below

       

      Any help/suggestions gratefully received

       

      brian

       

      ---

       

      --------- beginning of /dev/log/system

       

      I/ActivityManager(  337): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rhomobile.rhodessystemapisamples/com.rhomobile.rhodes.RhodesActivity u=0} from pid 628

      W/AudioHardwareALSA(  137): AudioHardwareALSA::setStreamParameters() for output devices: 0x00000002

      D/AudioHardwareALSA(  137): checkAndSetHwMode: Android Mode=0, Latched Mode=0, HW Mode=0, nb of output devices=1

      D/AudioHardwareALSA(  137): applyRouteAccessibilityRules: in, mode 0, modemAvailable=1, ModemCallActive=0 mIsBluetoothEnabled=0

      D/AudioRouteManager(  137): setRouteAccessible

      D/AudioRouteManager(  137): findRouteByName

      D/AudioRoute(  137): setRouteAccessible mIsRouteAccessible=0

      D/AudioRoute(  137): setRouteAccessible Nothing to do

      D/AudioRouteManager(  137): setRouteAccessible

      D/AudioRouteManager(  137): findRouteByName

      D/AudioRoute(  137): setRouteAccessible mIsRouteAccessible=0

      D/AudioRoute(  137): setRouteAccessible Nothing to do

      D/AudioHardwareALSA(  137): applyRouteAccessibilityRules: out

      D/VPC_Module(  137): vpc_params mode = 0 device = 0x2

      D/VPC_Module(  137): vpc_params previous mode = 0 previous device = 0x0

      D/AudioRouteManager(  137): route mode=0 devices=0x2 bForOutput=1

      D/AudioRouteManager(  137): getRoute

      D/AudioRoutMSICVoice(  137): isApplicable mode=0 devices=0x2 bForOutput=1

      D/AudioRouteMM(  137): isApplicable mode=0 devices=0x2 bForOutput=1

      D/AudioRouteManager(  137): route has been found

      D/AudioHardwareALSA(  137): setRoute mode=0

      D/AudioHardwareALSA(  137): setRoute: stream already attached to the route, identical conditions

      D/AudioHardwareALSA(  137): Configuration application request {

      D/AudioHardwareALSA(  137):     Applying configurations {

      D/AudioHardwareALSA(  137):     } Applying configurations

      D/AudioHardwareALSA(  137): } Configuration application request

      D/ALSAModuleCDK(  137): s_open: closing handle first 2, 0

      D/ALSAModuleCDK(  137): android::status_t android_audio_legacy::s_close(android_audio_legacy::alsa_handle_t*) in

      D/ALSAModuleCDK(  137): void android_audio_legacy::s_drain(android_audio_legacy::alsa_handle_t*) in

      D/ALSAModuleCDK(  137): android::status_t android_audio_legacy::s_close(android_audio_legacy::alsa_handle_t*) out

      D/ALSAModuleCDK(  137): open called for devices 00000002 in mode 0...

      D/ALSAModuleCDK(  137): returning deviceName = AndroidPlayback_Speaker_normal_pr2

      D/ALSAModuleCDK(  137): open called for devices AndroidPlayback_Speaker_normal_pr2

      I/ALSAModuleCDK(  137): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal_pr2

      D/AudioConversion(  137): configure

      D/AudioConversion(  137): configure: no convertion required

      D/AudioHardwareALSA(  137): ALSAStreamOps::doOpen status=0

      D/dalvikvm(  337): GC_FOR_ALLOC freed 2167K, 29% free 16053K/22368K, paused 52ms, total 54ms

      I/ActivityManager(  337): Start proc com.rhomobile.rhodessystemapisamples for activity com.rhomobile.rhodessystemapisamples/com.rhomobile.rhodes.RhodesActivity: pid=2836 uid=10106 gids={3003, 1006, 3001, 3002, 1015, 1028}

      I/NetworkPolicy(  337): mHandlerCallback.handleMessage(MSG_FOREGROUND_ACTIVITIES_CHANGED) - acquired mRulesLock

      I/NetworkPolicy(  337): getAppPolicy() - acquired mRulesLock

      I/NetworkPolicy(  337): getAppPolicy() - releases mRulesLock

      I/NetworkPolicy(  337): isUidForeground() - acquired mRulesLock

      I/NetworkPolicy(  337): isUidForeground() - releases mRulesLock

      I/NetworkStats(  337): setUidForeground() - acquired mStatsLock

      I/NetworkStats(  337): setUidForeground() - releases mStatsLock

      I/NetworkPolicy(  337): mHandlerCallback.handleMessage(MSG_FOREGROUND_ACTIVITIES_CHANGED) - releases mRulesLock

      D/dalvikvm( 2836): Trying to load lib /data/data/com.rhomobile.rhodessystemapisamples/lib/librhodes.so 0x420690c0

      D/houdini ( 2836): [2836] Loading library(version: 3.1.3.43168 RELEASE)... successfully.

      D/dalvikvm( 2836): Added shared lib /data/data/com.rhomobile.rhodessystemapisamples/lib/librhodes.so 0x420690c0

      I/ActivityThread( 2836): Pub com.rhomobile.rhodessystemapisamples: com.rhomobile.rhodes.LocalFileProvider

      I/RhodesApplication( 2836): Initializing...

      D/RhoFileApi( 2836): App root path: /data/data/com.rhomobile.rhodessystemapisamples/rhodata/

      D/RhoFileApi( 2836): Sqlite journals path: /data/data/com.rhomobile.rhodessystemapisamples/sqlite_stmt_journals/

      D/RhoFileApi( 2836): Shared path: /data/data/com.rhomobile.rhodessystemapisamples/rhodata/

      D/RhodesApplication( 2836): Root path: /data/data/com.rhomobile.rhodessystemapisamples/rhodata/

      I/RhoFileApi( 2836): Opening stat table from FS: /data/data/com.rhomobile.rhodessystemapisamples/rhodata/rho.dat

      F/libc    ( 2836): Fatal signal 11 (SIGSEGV) at 0x19a8f904 (code=1), thread 2836 (ystemapisamples)

      I/DEBUG   (  128): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

      I/DEBUG   (  128): Build fingerprint: 'asus/WW_epad/ME371MG:4.1.2/JZO54K/WW_epad-V3.2.2-20130521:user/release-keys'

      I/DEBUG   (  128): pid: 2836, tid: 2836, name: ystemapisamples  >>> com.rhomobile.rhodessystemapisamples <<<

      I/DEBUG   (  128): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 19a8f904

      I/DEBUG   (  128):     eax 40110088  ebx 4010dff4  ecx 00000001  edx 00001000

      I/DEBUG   (  128):     esi 40110088  edi 00000000

      I/DEBUG   (  128):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b

      I/DEBUG   (  128):     eip 19a8f904  ebp 0000052a  esp bf88588c  flags 00010293

      I/DEBUG   (  128):

      I/DEBUG   (  128): backtrace:

      I/DEBUG   (  128):     #00  pc 19a8f904  <unknown>

      I/DEBUG   (  128):

      I/DEBUG   (  128): stack:

      I/DEBUG   (  128):          bf88584c  00000000 

      I/DEBUG   (  128):          bf885850  00000000 

      I/DEBUG   (  128):          bf885854  00000000 

      I/DEBUG   (  128):          bf885858  00000000 

      I/DEBUG   (  128):          bf88585c  00000000 

      I/DEBUG   (  128):          bf885860  00000000 

      I/DEBUG   (  128):          bf885864  00000000 

      I/DEBUG   (  128):          bf885868  00000000 

      I/DEBUG   (  128):          bf88586c  00000000 

      I/DEBUG   (  128):          bf885870  00000000 

      I/DEBUG   (  128):          bf885874  00000000 

      I/DEBUG   (  128):          bf885878  00000000 

      I/DEBUG   (  128):          bf88587c  00000000 

      I/DEBUG   (  128):          bf885880  00000000 

      I/DEBUG   (  128):          bf885884  00000000 

      I/DEBUG   (  128):          bf885888  00000000 

      I/DEBUG   (  128):     #00  bf88588c  4009cdc6  /system/lib/libc.so (__srefill+166)

      I/DEBUG   (  128):          bf885890  40110088 

      I/DEBUG   (  128):          bf885894  6097a840 

      I/DEBUG   (  128):          bf885898  00001000 

      I/DEBUG   (  128):          bf88589c  4009cd28  /system/lib/libc.so (__srefill+8)

      I/DEBUG   (  128):          bf8858a0  4010dff4  /system/lib/libc.so

      I/DEBUG   (  128):          bf8858a4  40110088 

      I/DEBUG   (  128):          bf8858a8  00000000 

      I/DEBUG   (  128):          bf8858ac  4009a4e1  /system/lib/libc.so (fread+145)

      I/DEBUG   (  128):          bf8858b0  40110088 

      I/DEBUG   (  128):          bf8858b4  00000000 

      I/DEBUG   (  128):          bf8858b8  00000000 

      I/DEBUG   (  128):          bf8858bc  40065b99  /system/lib/libc.so (pthread_mutex_unlock+25)

      I/DEBUG   (  128):          bf8858c0  4010e120  /system/lib/libc.so

      I/DEBUG   (  128):          bf8858c4  00000000 

      I/DEBUG   (  128):          bf8858c8  609fd730 

      I/DEBUG   (  128):

      I/DEBUG   (  128): memory map around fault addr 19a8f904:

      I/DEBUG   (  128):     10001000-10400000

      I/DEBUG   (  128):     (no map for address)

      I/DEBUG   (  128):     20000000-22000000

      I/BootReceiver(  337): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)

      D/Zygote  (  129): Process 2836 terminated by signal (11)

      I/ActivityManager(  337): Process com.rhomobile.rhodessystemapisamples (pid 2836) has died.

      W/ActivityManager(  337): Force removing ActivityRecord{211a3560 com.rhomobile.rhodessystemapisamples/com.rhomobile.rhodes.RhodesActivity}: app died, no saved state

      I/NetworkPolicy(  337): mHandlerCallback.handleMessage(MSG_PROCESS_DIED) - acquired mRulesLock

      I/NetworkPolicy(  337): getAppPolicy() - acquired mRulesLock

      I/NetworkPolicy(  337): getAppPolicy() - releases mRulesLock

      I/NetworkPolicy(  337): isUidForeground() - acquired mRulesLock

      I/NetworkPolicy(  337): isUidForeground() - releases mRulesLock

      I/NetworkStats(  337): setUidForeground() - acquired mStatsLock

      I/NetworkStats(  337): setUidForeground() - releases mStatsLock

      I/NetworkPolicy(  337): mHandlerCallback.handleMessage(MSG_PROCESS_DIED) - releases mRulesLock

      D/AudioStreamOutAlsa(  137): standby

        • Re: Fatal Signal 11 (SIGSEGV)
          Bart Fukkink

          Hello Brian,

           

          Although I have no specific idea of what is going on, we have had a simmiliar error message in our application. We are still unsure what caused these errors, but we did see that is was related to using Threads and AsyncHttpCalls. This post: https://developer.motorolasolutions.com/message/6278#6278 might give some more insight in this problem.

           

          Should you not use Threads and or AsyncHttpCalls tho, then the problem would lie in a completely diffrent place.

           

          I hope this is of any help to you.

           

          Kind regards,

           

          Bart

          1 of 1 people found this helpful
            • Re: Fatal Signal 11 (SIGSEGV)

              Hi,

              Thanks for the reply Bart, not 100% sure as I've only got as far as building the app ... I have taken up this development from a previous guy (I've been on this for 1 week only)

               

              I wasn't sure about the AsyncHttpCalls etc.. so I thought I'd build a 'hello world' app ... basically created a New Project and built an .apk from that - this works on my HTC but when I install it on the ASUS fonepad it has the same error.

               

              I've done some googling and looking at the log it seems to be in the RhoFileAPI.java ... as it gets as far as "Opening stat table from FS' then this is where it dies

                • Re: Fatal Signal 11 (SIGSEGV)
                  Bart Fukkink

                  Hello Brian,

                   

                  I am afraid that I have no idea what is going on then. I hope someone from Motorola can help you out with this problem. Good luck!

                  • Re: Fatal Signal 11 (SIGSEGV)
                    Kutir Mobility

                    This type of error is really hard to debug without having access to the exact same device you are using, because it involves an error/incompatibility somewhere in native code, either in Rhodes or in the Android OS that runs the device (the Fonepad runs on an Intel processor instead of the more common ARM chips normally used in android, and it has to employ a special compatibility layer for applications with native code). You may want to check if any of the following actions help:

                     

                    - reboot the device

                    - update to the latest version of Rhodes ( 3.5.1.13 as of right now)

                    - update the ROM to the latest available version. I believe this is the step that is most likely to help with your error.

                     

                    Thanks,

                    Javier

                    Kutir Mobility