[Bug 257353] lang/python38: port very flaky when built under QEMU

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Jul 2021 13:20:23 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257353

            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=lang%2Fpython38%
                    24
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python_at_FreeBSD.org
          Reporter: fuz_at_fuz.su
          Assignee: python_at_FreeBSD.org
             Flags: maintainer-feedback?(python_at_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/parsers'...
Listing
'/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/xml/sax'...
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/compileall.py",
line 332, in <module>
    exit_status = int(not main())
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/compileall.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/compileall.py",
line 93, in compile_dir
    success = min(results, default=True)
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/concurrent/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/concurrent/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/concurrent/futures/_base.py",
line 444, in result
    return self.__get_result()
  File
"/wrkdirs/usr/ports/lang/python38/work/stage/usr/local/lib/python3.8/concurrent/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=lang%2Fpython38%24

Unfortunately, as the bug causes the port to get stuck, this is very annoying
to deal with.
Please investigate and perhaps mark as BROKEN when QEMU_EMULATING is defined.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Fri Jul 23 2021 - 13:20:23 UTC

Original text of this message