This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
core dumped when adding to vector
- From: Anakreon <anakreonmejdi at yahoo dot gr>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 24 Jun 2005 17:04:09 +0300
- Subject: core dumped when adding to vector
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