Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 736149

Summary: dhclient coredumps when the system has interface with NULL ifa_addr
Product: Red Hat Enterprise Linux 6 Reporter: Konstantin Volkov <wolf>
Component: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-07 08:59:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Konstantin Volkov 2011-09-06 19:58:00 UTC
Description of problem:

dhclient coredumps when the system has interface with NULL ifa_addr

---
[root@localhost ~]# ifconfig venet0
venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          BROADCAST POINTOPOINT NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
[root@localhost client]# gdb --args ./dhclient eth0
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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 "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/rpmbuild/BUILD/dhcp-4.1.1-P1/client/dhclient...done.
(gdb) run
Starting program: /root/rpmbuild/BUILD/dhcp-4.1.1-P1/client/dhclient eth0
Detaching after fork from child process 32611.
-1207741920 -1207741892
-1207741764 0

Program received signal SIGSEGV, Segmentation fault.
0xb7fb1c0f in get_hw_addr (info=0xb800c608) at lpf.c:639
---

the similar BUG: https://bugzilla.redhat.com/show_bug.cgi?id=731999

after this patch:

---
[root@localhost dhcp-4.1.1-P1]# diff -u ./common/lpf.c.orig ./common/lpf.c
--- ./common/lpf.c.orig 2011-09-06 23:49:26.000000000 +0400
+++ ./common/lpf.c      2011-09-06 23:49:48.000000000 +0400
@@ -634,6 +634,9 @@
 
        for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
 
+               if (ifa->ifa_addr == NULL)
+                       continue;
+
                if (ifa->ifa_addr->sa_family != AF_PACKET)
                        continue;
 

---

All is OK

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

dhcp-4.1.1-19.P1.el6

How reproducible:

100%

Steps to Reproduce:
1. Run dhclient eth0 inside Virtuozzo or OpenVZ Container
2. Get the SegFault
  
Actual results:

SegFault

Expected results:

No SegFault, eth0 get the IP

Please fix.

Comment 2 Jiri Popelka 2011-09-07 08:59:35 UTC
Thank you for the report.
This is duplicate of bug #731990 which would be fixed in forthcoming RHEL-6.2.

*** This bug has been marked as a duplicate of bug 731990 ***