[krbdev.mit.edu #9197] t_otp.py fails when run using Python 3.14

Simon Johnsson via RT rt-comment at krbdev.mit.edu
Tue Feb 17 11:32:24 EST 2026


Tue Feb 17 11:32:23 2026: Request 9197 was acted upon.
 Transaction: Ticket created by simon.johnsson at canonical.com
       Queue: krb5
     Subject: t_otp.py fails when run using Python 3.14
       Owner: Nobody
  Requestors: simon.johnsson at canonical.com
      Status: new
 Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9197 >


Hi there!

When building krb5 using Python 3.14, I discovered a test error. Python's
multiprocessing module now uses `forkserver` as the default start method
unless specified otherwise (see
https://docs.python.org/3/whatsnew/3.14.html#multiprocessing). This breaks
`src/tests/t_otp.py` when the daemon starts. A temporary fix is to force
the start method to use `fork` instead. However, this test should probably
be rewritten to respect `forkserver` instead.

All the best,
Simon



More information about the krb5-bugs mailing list