SecretBuffer finalizer warning errors out with multiple tasks #33696
Labels
domain:multithreading
Base.Threads and related functionality
kind:bug
Indicates an unexpected problem or unintended behavior
It looks like the helpful warning inside of the
SecretBuffer
finalizer causes multitasking to throw an error. To reproduce this, create a second task, then cause aSecretBuffer
to be GC collected, triggering a warning being printed, followed by an error that task switching is not allowed within GC finalizers:Perhaps the most infuriating thing is that it appears that everything worked properly, despite the fatal error.
The text was updated successfully, but these errors were encountered: