Bug 750272

Summary: getservent/endservent: Conditional jump or move depends on uninitialised value(s)
Product: Red Hat Enterprise Linux 6 Reporter: Alex Sersen <asersen>
Component: valgrindAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: azelinka, jpopelka, law, mfranc, mnewsome, ohudlick, psklenar
Target Milestone: rc   
Target Release: 6.3   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-25 06:08:02 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:

Comment 2 Jiri Popelka 2011-10-31 15:49:47 UTC
bz634539-netstat-c-has-a-memory-leak
is a regression test but I get the same results when running it with
net-tools-1.60-102.el6.s390x.rpm (shipped with RHEL-6.0) and
net-tools-1.60-105.el6.s390x.rpm (shipped with RHEL-6.1),
so it's not a regression in netstat (net-tools).

Either the test was always failing on s390x (and then it's the test what needs to be fixed)
or from the log it seems as a problem with glibc-2.12-1.46.el6.s390x

Steps to Reproduce:
1. valgrind -v --leak-check=full --show-reachable=yes netstat -c
2. wait a few seconds and press ctrl+C

Actual results:
==4350== ERROR SUMMARY: 5 errors from 3 contexts (suppressed: 6 from 6)
==4350== 
==4350== 2 errors in context 1 of 3:
==4350== Conditional jump or move depends on uninitialised value(s)
==4350==    at 0x4A940A9C78: tsearch (in /lib64/libc-2.12.so)
==4350==    by 0x4A940C4087: __nss_lookup_function (in /lib64/libc-2.12.so)
==4350==    by 0x4A940C442F: __nss_lookup (in /lib64/libc-2.12.so)
==4350==    by 0x4A940C5EC5: __nss_endent (in /lib64/libc-2.12.so)
==4350==    by 0x4A940CF7D1: endservent (in /lib64/libc-2.12.so)
==4350==    by 0x8000ED91: read_services (inet.c:403)
==4350==    by 0x8000EF0F: get_sname (inet.c:431)
==4350==    by 0x800057CD: tcp_do_one (netstat.c:1031)
==4350==    by 0x80005EE9: tcp_info (netstat.c:1093)
==4350==    by 0x8000B63B: main (netstat.c:2387)
==4350== 
==4350== 
==4350== 2 errors in context 2 of 3:
==4350== Conditional jump or move depends on uninitialised value(s)
==4350==    at 0x4A940A9C78: tsearch (in /lib64/libc-2.12.so)
==4350==    by 0x4A940C4087: __nss_lookup_function (in /lib64/libc-2.12.so)
==4350==    by 0x4A940C442F: __nss_lookup (in /lib64/libc-2.12.so)
==4350==    by 0x4A940C57C5: __nss_getent_r (in /lib64/libc-2.12.so)
==4350==    by 0x4A940CF6F7: getservent_r@@GLIBC_2.2 (in /lib64/libc-2.12.so)
==4350==    by 0x4A940C56AD: __nss_getent (in /lib64/libc-2.12.so)
==4350==    by 0x4A940CF5E7: getservent (in /lib64/libc-2.12.so)
==4350==    by 0x8000ED73: read_services (inet.c:386)
==4350==    by 0x8000EF0F: get_sname (inet.c:431)
==4350==    by 0x800057CD: tcp_do_one (netstat.c:1031)
==4350==    by 0x80005EE9: tcp_info (netstat.c:1093)
==4350==    by 0x8000B63B: main (netstat.c:2387)

Expected results:
ERROR SUMMARY: 1 errors from 1 contexts

Comment 7 RHEL Program Management 2012-07-10 06:48:57 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 8 RHEL Program Management 2012-07-11 01:54:21 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 9 Jeff Law 2012-07-25 06:08:02 UTC

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