https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255445

--- Comment #2 from yocal...@gmail.com <yocal...@gmail.com> ---
(In reply to Li-Wen Hsu from comment #1)

Hi Li-Wen Hsu, thanks for the feedback. I will definitely use stock GENERIC
freeBSD 12.2 kernel. The hard part is instrumenting a program that causes the
SIGSEV :(.

I can, however, confirm that stock 12.2 has a regression with threads on
py3.8.7. You can use this script to test it.

from multiprocessing.pool import ThreadPool
from datetime import datetime

class Broken(object):
    def __init__(self):
        self.pool = ThreadPool()

    def __del__(self):
        self.pool.close()
        self.pool.join()

ohno = Broken()
date = datetime.now()

print(str(date), ohno)

Running that 52 times caused an indefinite hang ~19.2% of the time. After
cherry-picking the 2 commits I linked above, I confirmed that it resolved the
"hangs". It never did reproduce a core dump.

Anyways, I'll keep trying to write a program that tickles the problem. If you
or anyone has any ideas reading this, I'm all ears at this point and will
happily try anything at this point :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-python@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"

Reply via email to