BQSKit / bqskit

Berkeley Quantum Synthesis Toolkit
Other
108 stars 31 forks source link

Harmless Race Condition in AttachedServer Cleanup #181

Open edyounis opened 10 months ago

edyounis commented 10 months ago

When running the compile function, the following error can occur very rarely without any other issue:

Traceback (most recent call last):
  File ".../lib/python3.11/site-packages/bqskit/runtime/base.py", line 447, in __del__
    def __del__(self) -> None:

OSError: Signal 2 ignored due to race condition

It seems like a race condition in the destruction of an AttachedServer (or any runtime server).