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

Mariano Martinez Peck marianopeck at gmail.com
Fri Dec 19 01:39:33 UTC 2008

 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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081218/9601b86c/attachment.htm

More information about the Squeak-dev mailing list