Skip to content

Fatal exception crash on Windows with version 3.2.8 #1088

@mmcgugan

Description

@mmcgugan

Hello - I've started experiencing crashing with psycopg on Windows 11 starting from version 3.2.8. When attempting to use psycopg.connect, I get a short delay and then a "Windows fatal exception: access violation".

Running this (with python -X dev):

import psycopg
conn = psycopg.connect(host="my.host", user="username", password="password", dbname="db")

I get this output and a crash:

Windows fatal exception: access violation

Current thread 0x00002938 (most recent call first):
  File "M:\Python\testenv\Lib\site-packages\psycopg\_connection_base.py", line 436 in _connect_gen
  File "M:\Python\testenv\Lib\site-packages\psycopg\waiting.py", line 97 in wait_conn
  File "M:\Python\testenv\Lib\site-packages\psycopg\connection.py", line 105 in connect
  File "<stdin>", line 1 in <module>

This is on a fresh venv, with the only install being psycopg[binary] version 3.2.8. I've tested with Python 3.11, 3.12 and 3.13 and get the same result.

Running the same thing with psycopg version 3.2.7 gives no issue at all.

Happy to provide any extra information or output that may be helpful.

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