Skip to content

Kernel: Crash while shutting down with a stopped process #26492

@implicitfield

Description

@implicitfield

Seems like thread and process states aren't getting desynchronized when stopping (not sure why the VERIFY would expect that tbh). This happens quite easily, just:

  1. start any process (e.g. cat)
  2. ^Z
  3. poweroff

...and you'll hit this assertion during the shutdown process:

if (is_stopped()) {
// If we were stopped, we need to briefly resume so that
// the kernel stacks can clean up. We won't ever return back
// to user mode, though
VERIFY(!process().is_stopped());

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