opnsense / ports

OPNsense ports on top of FreeBSD
https://opnsense.org/
Other
157 stars 112 forks source link

python3.8 ValueError: semaphore or lock released too many times #146

Closed Martinfx closed 1 year ago

Martinfx commented 2 years ago

Hi, when i compiled with sudo env ROOTDIR=/tmp/opnsense make -j4 packages DEVICE=ARM64 have problem with this


Process ForkProcess-5:
Traceback (most recent call last):
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/concurrent/futures/process.py", line 233, in _process_worker
    call_item = call_queue.get(block=True)
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/multiprocessing/queues.py", line 98, in get
    self._sem.release()
ValueError: semaphore or lock released too many times

Exception in thread QueueManagerThread:
Traceback (most recent call last):
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/concurrent/futures/process.py", line 394, in _queue_management_worker
    work_item.future.set_exception(bpe)
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/concurrent/futures/_base.py", line 547, in set_exception
    raise InvalidStateError('{}: {!r}'.format(self._state, self))
concurrent.futures._base.InvalidStateError: CANCELLED: <Future at 0x4005fd4ca0 state=cancelled>

Traceback (most recent call last):
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/compileall.py", line 332, in <module>
    exit_status = int(not main())
  File "/usr/obj/tmp/opnsense/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 "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/compileall.py", line 93, in compile_dir
    success = min(results, default=True)
  File "/usr/obj/tmp/opnsense/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 "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/concurrent/futures/_base.py", line 619, in result_iterator
    yield fs.pop().result()
  File "/usr/obj/tmp/opnsense/ports/lang/python38/work/stage/usr/local/lib/python3.8/concurrent/futures/_base.py", line 444, in result
    return self.__get_result()
  File "/usr/obj/tmp/opnsense/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.