Closed JoeSSS closed 2 years ago
@marvinthepa can you maybe take a look, since you definitely understand the finalizer better than I do :)
I've just got the same issue during upgrade from ruby 3.0 to 3.1
If it helps, I found it in ri ObjectSpace.define_finalizer
If aProc is a lambda or method, make sure it can be called with a single argument.
@marvinthepa can you maybe take a look, since you definitely understand the finalizer better than I do :)
Sorry, I was indisposed. Also sorry for this mistake in the finalizer.
@marvinthepa thanks, I've made it optional.
Merged and released as 0.2.8
.
After #15 we started to get:
We run kqueue like this:
when we kill the thread
Thread.kill(@thread)
the exception is raised and since we useabort_on_exception = true
, this results in crashes in unrelated part of code of other gems.Most likely we do something weird here, would be happy to hear any suggestions.