Closed Bug 1152272 Opened 10 years ago Closed 10 years ago

[RIL] emulator's rild suddenly stop processing the request when running test_mobile_set_radio.js

Categories

(Firefox OS Graveyard :: Emulator, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED FIXED
tracking-b2g backlog

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(1 file)

emulator's rild suddenly stop processing the request when running test_mobile_set_radio.js, so all subsequence ril related marionette tests are timed out. https://treeherder.mozilla.org/logviewer.html#?job_id=6213755&repo=try https://treeherder.mozilla.org/logviewer.html#?job_id=6213771&repo=try https://treeherder.mozilla.org/logviewer.html#?job_id=6213879&repo=try
As mention in https://bugzilla.mozilla.org/show_bug.cgi?id=1018051#c0, there is only one buffer [1] to catch the AT command , but it will be accessed by follow two threads, - thread for processing console command. (some console command will trigger sending unsolicited at command) - thread for processing request from rild. The data in buffer written by a thread could be corrupted by the other thread. The idea solution is adding mutex to protect the buffer. [1] https://github.com/mozilla-b2g/platform_external_qemu/blob/d9fbd6c2a014f52ab64e8ca5cb8ace8947c7e6e4/telephony/android_modem.c#L409
[Tracking Requested - why for this release]:
Assignee: nobody → echen
Blocks: 1081529
(In reply to Edgar Chen [:edgar][:echen] from comment #5) > (In reply to Edgar Chen [:edgar][:echen] from comment #4) > > Working branch: > > https://github.com/EdgarChen/platform_external_qemu/commits/bug_1152272/mutex > > Try runs with fix: > https://treeherder.mozilla.org/#/ > jobs?repo=try&revision=5fcf944c3370&exclusion_profile=false Didn't see same failure in test_mobile_set_radio.js so far. (over 80+ retriggers)
See Also: → 1018051
Comment on attachment 8593893 [details] [review] [platform_external_qemu] PR #138 Hi Hsinyi, I did some refactor for AT command handler and also added mutex to protect the out buffer in this PR, would you mind reviewing this? Thank you. Try runs with this fix and also bug 1155022 for your reference: https://treeherder.mozilla.org/#/jobs?repo=try&revision=74365e5cb51a&exclusion_profile=false
Attachment #8593893 - Flags: review?(htsai)
Comment on attachment 8593893 [details] [review] [platform_external_qemu] PR #138 You could find my comments on github.
Attachment #8593893 - Flags: review?(htsai) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Depends on: 1168773
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: