[squeak-dev] Squeak + SqueakDBX + FFI + valgrind + segmentation fault

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Squeak + SqueakDBX + FFI + valgrind + segmentation fault

Mariano Martinez Peck
Hi people: I think I am having a bug in SqueakDBX with mysql backend. SqueakDBX uses FFI to talk to openDBX C library.  Sometimes (totally random), after running several times (4 or 5) our 80 tests, I got a segmentation fault. Always in the same function but in different calls. I mean, the same function is called many times (at least one per test).

I don't know what the problem is and it is very difficult for me to find the cause of the problem. Because of this, I am trying to use valgrind and I have never use it before.

In all of the valgrind examples I see in internet it uses the C program directly, for example:
  valgrind --leak-check=yes myprog arg1 arg2

But I do it from Squeak using FFI, so, I have no idea where to put the valgrind :(

Sorry but I don't know too much about C.

Thanks a lot!

Mariano