470,596 Members | 1,353 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

What's the reason of error ""*** glibc detected *** munmap_chunk(): invalid pointer"

I have a C++ package which works very well in the 32-bit Linux-like
OS. However, it will lead to a "*** glibc detected *** ./ex2:
munmap_chunk(): invalid pointer" in 64-bit (Fedora 7-64), when it
delete a object generated by new operator. I really do not known
why?
And I need your help. Please tell me why and when this error should
happen? So that I can fix my problem. :)

Oct 15 '07 #1
3 18446
Renzr wrote:
I have a C++ package which works very well in the 32-bit Linux-like
OS. However, it will lead to a "*** glibc detected *** ./ex2:
munmap_chunk(): invalid pointer" in 64-bit (Fedora 7-64), when it
delete a object generated by new operator. I really do not known
why?
Me neither - mostly because I do not have access to your code.
Have you tried searching the net for that error?
And I need your help. Please tell me why and when this error should
happen? So that I can fix my problem. :)
Does
http://groups.google.com/group/comp....05430519af9b7d
help?
Oct 15 '07 #2
On 10 15 , 11 14 , anon <a...@no.nowrote:
Me neither - mostly because I do not have access to your code.
Have you tried searching the net for that error?
Sorry, I have did the google but the explicit reason is inavaiable.:)
A friend has told me this may be caused by heap error. And I am fixing
it by Valgrind tool. Very thanks for your reply.

Oct 15 '07 #3
On 10 15 , 11 14 , anon <a...@no.nowrote:
Renzr wrote:
I have a C++ package which works very well in the 32-bit Linux-like
OS. However, it will lead to a "*** glibc detected *** ./ex2:
munmap_chunk(): invalid pointer" in 64-bit (Fedora 7-64), when it
delete a object generated by new operator. I really do not known
why?

Me neither - mostly because I do not have access to your code.
Have you tried searching the net for that error?
And I need your help. Please tell me why and when this error should
happen? So that I can fix my problem. :)

Doeshttp://groups.google.com/group/comp.lang.c++.moderated/browse_thread/...
help?
:), Thanks for your reply. I am trying the Valgrind tool to memcheck.
Maybe it is a heap error.:)

Oct 15 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Rob | last post: by
32 posts views Thread by Clunixchit | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.