From: Volkan Y. <yaz...@tt...> - 2009-09-02 10:14:06
|
Hi, I'm trying to interface with a foreign C library from SBCL (using CFFI) and having some troubles while calling the foreign function. The problem is that the called function skips some portion of the code -- i.e. some printf() statements get never executed within the code, despite it works without a problem if I make the same simple call from a C file. I'm not a C guru but am suspecting some stack re-alignment related stuff. Do you have any ideas? To be able to spot the problem, I tried to attach the SBCL session via gdb but had no success because of signals. Can anybody guide me to debug the foreign library function while SBCL is making a call to it? Regards. |