[Bug 255445] lang/python 3.8/3.9 SIGSEV core dumps in libthr TrueNAS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Apr 27 19:22:03 UTC 2021


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

--- Comment #2 from yocalebo at gmail.com <yocalebo at 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.


More information about the freebsd-python mailing list