Closed Bug 833766 Opened 11 years ago Closed 11 years ago

Crash reporter crashes when we crash soon after startup

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: gcp, Unassigned)

Details

While trying to reproduce bug 819973 I hit a Java exception immediately after startup:

E/GeckoAppShell(15614): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 10 ("GeckoBackgroundThread")
E/GeckoAppShell(15614): android.database.sqlite.SQLiteException: Can't downgrade database from version 14 to 13
E/GeckoAppShell(15614):         at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:299)
E/GeckoAppShell(15614):         at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:160)
E/GeckoAppShell(15614):         at org.mozilla.gecko.db.DBUtils.ensureDatabaseIsNotLocked(DBUtils.java:76)
E/GeckoAppShell(15614):         at org.mozilla.fennec_morbo.db.BrowserProvider.getDatabaseHelperForProfile(BrowserProvider.java:1596)
E/GeckoAppShell(15614):         at org.mozilla.fennec_morbo.db.BrowserProvider.getReadableDatabase(BrowserProvider.java:1635)
E/GeckoAppShell(15614):         at org.mozilla.fennec_morbo.db.BrowserProvider.query(BrowserProvider.java:2233)
E/GeckoAppShell(15614):         at android.content.ContentProvider$Transport.query(ContentProvider.java:192)
E/GeckoAppShell(15614):         at android.content.ContentResolver.query(ContentResolver.java:302)
E/GeckoAppShell(15614):         at org.mozilla.gecko.db.LocalBrowserDB.filterAllSites(LocalBrowserDB.java:174)
E/GeckoAppShell(15614):         at org.mozilla.gecko.db.LocalBrowserDB.getTopSites(LocalBrowserDB.java:227)
E/GeckoAppShell(15614):         at org.mozilla.gecko.db.BrowserDB.getTopSites(BrowserDB.java:118)
E/GeckoAppShell(15614):         at org.mozilla.gecko.AboutHomeContent.loadTopSites(AboutHomeContent.java:261)
E/GeckoAppShell(15614):         at org.mozilla.gecko.AboutHomeContent.access$600(AboutHomeContent.java:71)
E/GeckoAppShell(15614):         at org.mozilla.gecko.AboutHomeContent$9.run(AboutHomeContent.java:396)
E/GeckoAppShell(15614):         at android.os.Handler.handleCallback(Handler.java:587)
E/GeckoAppShell(15614):         at android.os.Handler.dispatchMessage(Handler.java:92)
E/GeckoAppShell(15614):         at android.os.Looper.loop(Looper.java:132)
E/GeckoAppShell(15614):         at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31)

But then the following happened, which is a bit scary:

