Skip to content

ps aux fails after waking up from suspend #1649

Closed

Description

Hello,

This is windows prerelease build 15014, sometimes after waking up from suspend, ps aux will segfault. Below is the message it prints:

-> ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
Signal 11 (SEGV) caught by ps (procps-ng version 3.3.10).
root 1 0.0 0.0 10640 4 ? Ssps:display.c:66: please report this bug
Segmentation fault (core dumped)

If I just run ps or ps -u $USER, then it works correctly.

Activity

  1. stehufntdev commented on Jan 31, 2017

    @stehufntdev

    Thanks for reporting the issue. I tried to repro this locally but was not able to hit any issues on a recent internal build. Can you please take a strace before and after the suspend so we can see if there are any interesting syscall failures?

  2. benhillis commented on Feb 1, 2017

    @benhillis
    Member

    I was able to hit this once on my laptop but can't seem to reproduce this any more.

    Eric Chang (@pkerichang) if you are able to reproduce this consistently it would be helpful to provide the output of this command:

    strace -v -s 256 ps aux

  3. stehufntdev commented on Feb 3, 2017

    @stehufntdev

    I managed to hit a similar failure locally by running the command after adjusting my system time forward and backwards, and submitted a fix for the way start times are returned for threads.

    I never hit the hibernate issue, but it's likely the same cause but please let us know if this comes up again after the fix hits insider builds soon.

  4. pkerichang commented on Feb 3, 2017

    @pkerichang
    Author

    Thanks, a lot, sometimes when my computer wake up from sleep the login screen will show the time it went to sleep instead of the current time and won't update until a few second later. This is probably similar issue.

    Which insider version will be fix be in? That way I can watch out to see if I get the same issue. Thanks.

  5. benhillis commented on Feb 3, 2017

    @benhillis
    Member

    Eric Chang (@pkerichang) - definitely sounds like the issue Stephen Hufnagel (@stehufntdev) identified could be the root cause then. Stephen just checked in the change so it should be in an insider build in 1-2 weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions