Windows 10: Processes stuck in "Suspended" state

6

1

I'm running into an issue on Windows 10 where processes remain stuck in the "Suspended" state (visible through the task manager by displaying the "Status" column). Those processes cannot be killed, even with SYSTEM user rights, as Taskkill returns an "Access Denied" error.

When a process is suspended, the locks it has on the Dlls it references are not freed. This becomes problematic if another application attempts to update those Dlls.

Another problematic scenario: if an application is in charge of ensuring that another application is always running, doing API calls to detect running processes returns an exception (for suspended processes).

Here's a 100% repro: create a small .net console application that throws an exception and run it through the command line. The process will become suspended and cannot be terminated.

class Program
{
    static void Main(string[] args)
    {
        if (string.IsNullOrEmpty(args[0]))
        {
        }
    }
}

Anyone else encountered a similar issue ? I know that suspending processes is normal under Windows 8 / 10, the issue here is that they do not resume and cannot be terminated.

Hussein Khalil

Posted 2016-03-24T17:54:41.297

Reputation: 191

I can reproduce this behavior on my system as well, I have no explanation. The suspended process ends up in a zombie state and cannot be killed, you must reboot to clear it. – Benoit Miller – 2016-03-24T18:05:45.343

If you look in the Resource Monitor > Overview Tab > CPU section the suspended processes will be at the top in blue. You can right-click on them and try the Resume option. Don't know if it'll work, though. – simon at rcl – 2016-03-24T18:14:03.733

It doesn't work. The process is stuck in the suspended state forever. – Benoit Miller – 2016-03-24T18:15:39.543

Which exact version/build of Windows 10 are you using? I can't reproduce this on 1511 (build 10586.164). The process just terminates as expected (after throwing the error). It continues to show in resource Monitor for a while, with a "Terminated" status, but eventually gets dumped from the list. – Ƭᴇcʜιᴇ007 – 2016-03-24T20:07:29.803

Windows 10 Enterprise - Version 1511 - OS Build 10586.164. Quite strange that we have the same build, yet different results... I wonder if it's an access right problem. – Hussein Khalil – 2016-03-24T20:38:44.987

This is an Antivirus suite issue. Stop you Av tool and the process will stop fine – magicandre1981 – 2016-03-25T07:56:04.160

any news? Does stopping your Av suite fixes it? – magicandre1981 – 2016-04-02T08:15:23.477

Thanks for the comment Andre. I added an answer, the problem was the SN-DBS service (see: http://www.snsystems.com/tech-blog/2014/01/06/building-with-the-network/).

– Hussein Khalil – 2016-04-04T04:44:17.493

Answers

3

The issue was the SN-DBS service. Stopping it killed all pending suspended processes.

Hussein Khalil

Posted 2016-03-24T17:54:41.297

Reputation: 191

Thanks a lot! You saved us quite a lot of time. I must admit it was a really elusive issue. Also the problem was already fixed in the new version of SN-DBS so and update does the trick. – Elvithari – 2016-10-21T16:15:08.457

9What's SN--DBS? – Pacerier – 2017-01-29T13:01:46.363

@Pacerier based on Hussein's and Elvithari's backgrounds in the profiles I be it is the "SN Systems Distributed Build System". However, I am not a game developer so I don't have that service running on my machine. This is the first time I have noticed the problem on my machine so I am going to resort to a reboot. If I continue to have this problem I will dig deeper and hopefully remember to come back here and share my findings. – Andrew Steitz – 2018-05-30T17:16:56.170