Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-11-2009, 07:00 PM   #1
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.
Old 06-13-2009, 04:50 AM   #2
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
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.
export MALLOC_CHECK_=0
should work for you.

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


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 11:26 AM
*** glibc detected *** double free or corruption vvenugop Linux - General 0 02-19-2008 09:11 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
*** glibc detected *** double free or corruption (C++) urzumph Programming 25 01-07-2006 04:03 PM > Forums > Linux Forums > Linux - Newbie

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

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