I/DEBUG   (15150): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (15150): Build fingerprint: 'samsung/GT-P7510/GT-P7510:3.2/HTJ85B/UEKMP:user/release-keys'
I/DEBUG   (15150): pid: 15614, tid: 15622  >>> org.mozilla.fennec_morbo <<<
I/DEBUG   (15150): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG   (15150):  r0 00117ab0  r1 407fb108  r2 40993288  r3 00000000
I/DEBUG   (15150):  r4 5c40ab30  r5 00000000  r6 5c40abe0  r7 5c40ab08
I/DEBUG   (15150):  r8 5c40ab10  r9 526bbf58  10 00117ab0  fp fffffe90
I/DEBUG   (15150):  ip 80b17e39  sp 5c40ab08  lr 80b17e45  pc 00000000  cpsr a0000010
I/DEBUG   (15150):  d0  3f4000003f400000  d1  3ff0000000000000
I/DEBUG   (15150):  d2  3ff0000000000000  d3  4197d78400000000
I/DEBUG   (15150):  d4  3ff0000000000000  d5  4028000000000000
I/DEBUG   (15150):  d6  3ff0000000000000  d7  412e848000000000
I/DEBUG   (15150):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   (15150):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   (15150):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   (15150):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   (15150):  scr 60000012
I/DEBUG   (15150): 
D/HierarchicalStateMachine(  301): handleMessage: E msg.what=83
D/HierarchicalStateMachine(  301): processMsg: ConnectedState
D/WifiStateMachine(  301): ConnectedState{ what=83 when=-3ms arg1=228 }
D/HierarchicalStateMachine(  301): handleMessage: X
I/DEBUG   (15150):          #00  pc 00000000  
I/DEBUG   (15150):          #01  pc 00017e42  /data/data/org.mozilla.fennec_morbo/lib/libmozglue.so (Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash)
I/DEBUG   (15150):          #02  pc 00011d34  /system/lib/libdvm.so
I/DEBUG   (15150):          #03  pc 00041260  /system/lib/libdvm.so (dvmCallJNIMethod_general)
I/DEBUG   (15150):          #04  pc 00046862  /system/lib/libdvm.so (dvmResolveNativeMethod)
I/DEBUG   (15150):          #05  pc 00016f5c  /system/lib/libdvm.so
I/DEBUG   (15150):          #06  pc 0001be1c  /system/lib/libdvm.so (dvmMterpStd)
I/DEBUG   (15150):          #07  pc 0001aed0  /system/lib/libdvm.so (dvmInterpret)
I/DEBUG   (15150):          #08  pc 00058164  /system/lib/libdvm.so (dvmCallMethodV)
I/DEBUG   (15150):          #09  pc 0005818c  /system/lib/libdvm.so (dvmCallMethod)
I/DEBUG   (15150):          #10  pc 0004b474  /system/lib/libdvm.so (dvmDetachCurrentThread)
I/DEBUG   (15150):          #11  pc 0004c0ee  /system/lib/libdvm.so
I/DEBUG   (15150):          #12  pc 00011990  /system/lib/libc.so (__thread_entry)
I/DEBUG   (15150):          #13  pc 000114e4  /system/lib/libc.so (pthread_create)
I/DEBUG   (15150): 
I/DEBUG   (15150): libc base address: aff00000
I/DEBUG   (15150): 
I/DEBUG   (15150): code around pc:
I/DEBUG   (15150): 00000000 ffffffff ffffffff ffffffff ffffffff 
I/DEBUG   (15150): 00000010 ffffffff ffffffff ffffffff ffffffff 
I/DEBUG   (15150): 00000020 ffffffff ffffffff ffffffff ffffffff 
I/DEBUG   (15150): 00000030 ffffffff ffffffff ffffffff ffffffff 
I/DEBUG   (15150): 00000040 ffffffff ffffffff ffffffff ffffffff 
I/DEBUG   (15150): 
I/DEBUG   (15150): code around lr:
I/DEBUG   (15150): 80b17e24 af00b580 447b4b02 4798681b bd8046bd 
I/DEBUG   (15150): 80b17e34 00022886 af00b580 447b4b02 4798681b 
I/DEBUG   (15150): 80b17e44 bd8046bd 0002287e af00b580 447b4b02 
I/DEBUG   (15150): 80b17e54 4798681b bd8046bd 0002288e b084b5b0 
I/DEBUG   (15150): 80b17e64 7c3caf04 e9d79400 e9cd4506 4c034502 
I/DEBUG   (15150): 
I/DEBUG   (15150): stack:
I/DEBUG   (15150):     5c40aac8  4079f018  
I/DEBUG   (15150):     5c40aacc  00000012  
I/DEBUG   (15150):     5c40aad0  00000000  
I/DEBUG   (15150):     5c40aad4  00000001  
I/DEBUG   (15150):     5c40aad8  4079f018  
I/DEBUG   (15150):     5c40aadc  00000012  
I/DEBUG   (15150):     5c40aae0  5c40ab60  
I/DEBUG   (15150):     5c40aae4  591e6e98  
I/DEBUG   (15150):     5c40aae8  00000001  
I/DEBUG   (15150):     5c40aaec  5c40ab60  
I/DEBUG   (15150):     5c40aaf0  591e6e84  
I/DEBUG   (15150):     5c40aaf4  591e6e84  
I/DEBUG   (15150):     5c40aaf8  00001cd8  
I/DEBUG   (15150):     5c40aafc  5c28066b  
I/DEBUG   (15150):     5c40ab00  df0027ad  
I/DEBUG   (15150):     5c40ab04  00000000  
I/DEBUG   (15150): #01 5c40ab08  526bbf60  
I/DEBUG   (15150):     5c40ab0c  aca11d38  /system/lib/libdvm.so
I/DEBUG   (15150): dumpstate /data/log/dumpstate_app_native.txt
I/BootReceiver(  301): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)

I didn't manage to connect jimdb to this to get a better trace.

Because this looked quite scary, I modified the current m-c to bomb out in the same place in Java, and lo and behold: same crash, also no possibility to attach jimdb.

Marking this a major because it could potentially be hiding a lot of startup crashes form our stats.
My fault, the crash reporter abort()'s in non-official builds.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.