title: How to debug segmentation fault of g++?
body: <p>I tried to compile the code using g++4.4.6 on aix 6.1. I dont have gdb installed.
  After compilation, It is showing Segmentation Fault error:-</p>
  
  <pre><code>../test/Corner.h: In member function 'void VirtualFlow&lt;T&gt;::vector_flow(typename T::Data**, typename T::Data**) [with T = NProcess&lt;or_func&lt;NetAndVal&lt;ZVal2&gt;, with_derivatives&gt;, ConvexNoOverlapSize&lt;16, 16, Multiply&lt;65536l, AllPass&lt;CornerT&lt;NetAndVal&lt;ZVal2&gt; &gt;, NoFlow&lt;CornerT&lt;NetAndVal&lt;ZVal2&gt; &gt; &gt; &gt; &gt; &gt; &gt;]':
  ../test/Corner.h:369: internal compiler error: Segmentation fault
  </code></pre>
  
  <p>I tried to use -g option with to create .o file and looked for the problem. </p>
  
  <pre><code>opt/freeware/bin/g++ -g ConnectFlow2.C -o ConnectFlow2.o
  </code></pre>
  
  <p>but I was not able to debug.</p>
  
  <p>Please share good practices of how to debug the segmentation fault.</p>
  
  <p>Thanks.</p>