title: Core Dumps but gdb is not able its find the exact location
body: <p>Lets say i have an array A[10] and some other variables</p>
  
  <p>And i am initializing it as</p>
  
  <pre><code>for(int i=0;i&lt;20;i++) //intentionally 20
      A[i]=0;
  </code></pre>
  
  <p>so when you run this <b>LIBRARY</b>, it will initialize the array without any error and access is also possible but the gdb gives core dump on some other place (In my case, it was showing memory for other variable as changed)
  <br>Why it is not giving core dump during initialization of array? </p>