dhclient segfaults on interfaces it can not handle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-dhcp (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
This is with version: 4.2.4-5ubuntu2wf1, which is a backport to precise of the current raring dhcp verion (4.2.4-5ubuntu2).
The only modification is changing the targeted release.
I was under the impression that ISC DHCP (now) supported prefix delegation.
# dhclient -d -v -6 -P --no-pid ppp0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Bound to *:546
Segmentation fault (core dumped)
Installing the isc-client-dbg is a bit more revealing:
# gdb --args dhclient -d -v -6 -P --no-pid ppp0
GNU gdb (Ubuntu/Linaro 7.4-2012.
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://
Reading symbols from /sbin/dhclient.
done.
(gdb) run
Starting program: /sbin/dhclient -d -v -6 -P --no-pid ppp0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Bound to *:546
Program received signal SIGSEGV, Segmentation fault.
0x00007f94311a2161 in vfprintf () from /lib/x86_
(gdb) bt
#0 0x00007f94311a2161 in vfprintf () from /lib/x86_
#1 0x00007f943125ed80 in __vsnprintf_chk () from /lib/x86_
#2 0x00007f94317979a8 in vsnprintf (__ap=0x7ffff26
__s=
#3 log_fatal (fmt=<optimised out>) at errwarn.c:64
#4 0x00007f9431773ffd in get_hw_addr (info=0x7f9432b
#5 0x00007f9431789318 in if_register6 (info=0x7f9432b
#6 0x00007f943176d72d in discover_interfaces (state=4) at discover.c:1264
#7 0x00007f9431750d95 in main (argc=<optimised out>, argv=<optimised out>) at dhclient.c:569
(gdb)
It is a shame that ISC DHCP still does not support DHCPv6 PD over PPP interfaces but it certainly should not segfault when attempting to report an error.
Status changed to 'Confirmed' because the bug affects multiple users.