Compilers can only find syntax errors, finding bugs is the programmer's job. First, try what's described in the manual under "troubleshooting". Second, if you could not find the bug this way, ask for help here.