core dumped when adding to vector
Anakreon
anakreonmejdi@yahoo.gr
Fri Jun 24 14:37:00 GMT 2005
I hope this is the correct mailing list to make such questions.
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.
I can't figure out why and how can this happen.
The problem arises to the allocatetor according to gdb but the first vector
has less then 5 elements so is impossible for the memory to be exhausted.
If this mailing list is the right place for such questions I can send the offending
code (less then 5 lines) and the output of gdb when backtrace is invoked.
Thanks in advance.
Anakreon
More information about the Libstdc++
mailing list