BUG #16576: Creating a connection using psycopg2 results in "zombie" ccapiserver.exe processes on Windows

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: peet(dot)whittaker(at)gmail(dot)com
Subject: BUG #16576: Creating a connection using psycopg2 results in "zombie" ccapiserver.exe processes on Windows
Date: 2020-08-07 15:52:52
Message-ID: 16576-0f02e224a1c2007b@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16576
Logged by: Peet Whittaker
Email address: peet(dot)whittaker(at)gmail(dot)com
PostgreSQL version: 12.3
Operating system: Windows Server 2019
Description:

Originally reported here: https://github.com/psycopg/psycopg2/issues/1138

Running the following Python code (filling in the connection details)
results in a ccapiserver.exe process being spawned that persists even after
the Python session has ended.

import psycopg2
with psycopg2.connect(host='', dbname='', user='', password='') as conn:
pass

If the code is then re-run, no additional ccapiserver.exe process is spawned
(i.e. the total number of ccapiserver.exe processes stays at 1). However, if
the code is run via a scheduled task, it does spawn additional
ccapiserver.exe processes. This led to a huge number of these "zombie"
processes on one of our production servers (resulting in scheduled task
failures and general system slow-down).

The ccapiserver.exe process appears to be the "Kerberos Credentials Cache
API Server", although we are not using Kerberos authentication.

Is this a bug, or is there a way to avoid spawning the ccapiserver.exe
process?

Thanks

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2020-08-09 11:00:01 BUG #16577: Segfault on altering a table located in a dropped tablespace
Previous Message Sandeep Thakkar 2020-08-07 04:28:59 Re: BUG #16556: The database cluster initialisation failed - Win 10 postgresql 12.3 version installation error