Closed Bug 704467 Opened 14 years ago Closed 14 years ago

Crash in AwesomeBar @ mozalloc_abort | __swrite | dexDataMapAlloc

Categories

(Firefox for Android Graveyard :: General, defect, P5)

ARM
Android
defect

Tracking

(firefox11 fixed, firefox12 fixed, fennec11+)

RESOLVED FIXED
Tracking Status
firefox11 --- fixed
firefox12 --- fixed
fennec 11+ ---

People

(Reporter: Usul, Assigned: dougt)

References

Details

(Keywords: crash, topcrash, Whiteboard: [native-crash], str-wanted, [QA+])

Crash Data

Attachments

(2 files, 2 obsolete files)

This bug was filed from the Socorro interface and is report bp-baaf58be-ef0d-46e6-9976-0541a2111121 . =============================================================
Product: Fennec → Fennec Native
Version: Trunk → unspecified
I don't remember doing anything special to get that crash.
Naoki, dupe?
OS: Linux → Android
Hardware: Other → ARM
Whiteboard: [native-crash]
The crash signature is the same : bug 680615; but that crash had happened in XUL, not native. Ludovic, do you recall any door hangers appearing or steps to repro possibly based on bug 680615?
(In reply to Naoki Hirata :nhirata from comment #3) > The crash signature is the same : bug 680615; but that crash had happened in > XUL, not native. Ludovic, do you recall any door hangers appearing or steps > to repro possibly based on bug 680615? No I don't sorry.
Attached file crash log —
This crashed occurred for several times on the latest Nightly build. It seems that it happens after Fennec recovers from another crash, for example like the one from bug 704129. https://crash-stats.mozilla.com/report/index/bp-20aa3ee8-dfd3-4393-bc68-24cd02111123 https://crash-stats.mozilla.com/report/index/bp-d7437aa8-6a3a-42d6-89b3-870d32111123 -- Mozilla/5.0 (Android;Linux armv7l;rv:11.0a1)Gecko/20111122 Firefox/11.0a1 Fennec/11.0a1 Devices: Samsung Galaxy Nexus S OS: Android 2.3.4
Summary: crash mozalloc_abort → crash mozalloc_abort | __swrite | dexDataMapAlloc
I changed the summary to differentiate it from crashes in 8.0 and 9.0 where the stack traces are different. It appears in 10.0a1 and 11.0a1: https://crash-stats.mozilla.com/report/list?range_value=30&range_unit=days&signature=mozalloc_abort%20|%20__swrite%20|%20dexDataMapAlloc It might be related to bug 691279.
Summary: crash mozalloc_abort | __swrite | dexDataMapAlloc → Crash in Java_org_mozilla_gecko_GeckoAppShell_callObserver
It's #1 top crasher in 11.0a1.
Whiteboard: [native-crash] → [native-crash:p1]
Keywords: topcrash
Whiteboard: [native-crash:p1] → [native-crash], str-wanted, [QA+]
Priority: -- → P5
As stack traces slightly differ, I rename the summary to its original name. Crash reasons are various: * RuntimeException: "Unable to pause activity {org.mozilla.fennec/org.mozilla.fennec.App}: java.lang.NullPointerException at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2358)" "Screen size of (480,800) larger than maximum texture size of 0" "Screen size of (480,854) larger than maximum texture size of 0" "Screen size of (540,960) larger than maximum texture size of 0" * NullPointerException: "at org.mozilla.gecko.AboutHomeContent.onConfigurationChanged(AboutHomeContent.java:214)" "at org.mozilla.gecko.GeckoApp.onPrepareOptionsMenu(GeckoApp.java:487)" * IllegalArgumentException: "View not attached to window manager" * CursorIndexOutOfBoundsException: "Index -1 requested, with a size of 4" * IllegalStateException: "get field slot from row 1 col 5 failed" "couldn't move cursor to position 1" "The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(2131427345, class android.widget.ListView) with Adapter(class org.mozilla.gecko.AwesomeBarTabs$AwesomeBarCursorAdapter)]"
Summary: Crash in Java_org_mozilla_gecko_GeckoAppShell_callObserver → Crash in mozalloc_abort | __swrite | dexDataMapAlloc
I hit the same crash with a Nightly build from 121207 three times in a row today. The last two crashes occurred directly on start-up. The first crash I triggered by entering 'about:fennec' in the awesomebar. But tapping on 'c' didn't add the letter to the URL. Fennec simply crashed. Crash report: bp-6e22e694-0ca0-43ff-b3f7-5e2eb2111220 To simplify querying on Bugzilla here the full stack: 0 libmozalloc.so mozalloc_abort memory/mozalloc/mozalloc_abort.cpp:66 1 libc.so __swrite 2 @0x3d 3 libdvm.so dexDataMapAlloc 4 libmozutils.so Java_org_mozilla_gecko_GeckoAppShell_callObserver other-licenses/android/APKOpen.cpp:257 5 @0xbeb60436 6 libmozutils.so Java_org_mozilla_gecko_GeckoAppShell_removeObserver other-licenses/android/APKOpen.cpp:258 7 libdvm.so dvmPlatformInvoke 8 libdvm.so dvmCallJNIMethod_general 9 libdvm.so dvmResolveNativeMethod 10 libdvm.so dvmAsmSisterStart 11 libdvm.so dvmMterpStd 12 libdvm.so dvmInterpret 13 libdvm.so dvmInvokeMethod 14 libdvm.so dvmFreeDexOrJar 15 libdvm.so dvmAsmSisterStart 16 libdvm.so dvmMterpStd 17 libdvm.so dvmInterpret 18 libdvm.so dvmCallMethodV 19 libdvm.so JNI_CreateJavaVM 20 libandroid_runtime.so _ZN7android14AndroidRuntime6onExitEi 21 libandroid_runtime.so _ZN7android14AndroidRuntime5startEPKcb 22 app_process app_process@0xccb 23 app_process app_process@0x1026 24 libandroid_runtime.so AES_decrypt 25 app_process app_process@0xb32 26 app_process app_process@0xb32 27 libc.so __libc_init 28 @0xffffffe2 29 app_process app_process@0x32 30 app_process app_process@0xb1e
Attached patch try (obsolete) — — Splinter Review
Everywhere I see the use of ExpandableListView.ExpandableListContextMenuInfo, I see it being tested before being used. It may be that the there are some buggy roms where we are seeing a valid ListView but a null as the extend menu info or something?? I think you attempted fixing this in bug 712627, but it looks like the crash is still present. I'll look around for a better fix, but I think we should bandaide and follow up here. This bug is 10% of all crashes in Native Fennec.
Assignee: nobody → doug.turner
Attachment #587949 - Flags: review?(mark.finkle)
Comment on attachment 587949 [details] [diff] [review] try over to wes, he wrote this code
Attachment #587949 - Flags: review?(mark.finkle) → review?(wjohnston)
Comment on attachment 587949 [details] [diff] [review] try Review of attachment 587949 [details] [diff] [review]: ----------------------------------------------------------------- I don't mind putting the bandaide in. Maybe you could also add it to the AdapterView below it as well? I seriously doubt this is what's going on here though, and none of the info I see in here seem to point to it either.... This code SHOULD only run when you long tap on an item in your history. ::: mobile/android/base/AwesomeBar.java @@ +403,5 @@ > + > + try { > + info = (ExpandableListView.ExpandableListContextMenuInfo) menuInfo; > + } catch (ClassCastException e) { > + Log.e(e, "bad menuInfo"); Log.e(LOGTAG, "Unable to get menuInfo", e);
Attachment #587949 - Flags: review?(wjohnston) → review+
Attached patch patch v.2 (obsolete) — — Splinter Review
without try/catch
Attachment #587949 - Attachment is obsolete: true
Attachment #588042 - Flags: review?(wjohnston)
Attachment #588042 - Attachment is obsolete: true
Attachment #588042 - Flags: review?(wjohnston)
Attached patch patch v.2 — — Splinter Review
Attachment #588044 - Flags: review?(wjohnston)
Comment on attachment 588044 [details] [diff] [review] patch v.2 Review of attachment 588044 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/AwesomeBar.java @@ +399,5 @@ > String title = ""; > > if (view == (ListView)findViewById(R.id.history_list)) { > + if (! (menuInfo instanceof ExpandableListView.ExpandableListContextMenuInfo)) { > + Log.e(LOGTAG, "menuInfo is no ExpandableListContextMenuInfo"); s/no/not
Attachment #588044 - Flags: review?(wjohnston) → review+
Status: NEW → RESOLVED
tracking-fennec: --- → ?
Closed: 14 years ago
Resolution: --- → FIXED
I renamed the bug summary to match the patch content as there are still crashes with this crash signature after the patch landing. See comment 9 for different Java exceptions. Currently same Java exceptions are broken down with different crash signatures. I think all Fennec Native crash reports containing a Java exception in App Notes should have the Java exception as the crash signature. See bp-c2e3924f-b9cb-448a-b04f-8a7602120111 for instance.
Summary: Crash in mozalloc_abort | __swrite | dexDataMapAlloc → Crash in AwesomeBar @ mozalloc_abort | __swrite | dexDataMapAlloc
Here are two crash reports with the Java exception that is supposed to be fixed by the patch: bp-87c065ef-d01b-4801-97b9-cb5d12120113 before the patch bp-1ae3f282-03a7-4921-a26e-9e4a22120115 after the patch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
[@ mozalloc_abort | __swrite | dexDataMapAlloc] is bogus. Look at the java exception in the App Notes (yeah, it sucks being there, but whatever) file new bug please.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
(In reply to Scoobidiver from comment #20) > Here are two crash reports with the Java exception that is supposed to be > fixed by the patch: > bp-87c065ef-d01b-4801-97b9-cb5d12120113 before the patch > bp-1ae3f282-03a7-4921-a26e-9e4a22120115 after the patch That is bug 713056. Let's take the crash signature over to that bug.
mozalloc_abort | __swrite | dexDataMapAlloc seems to appear for a number of varying java crashes. There's a bug that is filed for separating the java crashes out to it's own field for Socorro.
Attachment #588044 - Flags: approval-mozilla-aurora?
Comment on attachment 588044 [details] [diff] [review] patch v.2 [Triage Comment] Mobile only - approved for Aurora.
Attachment #588044 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: