core dumped when adding to vector

Joe Buck Joe.Buck@synopsys.COM
Fri Jun 24 16:24:00 GMT 2005


> >I have an enum called protocol_states and a vector<protocol_state> 
> >which contains
> >some elements. When I call the insert method of an other empty 
> >vector<protocol_state>
> >in order to copy the elements of the first vector, a core dumped occurs.

On Fri, Jun 24, 2005 at 04:16:32PM +0100, chris jefferson wrote:
> The best place to submit bug reports is to http://gcc.gnu.org/bugzilla/. 
> If you submit it there, someone will come along and tell you if it is a 
> bug in libstdc++ or a bug in your code.

Chris, why are you assuming that there's a bug in GCC or libstdc++?
Vectors of enums are trivial and just work for everyone else.

I suspect that there is some other bug in the program, one that corrupts
the heap.  This is particularly likely if the allocator is dumping core.




More information about the Libstdc++ mailing list