Closed Bug 866657 Opened 12 years ago Closed 7 years ago

B2G Emulator-x86: nsIAlarmHalService.setAlarm returns NS_ERROR_FAILURE

Categories

(Firefox OS Graveyard :: Emulator, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: vicamo, Unassigned)

References

Details

Crash Data

Attachments

(1 file)

E/GeckoConsole( 802): [JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAlarmHalService.setAlarm]" {file: "resource://gre/modules/AlarmService.jsm" line: 77}]
[ 0.098228] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 [ 0.098299] rtc_cmos: probe of rtc_cmos failed with error -16 Goldfish ARM/MIPS uses goldfish_timer as platform rtc device, but x86 uses MC146818 instead. Looks like some thing wrong in the hardware emulation.
Severity: normal → enhancement
Blocks: b2g-emulator
Component: General → Emulator
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #1) > [ 0.098228] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 > [ 0.098299] rtc_cmos: probe of rtc_cmos failed with error -16 > > Goldfish ARM/MIPS uses goldfish_timer as platform rtc device, but x86 uses > MC146818 instead. Looks like some thing wrong in the hardware emulation. The thing is getting worse here. Now the alarm backend initial procedure always tries to open /dev/alarm but it's meant to fail on x86 emulator variants. The 'sInternalLockCpuMonitor' variable is set to null then [1], but it's dereferenced in SetCpuSleepAllowed() and causes segmentation fault. [1]: http://mxr.mozilla.org/mozilla-central/source/hal/gonk/GonkHal.cpp#973 [2]: http://mxr.mozilla.org/mozilla-central/source/hal/gonk/GonkHal.cpp#596
Attached file emulator-x86-crash.txt (deleted) —
Severity: enhancement → normal
Crash Signature: #1 0xb42e994f in mozilla::hal::SetCpuSleepAllowed (allowed=false) at hal/Hal.cpp:396 #2 0xb4c60528 in mozilla::dom::PowerManager::SetCpuSleepAllowed (this=0xade44800, aAllowed=false) at dom/power/PowerManager.cpp:182 #3 0xb480825e in mozilla::dom::Mo…
Priority: P5 → --
AOSP enabled Goldfish alarm driver in KitKat on x86 arch, too. [1] We should probably follow. [1]: https://android.googlesource.com/kernel/goldfish/+/464d389734f72fd20a093a3cdaf20c4789e3f2c2
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: