From nobody Fri Jul 23 13:20:23 2021
X-Original-To: python@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3205F12BB08E
	for <python@mlmmj.nyi.freebsd.org>; Fri, 23 Jul 2021 13:20:24 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (4096 bits) client-digest SHA256)
	(Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4GWVLJ0hVfz4kYn
	for <python@FreeBSD.org>; Fri, 23 Jul 2021 13:20:24 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F235025B96
	for <python@FreeBSD.org>; Fri, 23 Jul 2021 13:20:23 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
	by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 16NDKN9L026771
	for <python@FreeBSD.org>; Fri, 23 Jul 2021 13:20:23 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16NDKNZb026770
	for python@FreeBSD.org; Fri, 23 Jul 2021 13:20:23 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: python@FreeBSD.org
Subject: [Bug 257353] lang/python38: port very flaky when built under QEMU
Date: Fri, 23 Jul 2021 13:20:23 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Ports & Packages
X-Bugzilla-Component: Individual Port(s)
X-Bugzilla-Version: Latest
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: fuz@fuz.su
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: python@FreeBSD.org
X-Bugzilla-Flags: maintainer-feedback?
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
 bug_file_loc op_sys bug_status bug_severity priority component assigned_to
 reporter flagtypes.name
Message-ID: <bug-257353-21822@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-python
List-Help: <mailto:python+help@freebsd.org>
List-Post: <mailto:python@freebsd.org>
List-Subscribe: <mailto:python+subscribe@freebsd.org>
List-Unsubscribe: <mailto:python+unsubscribe@freebsd.org>
Sender: owner-freebsd-python@freebsd.org
X-BeenThere: freebsd-python@freebsd.org
MIME-Version: 1.0
X-ThisMailContainsUnwantedMimeParts: N

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

            Bug ID: 257353
           Summary: lang/python38: port very flaky when built under QEMU
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://portsfallout.com/fallout?port=3Dlang%2Fpython38%
                    24
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: fuz@fuz.su
          Assignee: python@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)

When building lang/python38 with QEMU, the build usually gets stuck with an
error like this:

--->8--->8---
Listing
'/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/xml/pa=
rsers'...
Listing
'/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/xml/sa=
x'...
Listing
'/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/xmlrpc=
'...
Traceback (most recent call last):
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/compil=
eall.py",
line 332, in <module>
    exit_status =3D int(not main())
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/compil=
eall.py",
line 314, in main
    if not compile_dir(dest, maxlevels, args.ddir,
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/compil=
eall.py",
line 93, in compile_dir
    success =3D min(results, default=3DTrue)
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/concur=
rent/futures/process.py",
line 484, in _chain_from_iterable_of_lists
    for element in iterable:
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/concur=
rent/futures/_base.py",
line 619, in result_iterator
    yield fs.pop().result()
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/concur=
rent/futures/_base.py",
line 444, in result
    return self.__get_result()
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/concur=
rent/futures/_base.py",
line 389, in __get_result
    raise self._exception
concurrent.futures.process.BrokenProcessPool: A process in the process pool=
 was
terminated abruptly while the future was running or pending.
--->8--->8---

Some times it also does not fail, which leads me to believe there might be =
some
sort of race
condition made visible by the use of emulation.

There are many ports fallouts demonstrating this issue:

    https://portsfallout.com/fallout?port=3Dlang%2Fpython38%24

Unfortunately, as the bug causes the port to get stuck, this is very annoyi=
ng
to deal with.
Please investigate and perhaps mark as BROKEN when QEMU_EMULATING is define=
d.

--=20
You are receiving this mail because:
You are the assignee for the bug.=