c++ - "glibc free(): invalid next size(fast)" on vector.push_back? -


When I run my program it will crash sometimes and will give me this error: "

Strong> code> zero path :: add (position p) {path.push_back (p);}

I have tried to chat and remember very few problems are very low. How to be on a std :: vector & lt; & gt; .push_back Who is it? Who can I check for? Any help is appreciated.

Illegal writing is doing somewhere and glibc for the control information bookkeeping by way of it, when it tries to free things, it detects an unusual situation (inappropriate size for free).

The worst thing about this type of thing is that the problem is at that point. There is not a place where you actual fault Fishing can be very difficult (it is a close one error).

Your best bet is to use the memory debugger. Valgrind can be a start (since you have mentioned glibc) before the Glibc message "Invalid write size. .. "

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

memcached - Django cache performance -