title: segmentation fault 11 in mac, but not in linux, gcc compiler
body: <p>I have a code which uses standard routines of numerical recipes for finding eigen vectors of a 3x3 matrix. While the code runs perfectly on linux machines, it fails with a segmentation fault 11 on mac. With gdb, when I back tracked I find that</p>
  
  <pre><code>Program received signal EXC_BAD_ACCESS, Could not access memory.
  Reason: KERN_INVALID_ADDRESS at address: 0x0000000140400008
  0x0000000100002a88 in tqli (d=0x7fff5fbffaa4, e=0x7fff5fbffa98, n=3, z=0x140400000) at     ac_nr.c:402
  402                         f=z[k][i+1];
  </code></pre>
  
  <p>where tqli is the standard routine in numerical recipies, and z is defined properly. I can say this confidently because in linux machines the program finds no difficulties in executing and gets me the correct answer. Google search is not helping to get any relevant answer. Can anybody hint at what is happening in mac or how to go ahead in fixing this?</p>
  
  <p>Thanks a lot,</p>