Basically you should check for errors in all the C code.