Closed Bug 940441 Opened 11 years ago Closed 11 years ago

js/src/tests/ecma_6/TypedObject/Bug914137.js causes OOM failures on Android x86 emulator

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

I am trying to enable a new Android test environment, based on the Android x86 emulator running Android 4.2. In this new test environment, jsreftests consistently fail when running Bug914137.js. Logcat shows that the OS is aggressively killing off processes -- typical Android behavior when a process uses too much memory.

If there is a chance that the very large allocation in the test case will result in a similar allocation request of the OS, I think this test should be disabled for all Android platforms.

Here is a typical logcat excerpt:

08:29:02     INFO -  11-19 16:28:39.247 I/GeckoDump( 1955): 722260: All NaNs must be treated as identical keys for Set
08:29:02     INFO -  11-19 16:28:39.247 I/GeckoDump( 1955): Tests complete
08:29:02     INFO -  11-19 16:28:39.257 E/GeckoConsole( 1955): [JavaScript Warning: "An unbalanced tree was written using document.write() causing data from the network to be reparsed. For more information https://developer.mozilla.org/en/Optimizing_Your_Pages_for_Speculative_Parsing" {file: "http://10.0.2.2:8888/jsreftest/tests/jsreftest.html?test=ecma_6/Set/NaN-as-key.js" line: 15}]
08:29:02     INFO -  11-19 16:28:39.487 I/GeckoDump( 1955): 914137: Fuzz bug
08:29:02     INFO -  11-19 16:28:45.528 I/ActivityManager( 1203): Process android.process.media (pid 1297) has died.
08:29:02     INFO -  11-19 16:28:46.447 W/SurfaceFlinger(  807): Timed out waiting for hw vsync; faking it
08:29:02     INFO -  11-19 16:28:48.727 D/CountryDetector( 1203): No listener is left
08:29:02     INFO -  11-19 16:28:49.377 W/InputDispatcher( 1203): channel 'b338e560 com.android.launcher/com.android.launcher2.Launcher (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
08:29:02     INFO -  11-19 16:28:49.387 E/InputDispatcher( 1203): channel 'b338e560 com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed!
08:29:02     INFO -  11-19 16:28:49.421 W/InputDispatcher( 1203): channel 'b32f0428 org.mozilla.fennec/org.mozilla.fennec.App (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
08:29:02     INFO -  11-19 16:28:49.421 E/InputDispatcher( 1203): channel 'b32f0428 org.mozilla.fennec/org.mozilla.fennec.App (server)' ~ Channel is unrecoverably broken and will be disposed!
08:29:02     INFO -  11-19 16:28:49.458 I/ActivityManager( 1203): Process com.android.settings (pid 1378) has died.
08:29:02     INFO -  11-19 16:28:49.458 I/ActivityManager( 1203): Process org.mozilla.f3nn3c.UpdateService (pid 2002) has died.
08:29:02     INFO -  11-19 16:28:49.458 I/ActivityManager( 1203): Process com.android.gallery3d (pid 1839) has died.
08:29:02     INFO -  11-19 16:28:49.458 I/ActivityManager( 1203): Process com.svox.pico (pid 1825) has died.
08:29:02     INFO -  11-19 16:28:49.458 I/ActivityManager( 1203): Process com.android.exchange (pid 1636) has died.
08:29:02     INFO -  11-19 16:28:49.468 I/ActivityManager( 1203): Process com.android.launcher (pid 1418) has died.
08:29:02     INFO -  11-19 16:28:49.478 I/ActivityManager( 1203): Process com.android.calendar (pid 1672) has died.
08:29:02     INFO -  11-19 16:28:49.488 I/ActivityManager( 1203): Process com.android.deskclock (pid 1503) has died.
08:29:02     INFO -  11-19 16:28:49.488 I/ActivityManager( 1203): Process com.android.defcontainer (pid 1793) has died.
08:29:02     INFO -  11-19 16:28:49.488 I/WindowState( 1203): WIN DEATH: Window{b338e560 u0 com.android.launcher/com.android.launcher2.Launcher}
08:29:02     INFO -  11-19 16:28:49.498 W/InputDispatcher( 1203): Attempted to unregister already unregistered input channel 'b338e560 com.android.launcher/com.android.launcher2.Launcher (server)'
08:29:02     INFO -  11-19 16:28:49.557 I/WindowState( 1203): WIN DEATH: Window{b32f38a0 u0 SurfaceView}
08:29:02     INFO -  11-19 16:28:49.567 I/ActivityManager( 1203): Process org.mozilla.fennec (pid 1955) has died.
08:29:02     INFO -  11-19 16:28:49.567 W/ActivityManager( 1203): Force removing ActivityRecord{b3363df8 u0 org.mozilla.fennec/.App}: app died, no saved state
08:29:02     INFO -  11-19 16:28:49.777 I/WindowState( 1203): WIN DEATH: Window{b32f0428 u0 org.mozilla.fennec/org.mozilla.fennec.App}
08:29:02     INFO -  11-19 16:28:49.777 W/InputDispatcher( 1203): Attempted to unregister already unregistered input channel 'b32f0428 org.mozilla.fennec/org.mozilla.fennec.App (server)'
08:29:02     INFO -  11-19 16:28:49.797 I/ActivityManager( 1203): Process com.android.providers.calendar (pid 1606) has died.
08:29:02     INFO -  11-19 16:28:49.797 I/ActivityManager( 1203): Process com.android.mms (pid 1582) has died.
08:29:02     INFO -  11-19 16:28:49.797 I/ActivityManager( 1203): Process com.android.musicfx (pid 1705) has died.
08:29:02     INFO -  11-19 16:28:49.797 I/ActivityManager( 1203): Process com.android.voicedialer (pid 1623) has died.
08:29:02     INFO -  11-19 16:28:49.797 I/ActivityManager( 1203): Process com.android.contacts (pid 1520) has died.
08:29:02     INFO -  11-19 16:28:49.797 I/ActivityManager( 1203): Process com.android.quicksearchbox (pid 1852) has died.
08:29:02     INFO -  11-19 16:28:49.797 I/ActivityManager( 1203): Process android.process.acore (pid 1327) has died.
If you agree, it's as easy as...
Attachment #8334604 - Flags: review?(nmatsakis)
Attachment #8334604 - Flags: review?(nmatsakis) → review+
https://hg.mozilla.org/mozilla-central/rev/54dab4a01a81
Assignee: nobody → gbrown
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: