New issue
Advanced search Search tips

Issue 834558 link

Starred by 8 users

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 0
Type: Bug



Sign in to add a comment

crosvm dies after suspend resume

Project Member Reported by za...@chromium.org, Apr 19 2018

Issue description

To reproduce:
1) Start a crosvm instance
2) Suspend (i.e. by closing the lid)
3) Resume (i.e. open the lid)
5) Observe that crosvm has exited with error messages similar to "failed to poll: Error(4)"

This errno (4) indicates EINTR. This is probably related to the new PollContext::wait method, which does not retry epoll_wait when it returns EINTR, unlike its predecessor. 
 
Labels: Merge-Request-67 M-67 ReleaseBlock-Dev
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 19 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosvm/+/d14c41a81fa71fba2e868fbc86c1b28c05186001

commit d14c41a81fa71fba2e868fbc86c1b28c05186001
Author: Zach Reizner <zachr@google.com>
Date: Thu Apr 19 08:13:09 2018

sys_util: handle EINTR return from epoll_wait

The PollContext::wait returns Error on EINTR, which often happens during
suspend/resume cycles. Because this Error is transient, this should be
handled internally with a retry until a fatal error is encountered.

BUG= chromium:834558 
TEST=run crosvm, suspend, resume, observe crosvm still running

Change-Id: I75469e261ddf28f025a3b3b93612538ccf1230b9
Reviewed-on: https://chromium-review.googlesource.com/1018527
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>

[modify] https://crrev.com/d14c41a81fa71fba2e868fbc86c1b28c05186001/sys_util/src/poll.rs

Summary: eve: crosvm dies after suspend resume (was: crosvm dies after suspend rusume)
Updated subject with "eve:" to call out the impacted board

Comment 4 by za...@chromium.org, Apr 19 2018

To be clear, this issue affects all boards with crosvm.
Summary: crosvm dies after suspend resume (was: eve: crosvm dies after suspend resume)
Ah, good call, I'll update the subject to remove 'eve'. It was helpful for the release but misleading on the bug.
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 20 2018

Labels: -Merge-Request-67 Merge-Approved-67 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M67. Please go ahead and merge the CL to branch 3396 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Please update after this is merged so we can capture in the next RC.

Thanks
Project Member

Comment 8 by sheriffbot@chromium.org, Apr 23 2018

Cc: bhthompson@google.com
This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 9 by bugdroid1@chromium.org, Apr 23 2018

Labels: merge-merged-release-R67-10575.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosvm/+/e52f622f8d8df5e7328712428f041053ab0a4e13

commit e52f622f8d8df5e7328712428f041053ab0a4e13
Author: Zach Reizner <zachr@google.com>
Date: Mon Apr 23 23:11:22 2018

sys_util: handle EINTR return from epoll_wait

The PollContext::wait returns Error on EINTR, which often happens during
suspend/resume cycles. Because this Error is transient, this should be
handled internally with a retry until a fatal error is encountered.

BUG= chromium:834558 
TEST=run crosvm, suspend, resume, observe crosvm still running

Change-Id: I75469e261ddf28f025a3b3b93612538ccf1230b9
Reviewed-on: https://chromium-review.googlesource.com/1018527
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
(cherry picked from commit d14c41a81fa71fba2e868fbc86c1b28c05186001)
Reviewed-on: https://chromium-review.googlesource.com/1024647
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: Chirantan Ekbote <chirantan@chromium.org>
Commit-Queue: Chirantan Ekbote <chirantan@chromium.org>

[modify] https://crrev.com/e52f622f8d8df5e7328712428f041053ab0a4e13/sys_util/src/poll.rs

Status: Fixed (was: Started)
Project Member

Comment 11 by sheriffbot@chromium.org, Apr 26 2018

This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Hi, the Merge-Approved-67 label was never removed after this blocking merge request.  Assume the merge was made and we can remove it?
Labels: -Merge-Approved-67
I believe so.

Sign in to add a comment