Skip to content

zombie child processes. #61624

@bsutton

Description

@bsutton

I have a dart cli app which runs inside a docker container.

The host and container are running ubuntu.

The dart app spawns the dartdoc process.

I'm having the occasional occurrence where i end up with a zombie 'dart' instance - presumably the dartdoc instance (or maybe a grandchild), that never terminates.

My understanding is that a zombie occurs because the parent process fails to call wait or waitpid to obtain the exit code.

According to AI, when you spawn a process dart starts a thread which monitors wait, so in theory a zombie child shouldn't be possible.

I did see another issue that might relate:
#40585

Given that dartdoc spawns 'dart doc' i might be seeing the grandchild as the zombie (not enough info on this one as the command line info disappears by the time I see the zombie) - our monitor checks the details in /proc to determine if a process has become a zombie.

One problem is that I can't easily replicate the issue so it's a little hard to provide hard details.

I have created a monitor that monitors our process looking for zombies, so If there is something specific you are looking for let me know and we can add it to the monitor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions