On Fri, 5 Apr 2019 at 12:32, D. Hugh Redelmeier <[email protected]> wrote:
>
> Summary:  the new python3*-3.7.2-5.fc29.x86_64 doesn't fix things

While, like I predicted, upstream (i.e., python.org, and not fedora)
gave us the knee jerk response:
  I see many flaws with the libreswan code's design
the've also accepted that this:
   still caused a behavior regression in the stable 3.7 release."

> [recap]
> The test program cf-deadlock.py locked up on Fedora 29 with
>         python3*-3.7.2-4.fc29.x86_64
> but it seemed to work with
>         python3*-3.7.1-4.fc29.x86_64

I'm now certain that cf-deadlock.py is unrelated (but still bad); and
if you give it enough time it will barf on all versions of python.

You should try the attached.
import logging
import os
import sys
import threading

def lockie():
    while True:
        # this adds handle to _at_fork_acquire_release_weakset
        #sys.stdout.write(".")
        #sys.stdout.flush()
        h = logging.Handler()

threading.Thread(target=lockie).start()

for n in range(0,100000):
    if n % 100 == 0:
        sys.stdout.write("%d" % n)
        sys.stdout.flush()
    pid = os.fork()
    if pid != 0:
        os.wait()
    else:
        os._exit(0)
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to