Incorrect return type on an @FfiNative
annotation causes segfault at runtime
#49471
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
vm-native
Ideally there would be analysis and even compilation issues with this:
BAD:
GOOD:
Ideally the compiler or analyzer would have told me there's a mismatch between the return signature of the function and the generic parameter of the annotation. This was due to a copy paste error on my end, and resulted in a segfault at runtime that produced lots unsymbolized frames even in an unopt build.
@dcharkes maybe?
The text was updated successfully, but these errors were encountered: