LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-11-2009, 08:00 PM   #1
bobfromtx
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Question dhcpd: double free or corruption


After dhcpd (dhcp-3.1.1) is restarted (and it functions well) a few times, it cannot come up because it is killed immediately due to a problem related to this message:

"dhcpd: *** glibc detected *** /usr/local/dhcp3/sbin/dhcpd: double free or corruption (out): 0x00000001200d8e00 ***"

Very likely it happens when dhcpd tries to read dhcpd.leases file. After the file is deleted and a new one is touched, dhcpd starts.

Could somebody tell me how to fix the bug or if there is a patch that fixes it?

Thanks a lot.
Bob
 
Old 06-13-2009, 05:50 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
If you have searched LQ forums a little you would've find a
Quote:
Recent versions of Linux libc (later than 5.4.23) and GNU libc (2.x) include a malloc implementation which is tunable via environment variables. When MALLOC_CHECK_ is set, a special (less efficient) implementation is used which is designed to be tolerant against simple errors, such as double calls of free() with the same argument, or overruns of a single byte (off-by-one bugs). Not all such errors can be protected against, however, and memory leaks can result. If MALLOC_CHECK_ is set to 0, any detected heap corruption is silently ignored and an error message is not generated; if set to 1, the error message is printed on stderr, but the program is not aborted; if set to 2, abort() is called immediately, but the error message is not generated; if set to 3, the error message is printed on stderr and program is aborted. This can be useful because otherwise a crash may happen much later, and the true cause for the problem is then very hard to track down.
So,the
Code:
export MALLOC_CHECK_=0
should work for you.

Last edited by alan_ri; 06-13-2009 at 05:53 AM.
 
  


Reply

Tags
corruption, dhcpd, double, free


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
What does this error mean? double free or corruption nanxy Programming 6 08-10-2008 12:26 PM
*** glibc detected *** double free or corruption vvenugop Linux - General 0 02-19-2008 10:11 AM
glibc double free or corruption lamtab Programming 2 01-25-2008 04:21 AM
double free or corruption (glibc)? bendeco13 Linux - General 5 09-11-2006 05:26 PM
*** glibc detected *** double free or corruption (C++) urzumph Programming 25 01-07-2006 05:03 PM


All times are GMT -5. The time now is 01:56 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