title: Debug huge C++ project on linux
body: <p>I developed a project on Mac using C++. It works perfectly. However when I try to launch it from a Linux server, I get a bad alloc error: </p>
  
  <pre><code>terminate called after throwing an instance of 'std::bad_alloc' 
  what():    std::bad_alloc 
  Aborted
  </code></pre>
  
  <p>I don't know how to debug the whole project because I have absolutely no idea of where the issue come from. Why is it working on my Mac and not on Linux? All articles and questions about that only ask for single file program but not 40+ files project.</p>
  
  <p>Is there a way to get the file or line that causes the bad alloc? </p>