summaryrefslogtreecommitdiff
path: root/runtime/errors.rs
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2023-06-28 23:41:59 +0300
committerGitHub <noreply@github.com>2023-06-28 14:41:59 -0600
commit3be538106027f9018634fb34306902e2fe6c4c97 (patch)
tree896a5e0520c9a34ffc824707399a207cf7906a75 /runtime/errors.rs
parent30f2cd3d1e0f7014156d05a0b08efd6b0e92f170 (diff)
fix(test_ffi): thread_safe_callback is flaky (#19640)
Attempts to fix the thread_safe_callback flakiness. It's unclear what the flake is about, the exit code is apparently `C0000005` or `ACCESS_VIOLATION`, pointing to an issue with memory access. My only guess is that maybe dropping the `Option<extern "C" fn ()>` is somehow checking the validity of the function pointer and since the function has been dropped, the pointer is no longer valid and sometimes points to memory that should not be accessed. So now the will explicitly drop the functions before they get deallocated. If this doesn't fix the flake then something beyond my understanding is wrong.
Diffstat (limited to 'runtime/errors.rs')
0 files changed, 0 insertions, 0 deletions