title: Segmentation fault on ubuntu, Run on debian
body: <p>Amazing enough at least for me. The code below cause <code>segmentation fault: core dump</code> on my ubuntu 15.04 but run successfully on my friend debian platform.  </p>
  
  <p>Also to note, I know that my <code>array</code> has desired indexes, so I get storage for that and indexes have integer value.  </p>
  
  <pre><code>int array_dequeue(int **array, int *n)
  {
      int c;
      for (c = 0; c &lt; *n - 2 ; c++)
          *array[c] = *array[c + 1];
      *n--;
  
      return 0;
  }
  
  //Calling that in main
  int main(int argc, char* argv[])
  {
      int length = atoi(argv[1]); // ./mpi.o 4 so length is 4
      int *VP;
      VP = (int*)malloc(length*sizeof(int));
  
      for(i=0; i&lt;vertices; i++)
      {
          VP[i] = i + 1;
      }
      array_dequeue(&amp;VP, &amp;length);
  }
  </code></pre>
  
  <p>Any help will be appreciated. Thanks in advance</p>