Hi ruby-ffi group
I try to access the OPSEC library developed by CheckPoint. The library itself provides an async interface with its own event dispatch loop; results and data are delivered to callback functions.
The problem is that I get a segfault while receiving data back from the other side. This happens inside the event loop of the library, so there is no ruby statement executed right before that. I enabled some library debugging statements and put the output into a GIST:
https://gist.github.com/3018584I additionally tried to do the same steps with a pure C program and this works without problems. So I expect the problem to lie somewhere between that OPSEC lib and ruby-ffi.
Now, the question is: How can I trace down where the problem is? I absolutely have no experience in finding segfaults.
Thanks in advance for your help, Alex