Closed Bug 1169585 Opened 9 years ago Closed 9 years ago

MobileConnection marionette-webapi test, test_mobile_preferred_network_type.js, failed on emulator-kk

Categories

(Firefox OS Graveyard :: Emulator, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(2 files)

https://treeherder.allizom.org/#/jobs?repo=try&revision=6794612b4298&filter-searchStr=mnw&exclusion_profile=false

16:39:24    ERROR -  TEST-UNEXPECTED-FAIL | test_mobile_preferred_network_type.js | setPreferredNetworkType success - false was false, expected true
16:39:24    ERROR -  TEST-UNEXPECTED-FAIL | test_mobile_preferred_network_type.js | getPreferredNetworkType success - got wcdma/gsm-auto, expected lte/wcdma
I can reproduce this failure on emulator-x86-kk locally. Looks like something related to the new preferred network type we added in bug 1160123, but emulator-ics doesn't have such problem. Need to figure out why it failed on emulator-kk.
(In reply to Edgar Chen [:edgar][:echen] from comment #1)
> I can reproduce this failure on emulator-x86-kk locally. Looks like
> something related to the new preferred network type we added in bug 1160123,
> but emulator-ics doesn't have such problem. Need to figure out why it failed
> on emulator-kk.

hardware/ril doesn't support LTE/WCDMA as preferred mode [1]. When setting preferred mode to LTE/WCDMA, we get an unpredictable result due to reference-ril access a memory address which is out of net2modem/net2pmask array boundary.

https://github.com/mozilla-b2g/platform_hardware_ril/blob/master/reference-ril/reference-ril.c#L103-L131
Assignee: nobody → echen
Comment on attachment 8613991 [details] [review]
[platform_hardware_ril:master] PR #58

Hi Hsinyi, would you mind reviewing this? Thank you.
Attachment #8613991 - Flags: review?(htsai)
Attachment #8613994 - Flags: review?(htsai)
Sorry I'll catch this up early next week!
(In reply to Edgar Chen [:edgar][:echen] from comment #2)
> (In reply to Edgar Chen [:edgar][:echen] from comment #1)
> > I can reproduce this failure on emulator-x86-kk locally. Looks like
> > something related to the new preferred network type we added in bug 1160123,
> > but emulator-ics doesn't have such problem. Need to figure out why it failed
> > on emulator-kk.
> 
> hardware/ril doesn't support LTE/WCDMA as preferred mode [1]. When setting
> preferred mode to LTE/WCDMA, we get an unpredictable result due to
> reference-ril access a memory address which is out of net2modem/net2pmask
> array boundary.
> 
> https://github.com/mozilla-b2g/platform_hardware_ril/blob/master/reference-
> ril/reference-ril.c#L103-L131

Interesting!
Attachment #8613991 - Flags: review?(htsai) → review+
Attachment #8613994 - Flags: review?(htsai) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: