LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2007, 02:59 PM   #1
Coxynelle
LQ Newbie
 
Registered: Jan 2007
Location: Switzerland
Distribution: Ubunto 6.06 LTS
Posts: 2

Rep: Reputation: 0
malloc() memory corruption (C++)


Hello everyone,
I am kinda new to linux so... I need your help...

I have been programming a small programm, in C++... I tested my programm on Fedora, and everything went well... now I am trying to make it run on Ubuntu, but I keep having this error when compiling:

*** glibc detected *** malloc(): memory corruption: 0x08064eb0 ***


does anyone know what could cause it? thank you in advance
 
Old 01-17-2007, 04:07 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
You might be freeing something which is already freed or one of the other usual suspects when doing C memory management.

If it's a C++ program, consider using new/delete instead of malloc/free, and do not mix them up!

The glibc error message you got isn't very helpful on it's own. valgrind might be able to help you pin down your error. If you fix it, don't forget to post here with some details and how you found the bug!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
*** glibc detected *** malloc(): memory corruption arvind.ayyangar Programming 2 11-20-2006 11:59 PM
unable to start valknut says "malloc(): memory corruption: 0x08211838 ***΅ shyamsundar Linux - Software 3 05-30-2006 05:04 AM
glibc detected *** malloc(): memory corruption: abefroman Linux - Software 2 04-12-2006 12:12 PM
Cinelerra Crashes While Rendering - malloc(): memory corruption uryagi Linux - Software 0 02-27-2006 02:07 PM
Out Of Memory - A caring malloc? cyent Programming 3 09-18-2002 09:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration