[CUWiN-Dev] dhclient bug

David Young dyoung at pobox.com
Fri Mar 30 15:58:58 CDT 2007


On Fri, Mar 30, 2007 at 03:46:48PM -0500, Matthew Isaacs wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Found a bug in dhclient.  Seems that adding any enter-hooks makes it
> crap out, even with a simple hook-script like this:
> 
> === SCRIPT ===
>  echo `date`: entering dhclient-enter-hooks, dumping variables. \
>                 >> /tmp/dhclient-script.debug
> 
>         for i in reason interface medium alias_ip_address new_ip_address \
>                 new_subnet_mask new_domain_name new_domain_name_servers \
>                 new_routers new_static_routes old_ip_address
> old_subnet_mask \
>                 old_domain_name old_domain_name_servers old_routers \
>                 old_static_routes; do
> 
>                 echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
>         done
> 
>         echo '--------------------------' >> /tmp/dhclient-script.debug
> === END SCRIPT ===
> 
> The error recorded: "dhclient.c(2072): null pointer".  It seems to enter
> into some sort of infinite loop, constantly calling the enter hooks, but
> never really running.  It also causes nasty problems on the dhcp server
> on my machine...it makes it chew through leases and thrashes the
> hard-drive changing leases several times a second.

Does it help to put an 'exit 0' at the bottom of your script?

Dave

-- 
David Young             OJC Technologies
dyoung at ojctech.com      Urbana, IL * (217) 278-3933


More information about the CU-Wireless-Dev mailing list