Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897746 - dev-python/hypothesis tests hanging (dev-lang/python deadlock bug)
Summary: dev-python/hypothesis tests hanging (dev-lang/python deadlock bug)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-02-25 21:50 UTC by Marco Sirabella
Modified: 2023-03-15 07:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =dev-python/hypothesis-6.68.2 (hypothesis.info,7.38 KB, text/plain)
2023-02-25 21:54 UTC, Marco Sirabella
Details
build.log (build.log.xz,76.73 KB, application/x-xz)
2023-03-01 02:49 UTC, Marco Sirabella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Sirabella 2023-02-25 21:50:30 UTC
Tested on both 6.65.2 (stable) & 6.68.2 (latest), all the tests seem to run then hangs at the end with the results:

================================================== 3136 passed, 2 skipped, 1 xfailed, 1045 warnings in 356.01s (0:05:56) ===================================================



Nothing suspicious in the process tree:

root     31208  0.0  0.0 226172  4684 pts/34   S+   Feb24   0:00                  |       \_ sudo emerge --autounmask =dev-python/hypothesis-6.68.2
root     31209  0.0  0.8 577704 277872 pts/34  SN+  Feb24   0:10                  |           \_ /usr/bin/python3.11 /usr/lib/python-exec/python3.11/emerge --autounmask =dev-python/hypothesis-6.68.2
root     32340  0.0  0.0 232740 11128 pts/34   SN+  Feb24   0:00                  |               \_ /usr/bin/python3.11 /usr/lib/portage/python3.11/pid-ns-init 32341
root     32341  0.0  0.0 232872 11468 pts/23   SNs+ Feb24   0:00                  |                   \_ /usr/bin/python3.11 /usr/lib/portage/python3.11/pid-ns-init 250 250 250 18 0,1,2 /usr/bin/sandbox [dev-python/hypothesis-6.68.2] sandbox /usr/lib/portage/python3.11/ebuild.sh test
portage  32344  0.0  0.0   2440  1632 pts/23   SN+  Feb24   0:00                  |                       \_ [dev-python/hypothesis-6.68.2] sandbox /usr/lib/portage/python3.11/ebuild.sh test
portage  32345  0.0  0.0 227488  8036 pts/23   SN+  Feb24   0:00                  |                           \_ bash /usr/lib/portage/python3.11/ebuild.sh test
portage  32361  0.0  0.0 227760  7304 pts/23   SN+  Feb24   0:00                  |                               \_ bash /usr/lib/portage/python3.11/ebuild.sh test
portage  32375  0.0  0.0 221912  2224 pts/23   SN+  Feb24   0:00                  |                                   \_ tee -a /var/tmp/portage/dev-python/hypothesis-6.68.2/temp/build-python3_9.log
portage  32410  0.0  0.2 1528880 87680 pts/23  SN+  Feb24   0:07                  |                                   \_ python3.9 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:tavern tests/cover tests/pytest tests/quality -n 9
Comment 1 Marco Sirabella 2023-02-25 21:54:41 UTC
Created attachment 854664 [details]
emerge --info =dev-python/hypothesis-6.68.2
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 23:04:30 UTC
Can you include the build.log as well?
Comment 3 Marco Sirabella 2023-03-01 02:49:21 UTC
Created attachment 855324 [details]
build.log

oh yea sorry about that I thought I did
Comment 4 Paolo Pedroni 2023-03-14 10:25:36 UTC
Same for me...
Comment 5 Marco Sirabella 2023-03-15 03:24:57 UTC
Yeah, bug has been filed here a few weeks ago: https://github.com/HypothesisWorks/hypothesis/issues/3585

turns out it's a cpython issue: https://github.com/python/cpython/issues/102126
Comment 6 Larry the Git Cow gentoo-dev 2023-03-15 07:31:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81f95e3e7d6d140172d0afc8411bc0f214c74c2b

commit 81f95e3e7d6d140172d0afc8411bc0f214c74c2b
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-03-15 07:19:04 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-03-15 07:31:53 +0000

    dev-lang/python: Backport deadlock fix as 3.8.16_p4
    
    Closes: https://bugs.gentoo.org/897746
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-lang/python/Manifest                                             | 2 +-
 dev-lang/python/{python-3.8.16_p3.ebuild => python-3.8.16_p4.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddcad124fa6406a229316322e0e1a826808fd109

commit ddcad124fa6406a229316322e0e1a826808fd109
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-03-15 07:18:02 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-03-15 07:31:52 +0000

    dev-lang/python: Backport deadlock fix as 3.9.16_p3
    
    Closes: https://bugs.gentoo.org/897746
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-lang/python/Manifest                                             | 2 +-
 dev-lang/python/{python-3.9.16_p2.ebuild => python-3.9.16_p3.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c761c1d288b243df80ff42fba70733465ce44224

commit c761c1d288b243df80ff42fba70733465ce44224
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-03-15 07:16:46 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-03-15 07:31:51 +0000

    dev-lang/python: Backport deadlock fix as 3.10.10_p3
    
    Closes: https://bugs.gentoo.org/897746
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-lang/python/Manifest                                               | 2 +-
 dev-lang/python/{python-3.10.10_p2.ebuild => python-3.10.10_p3.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae14354cbb05c8d48e934de6e79d008091b6494b

commit ae14354cbb05c8d48e934de6e79d008091b6494b
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-03-15 07:14:34 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-03-15 07:31:50 +0000

    dev-lang/python: Backport deadlock fix as 3.11.2_p2
    
    Closes: https://bugs.gentoo.org/897746
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-lang/python/Manifest                                             | 2 +-
 dev-lang/python/{python-3.11.2_p1.ebuild => python-3.11.2_p2.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)