LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 03: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, 05:07 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-21-2006 12:59 AM
unable to start valknut says "malloc(): memory corruption: 0x08211838 ***΅ shyamsundar Linux - Software 3 05-30-2006 06:04 AM
glibc detected *** malloc(): memory corruption: abefroman Linux - Software 2 04-12-2006 01:12 PM
Cinelerra Crashes While Rendering - malloc(): memory corruption uryagi Linux - Software 0 02-27-2006 03:07 PM
Out Of Memory - A caring malloc? cyent Programming 3 09-18-2002 10:38 AM


All times are GMT -5. The time now is 11:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration