SEGV using pushback
<pre><code>vector&lt;char*&gt; *v =new vector&lt;char*&gt;[size];
for(i=0;i&lt;size;i++)
{
    char *buf=new char[1024];
    ------
    ------
    ind=****;
    v[ind].push_back(buf); // i am sure ind is not our of bounds.
}
</code></pre>

<p>I declared an array of vector using new operator and filled it in a loop. but it encountered a SEGV. i couldnt figure out how it occured . my GDB backtrace provides me last stack function to  " .....include/c++/4.4.5/ext/new_allocator.h:105".
code snippet is described below.</p>
