474,042 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

*** glibc detected *** malloc(): memory corruption (fast): 0x0804c008 ***

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?
Nov 15 '05 #1
3 95240
Paminu <ja******@asd.c om> wrote in news:di******** **@news.net.uni-c.dk:
Subject: *** glibc detected *** malloc(): memory corruption (fast):
0x0804c008 ***
Don't put important information only in the subject line.
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?


You seem to be using a specific tool for detecting memory usage errors.
You are going to have to find a way to get more information out of that
tool, or seek help from sources devoted to providing help for that tool.

Without any more information, you probably write beyond the end of an
allocated memory block somewhere in your program. You should examine how
you use pointers.

Sinan

--
A. Sinan Unur <1u**@llenroc.u de.invalid>
(reverse each component and remove .invalid for email address)
Nov 15 '05 #2
In article <di**********@n ews.net.uni-c.dk>, Paminu <ja******@asd.c om> wrote:
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?


Probably you are either writing outside the bounds of a block of
memory that you have malloc()ed, are you are using a block after you
have free()d it.

Most operating systems have tools available to help you find such bugs.
It looks like you're using Linux: "man -k malloc" may help you find
some.

-- Richard
Nov 15 '05 #3
Paminu wrote:
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?


Recent versions of glibc offer this minimal diagnostic. Probable
causes:

* Writing beyond the end of a memory block obtained via malloc
or realloc.

* Writing/reading memory that has been released with free().

To get more detail, try the very exellent valgrind.

http://valgrind.org/

Allin Cottrell
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
5985
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 ...
2
7398
by: g35rider | last post by:
Hi, I have the following code that is giving this error, I cant simplify the code, I was just testing some theory for something we are doing and was getting an issue here. Please someone point out whats wrong with my code. class MsgData { char* data;
0
6567
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
2
4115
by: vpghodake | last post by:
Hi, I got this runtime error while running the program. I debugged it but could not find the what the problem is. so could any one help me how to fix this problem.?
1
19446
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(){
5
10536
by: sriramsreenivasan | last post by:
I am a beginner in c i have written a linked list program and it shows a error after two successions please help me to find the error and to solveit #include<stdio.h> #include<stdlib.h> #include<string.h> struct node { int userid;
5
3835
by: davidcollins001 | last post by:
Hi, I am writing a small program to basically copy ls. I would like to copy a string so I thought I would use strncpy but I am getting the following error: I thought I would be able to debug this but i have been through the man pages and can't figure it out. Doing the same thing with strcpy works fine. The reason I wanted to use strncpy is because it is safe (as far as I am aware) I have seen a few posts to say that it doesn't guarantee...
1
3407
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();
2
7951
by: deepikarc14 | last post by:
Hi i am Deepika. am new to this forum. I am working on ubuntu 10.04 LTS and using C lang. to write prgrms. I am trying to read strings from a file where i am using malloc concept to declare and initialize string arrays. After execution i get the above mentioned error. I don't know where i am going wrong and i don't know how to solve the problem. Help would be greatly appreciated. My program code(C language) is as follows : ...
0
10543
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
11601
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
12014
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8694
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
7865
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
6833
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5409
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
3
3968
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.