473,666 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 18738
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.nowrot e:
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.nowrot e:
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.c om/group/comp.lang.c++.m oderated/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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1240
by: Rob | last post by:
Hi I am getting the error *** glibc detected *** free(): invalid pointer: 0x083e20cc *** Aborted When I run the code <?php
32
5930
by: Clunixchit | last post by:
How can i read lines of a file and place each line read in an array? for exemple; array=line1 array=line2 ...
3
95105
by: Paminu | last post by:
I get this error after running my application for some time. What does it mean and what should I be looking for in my code?
2
19175
by: zl2k | last post by:
hi, I have one program runs fine on my i386 linux box but get the "glibc detected *** corrupted double-linked list" error on the x86_64 linux box. Please help me to figure out if it is my program's problem or the library's problem. The libraries I am using is the boost and stl. The original program is quite long and I shrink it short and still able to duplicate the error. Basically, I first create a priority queue and after several round...
1
2930
by: mahiapkum | last post by:
hello all i have a code which looks fine when reviewed but when the application has a long run say for example of 2 days it gets exit, because of glibc error and the sample code is as follows: while (1) { if((kfp = kd_open(kd_filename, READ, NULL , INIT_YES))== NULL) { printf("%s: File not found ...\n", kd_filename); if (!forceflag) { sleep(5); ...
0
6535
by: shrik | last post by:
I have following error : Total giant files in replay configuration file are : File name : /new_file/prob1.rec Given file /new_file/prob1.rec is successfully verified. Splitting for giant file /new_file/prob1.rec started. Please wait.... In while loop of request searching *** glibc detected *** ./a.out: free(): invalid next size (normal): 0x099da890 *** ======= Backtrace: ========= /lib/libc.so.6
4
4390
by: shrik | last post by:
I have following error : Total giant files in replay configuration file are : File name : /new_file/prob1.rec Given file /new_file/prob1.rec is successfully verified. Splitting for giant file /new_file/prob1.rec started. Please wait.... In while loop of request searching *** glibc detected *** ./a.out: free(): invalid next size (normal): 0x099da890 *** ======= Backtrace: ========= /lib/libc.so.6
1
19396
by: shiznit | last post by:
I made a program that finds a minimum spanning tree. In my main I created kruskal k; and called k.findMST(); void kruskal :: findMST(){
1
3385
by: itxharsh | last post by:
/* While running the program a runtime error occurs."glibc detected" followed by a lot of memory address/instruction errors. Please help rectify this error.*/ /*Header file:"nonpreemptive.h" is as follows: #define C_OR_CPP 2 // Change value to 1 here if you are submitting a C solution for this problem. // Change value to 2 here if you are submitting a C++ solution for this problem. void dsmain();
0
8449
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8360
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4371
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.