question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running `kill 0` in MacOS pipeline causes denial of service.

See original GitHub issue

Have you tried trouble shooting?

Yes.

Agent Version and Platform

Version of your agent? 2.140.2

OS of the machine running the agent? OSX

VSTS Type and Version

VisualStudio.com

If VisualStudio.com, what is your account name? http://myrjola.visualstudio.com

What’s not working?

Relevant public pipeline: https://dev.azure.com/myrjola/pipelines-test/_build?definitionId=1

Given the following pipeline config:

pool:
  vmImage: 'macOS 10.13'

steps:
- script: kill 0

The build eventually fail with the following error:

image

Running the build repeatedly exhausts the agent pool:

image

Note that the public agent pool is 10 parallel jobs. There are less than ten parallel jobs running and still three jobs are blocked from starting. They show the following:

image

So jobs are not starting even though they should:

image

I tried running kill 0 to terminate the whole process group because I had tasks that kept on running forever possibly because they spawned background processes.

Agent and Worker’s Diagnostic Logs

I could not find the logs from the hosted agent and worker.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TingluoHuangcommented, Oct 5, 2018

i am going to close this issue for now since it’s not really a problem for the agent itself. you might want to report at developer community if you have concern about the host pool availability.

0reactions
myrjolacommented, Oct 5, 2018

Thank you for the investigation! The host pool recovered during the night.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running `kill 0` in MacOS pipeline causes denial of service.
you are kill the pid 0 process of the machine which will cause the machine to crash. I can't cause my laptop to...
Read more >
Why does kill -9 0 on a mac simply kill the bash shell?
They probably use the PID 0, because it is a reserved PID and as such you cannot send signals to the process. I...
Read more >
Troubleshoot pipeline runs - Azure DevOps
This topic provides guidance on the common reasons that pipelines fail to trigger, get an agent and start, or complete. For instructions on ......
Read more >
What does `kill -0 $pid` in a shell script do?
kill -0 $pid is to check whether the process with process id (pid) exists or not. Be careful while using kill -0 $pid...
Read more >
GitLab Runner commands
This command prints the status of the GitLab Runner service. The exit code is zero when the service is running and non-zero when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found