> I have only my c source file where a f1 call f2 and f2 return and code crash
If you want us to tell you why, you need to post your code.

> second please can you give ideal for static code analysis
List of tools for static code analysis - Wikipedia