Bug 431842 - dhclient.c(2794): null pointer
dhclient.c(2794): null pointer
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: dhcp (Show other bugs)
rawhide
All Linux
low Severity high
: ---
: ---
Assigned To: David Cantrell
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-07 04:56 EST by Edouard Bourguignon
Modified: 2008-02-08 05:03 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-02-07 14:36:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Edouard Bourguignon 2008-02-07 04:56:02 EST
Description of problem:

Can't get a dynamic ip address since dhclient-4.0.0.7 because glibc detects an
invalid pointer

*** glibc detected *** dhclient: free(): invalid pointer: 0x080bca54 ***

If I remove /var/lib/dhclient/* and then run dhclient -d eth0 I get this:

[root@Oberon ~]# dhclient -d eth0
Internet Systems Consortium DHCP Client 4.0.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

*** glibc detected *** dhclient: double free or corruption (!prev): 0x097c9600 ***
======= Backtrace: =========
/lib/libc.so.6[0x1a0e94]
/lib/libc.so.6(cfree+0x96)[0x1a2ef6]
/lib/libc.so.6(fclose+0x144)[0x190ad4]
dhclient[0x8051680]
dhclient[0x8057f3b]
/lib/libc.so.6(__libc_start_main+0xe6)[0x1484a6]
dhclient[0x804da61]
======= Memory map: ========
00110000-0012f000 r-xp 00000000 08:02 458757     /lib/ld-2.7.90.so
0012f000-00130000 r-xp 0001e000 08:02 458757     /lib/ld-2.7.90.so
00130000-00131000 rwxp 0001f000 08:02 458757     /lib/ld-2.7.90.so
00131000-00132000 r-xp 00131000 00:00 0          [vdso]
00132000-0029b000 r-xp 00000000 08:02 458764     /lib/libc-2.7.90.so
0029b000-0029d000 r-xp 00169000 08:02 458764     /lib/libc-2.7.90.so
0029d000-0029e000 rwxp 0016b000 08:02 458764     /lib/libc-2.7.90.so
0029e000-002a1000 rwxp 0029e000 00:00 0 
002a1000-002ac000 r-xp 00000000 08:02 458780     /lib/libnss_files-2.7.90.so
002ac000-002ad000 r-xp 0000a000 08:02 458780     /lib/libnss_files-2.7.90.so
002ad000-002ae000 rwxp 0000b000 08:02 458780     /lib/libnss_files-2.7.90.so
002ae000-002bb000 r-xp 00000000 08:02 458755     /lib/libgcc_s-4.3.0-20080130.so.1
002bb000-002bc000 rwxp 0000c000 08:02 458755     /lib/libgcc_s-4.3.0-20080130.so.1
08048000-080bc000 r-xp 00000000 08:02 835779     /sbin/dhclient
080bc000-080be000 rw-p 00074000 08:02 835779     /sbin/dhclient
080be000-080c8000 rw-p 080be000 00:00 0 
097a1000-097e8000 rw-p 097a1000 00:00 0 
b7e00000-b7e21000 rw-p b7e00000 00:00 0 
b7e21000-b7f00000 ---p b7e21000 00:00 0 
b7fb1000-b7fb3000 rw-p b7fb1000 00:00 0 
bf9b0000-bf9c5000 rw-p bffea000 00:00 0          [stack]
Listening on LPF/eth0/00:14:22:c4:06:94
Sending on   LPF/eth0/00:14:22:c4:06:94
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 10.156.255.245
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.156.255.245
dhclient.c(2794): null pointer
DHCPDECLINE on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 10.156.255.245
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.156.255.245
dhclient.c(2794): null pointer
DHCPDECLINE on eth0 to 255.255.255.255 port 67



in an infinite loop...


Version-Release number of selected component (if applicable):

dhclient-4.0.0-7.fc9.i386
libdhcp4client-4.0.0-7.fc9.i386
libdhcp-1.99.7-1.fc9.i386

How reproducible:

static

Steps to Reproduce:
1. ifdown eth0
2. dhclient -d eth0
  
Actual results:

dhclient can't get an ip addr

Expected results:

dhclient should get an dynamic ip addr. No invalid pointer.

Additional info:

Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI
Express (rev 01)
using tg3 kernel module on kernel-2.6.24-17.fc9
Comment 1 David Cantrell 2008-02-07 14:36:19 EST
Fixed in dhcp-4.0.0-8.fc9 and later.
Comment 2 Edouard Bourguignon 2008-02-08 05:03:44 EST
thanks, works fine with dhclient-4.0.0-9.fc9

Note You need to log in before you can comment on or make changes to this bug.