473,378 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

*** 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 95049
Paminu <ja******@asd.com> 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.ude.invalid>
(reverse each component and remove .invalid for email address)
Nov 15 '05 #2
In article <di**********@news.net.uni-c.dk>, Paminu <ja******@asd.com> 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
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
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...
0
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...
2
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
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
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>...
5
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...
1
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...
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.