When the function called by the ffi called a function defined in a shared library generate a fatal error
The correction was to take into consideration the GOT.