catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Raise an error if we attempt to call a QJIT'ed context inside a callback

Open erick-xanadu opened this issue 1 year ago • 2 comments

We currently do not support this case.

erick-xanadu avatar Apr 05 '24 19:04 erick-xanadu

Interesting, what happens? 😅

dime10 avatar Apr 05 '24 19:04 dime10

Deadlock due to the python interpreter. We can avoid the deadlock by using std::recursive_lock, but then we just segfault. The runtime is ill equipped to handle this case. I think it overrides some thread_local variables.

erick-xanadu avatar Apr 05 '24 19:04 erick-xanadu