DHCPDv6 crashes when it encounters a duplicate host

Christopher D Haakinson cdhaakin at us.ibm.com
Fri Aug 13 16:25:42 UTC 2010


This is happening way too often to be something I have setup incorrectly. I
believe this is a bug with DHCPv6.

Some more data:

when the server crashes, I cannot re-start it without wiping out the last
record in the dhcpd6.leases file because I get an error saying:  corrupt
lease file.
For example:

/var/db/dhcpd6.leases line 74: corrupt lease file; expecting ia_na
contents, got '

'

^
/var/db/dhcpd6.leases line 74: corrupt lease file; expecting ia_na
contents, got '

'

^
/var/db/dhcpd6.leases line 74: corrupt lease file; expecting ia_na
contents, got '

'

^

This just repeats until I kill the process and remove the last lease in the
file. Here is the dhcpd6.leases file:

[root at localhost db]# cat dhcpd6.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.2.0

server-duid "\000\001\000\001\023\367\005\347\000\032d`\0040";

ia-na "Q\023^^\000\001\000\001Lc!\036*\306s\000\000\000" {
  cltt 5 2010/08/13 16:19:26;
  iaaddr fd80:1010::e71b {
    binding state active;
    preferred-life 2250
    max-life 3600
    ends 5 2010/08/13 17:19:26;
  }
}

ia-na "\211\021^^\000\001\000\001L`\252\226*\306s\000\000\000" {
  cltt 5 2010/08/13 16:19:27;
  iaaddr fd80:1010::ecba {
    binding state active;
    preferred-life 2250
    max-life 3600
    ends 5 2010/08/13 17:19:27;
  }
}

ia-na "B\014\303%\000\003\000\001\000\021%\303\014B" {
  cltt 5 2010/08/13 16:19:32;
  iaaddr fd80:1010::ffc3 {
    binding state active;
    preferred-life 2250
    max-life 3600
    ends 5 2010/08/13 17:19:32;
  }
}

ia-na "d\010\210^\000\001\000\001Lc\261^*\306s\000\000\000" {
  cltt 5 2010/08/13 16:19:33;
  iaaddr fd80:1010::e83c {
    binding state active;
    preferred-life 2250
    max-life 3600
    ends 5 2010/08/13 17:19:33;
  }
}

ia-na "\204\001C^\000\003\000\001\000!^C\001\204" {
  cltt 5 2010/08/13 16:19:35;
  iaaddr fd80:1010::e7ce {
    binding state active;
    preferred-life 2250
    max-life 3600
    ends 5 2010/08/13 17:19:35;
  }
}

ia-na "\004\003\210^\000\001\000\001Ld\370T*\306s\000\000\000" {
  cltt 5 2010/08/13 16:19:36;
  iaaddr fd80:1010::fbe8 {
    binding state active;
    preferred-life 2250
    max-life 3600
    ends 5 2010/08/13 17:19:36;
  }
}

ia-na "\004\003\210^\000\001\000\001Ld\370T*\306s\000\000\000" {
  cltt 5 2010/08/13 16:19:41;
  iaaddr fd80:1010::fbe8 {
    binding state abandoned;
    preferred-life 2250
    max-life 3600
    ends never;
  }
}


The weird part is that it looks like the last lease is formatted properly,
but the daemon will not start with it included in the lease file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100813/e754fbee/attachment.html>


More information about the dhcp-users mailing list