python / python/cpython

Python 3.13 / OpenSSL 3.5.5 crashes on Windows with OPENSSL_Uplink ... no OPENSSL_Applink when SSLKEYLOGFILE is set

Aperta
#152,784 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

extension-modules OS-windows topic-SSL type-bug
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Bug report

Bug description:

Title: Python 3.13 / OpenSSL 3.5.5 crashes on Windows with OPENSSL_Uplink ... no OPENSSL_Applink when SSLKEYLOGFILE is set

Environment:

  • OS: Windows
  • Python: 3.13.12, 64-bit
  • OpenSSL: OpenSSL 3.5.5 27 Jan 2026
  • Application: ComfyUI Desktop / ComfyUI Manager
  • GPU: NVIDIA RTX 3060

Problem:
When SSLKEYLOGFILE is set, Python exits immediately during HTTPS/network activity with:

OPENSSL_Uplink(...): no OPENSSL_Applink

There is no Python traceback because the process aborts in native OpenSSL code.

Reproduction:

  1. Set an environment variable:

SSLKEYLOGFILE=E:\AI\Apps\Wireshark\sslkeys.log

  1. Start ComfyUI with Manager public/network mode enabled.
  2. During ComfyUI-Manager startup network/cache fetches, Python exits with:

OPENSSL_Uplink(...): no OPENSSL_Applink

Observed:
The process exits with code 1. No Python exception is raised.

Expected:
Setting SSLKEYLOGFILE should enable TLS key logging or fail gracefully, not abort the Python process.

Investigation:

  • import ssl works.
  • import aiohttp.resolver works.
  • import requests, urllib3, github, and huggingface_hub work.
  • ComfyUI runs in offline mode.
  • ComfyUI Manager public mode crashes during online cache/network fetching.
  • ProcMon showed access to E:\AI\Apps\Wireshark\sslkeys.log immediately before the crash.
  • Clearing the environment variable fixes the issue:

set SSLKEYLOGFILE=

After removing SSLKEYLOGFILE, ComfyUI Manager starts successfully in public mode.

Workaround:
Remove SSLKEYLOGFILE from User/System environment variables.

Question:
Is this a known issue with Python 3.13 / OpenSSL 3.5.x on Windows when TLS key logging is enabled?

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il problema di SSLKEYLOGFILE su Windows con Python 3.13 e OpenSSL 3.5.5 durante l’attività HTTPS descritta; il report non indica alcun file del codice sorgente né alcun test di CPython. Il lavoro sarà completato quando sarà determinato se CPython è responsabile e sarà garantito che la registrazione delle chiavi non interrompa più il processo, usando come validazione lo scenario in modalità pubblica di ComfyUI Manager.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
operating-systems, security
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.