LinuxQuestions.org
Review your favorite Linux distribution.
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-22-2013, 08:41 AM   #1
durgakishore
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
double free or corruption (out)


double free or corruption (out) is the error i am having in my c program give me some suggestion to getout of this error
 
Old 01-22-2013, 08:46 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
For a start:

Code:
#define MYFREE(ptr) \
{\
    if (ptr) free (ptr);\
    ptr= NULL;\
}
 
1 members found this post helpful.
Old 02-06-2013, 04:12 AM   #3
durgakishore
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
nedi code in c

i have written code on new edge directed interpolation code in c i am getting pixel values greater than 255. any one can help me i cant display code due to security reasons of my firm
 
Old 02-06-2013, 04:58 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Yes, provided they are mind-readers and/or clairvoyants. But please don't hijack other people's threads.
 
Old 02-06-2013, 06:57 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you can try to use valgrind to check memory handling
 
Old 02-06-2013, 07:01 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-06-2013, 07:27 AM   #7
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Use ddd or gdb to run your program, and make sure either debugging information's compiled-in or get someone to look at it who knows the assembly language for whichever platform you're running.
 
  


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
double free or corruption error DKSL Linux - Software 1 07-01-2012 03:48 AM
dhcpd: double free or corruption bobfromtx Linux - Newbie 1 06-13-2009 04:50 AM
What does this error mean? double free or corruption nanxy Programming 6 08-10-2008 11:26 AM
glibc double free or corruption lamtab Programming 2 01-25-2008 03:21 AM
double free or corruption (glibc)? bendeco13 Linux - General 5 09-11-2006 04:26 PM

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

All times are GMT -5. The time now is 06:37 PM.

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