Closed Bug 1030342 Opened 11 years ago Closed 11 years ago

Android 2.3 emulator is missing /data/anr directory -- cannot generate anr report

Categories

(Testing :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

In bug 872244 we added collection of ANR (application not responding) reports following Android test runs. In bug 1027802, we are trying to generate an ANR following an Android test hang. While testing that capability, I noticed that ANRs are never generated on Android 2.3: https://tbpl.mozilla.org/php/getParsedLog.php?id=42451074&tree=Try&full=1 08:59:08 INFO - 06-25 08:52:01.294 I/SUTAgentAndroid( 306): 10.0.2.2 : execsu kill -3 1289 08:59:08 INFO - 06-25 08:52:01.334 I/dalvikvm( 1289): threadid=4: reacting to signal 3 08:59:08 INFO - 06-25 08:52:01.354 E/dalvikvm( 1289): Unable to open stack trace file '/data/anr/traces.txt': No such file or directory This happens because the Android system image used for the Android 2.3 emulator is missing the /data/anr directory. Simply creating the directory allows creation of ANRs. There is no such problem on Pandas or Tegras -- those images have /data/anr.
See Also: → 989343
Comment on attachment 8447406 [details] [diff] [review] mkdir /data/anr in android_emulator_unittest /data/anr is already present on Panda and Tegra images, but not on our Arm or x86 emulator images. In the long term, I would like to have /data/anr in the emulator images, and I have noted that in bug 989343, for future work. For a short term fix, we can mkdir /data/anr in the test harnesses or in the mozharness script. I chose mozharness so that we don't do any extra work on Panda. Tested via ash-mozharness -- seems to work fine: https://tbpl.mozilla.org/php/getParsedLog.php?id=42665540&tree=Ash&full=1 https://tbpl.mozilla.org/php/getParsedLog.php?id=42695462&tree=Ash&full=1
Attachment #8447406 - Attachment description: work in progress → mkdir /data/anr in android_emulator_unittest
Attachment #8447406 - Flags: review?(kmoir)
Attachment #8447406 - Flags: review?(kmoir) → review+
Merged to production, and deployed.
Verified on m-c -- all's well.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: