Bug 114645

Summary: [PATCH] ucd-snmp not 64-bit clean
Product: Red Hat Enterprise Linux 3 Reporter: Mark Langsdorf <mark.langsdorf>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-06 11:08:08 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:
Attachments:
Description Flags
patch to make ucd-snmp 64-bit clean
none
test case for UCD SNMP code
none
Patch to fix leaky file descriptors none

Description Mark Langsdorf 2004-01-30 17:17:37 UTC
Description of problem:
ucd-snmp uses a long where it should use u32 and inadvertently 
resizes data packets on AMD64 systems.

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

How reproducible:
solonow:/home/mlangsdo # rpm -q ucdsnmp
ucdsnmp-4.2.6-131
solonow:/home/mlangsdo # /etc/init.d/snmpd start
Starting snmpd                                                       
done
solonow:/home/mlangsdo # snmpget -m all localhost -c public -
d .1.3.6.1.2.1.4.20.1.1.127.0.0.1

Sending 48 bytes to 127.0.0.1:161
0000: 30 2E 02 01  00 04 06 70  75 62 6C 69  63 A0 21 02   
0......public !.
0016: 04 49 77 FC  18 02 01 00  02 01 00 30  13 30 11 
06    .Iwü.......0.0..
0032: 0D 2B 06 01  02 01 04 14  01 01 7F 00  00 01 05 
00    .+..............


Received 56 bytes from 127.0.0.1:161
0000: 30 36 02 01  00 04 06 70  75 62 6C 69  63 A2 29 02    
06.....public¢).
0016: 04 49 77 FC  18 02 01 00  02 01 00 30  1B 30 19 
06    .Iwü.......0.0..
0032: 0D 2B 06 01  02 01 04 14  01 01 7F 00  00 01 40 
08    .+............@.
0048: 7F 00 00 01  00 00 00 00                              ........

ip.ipAddrTable.ipAddrEntry.ipAdEntAddr.127.0.0.1 = IpAddress: 
127.0.0.1
solonow:/home/mlangsdo # 

Expected results:


Additional info:

Comment 1 Mark Langsdorf 2004-01-30 17:18:15 UTC
Created attachment 97369 [details]
patch to make ucd-snmp 64-bit clean

Comment 2 Phil Knirsch 2004-02-04 15:35:40 UTC
Patch looks good, including it in latest rawhide build.

Read ya, Phil

Comment 3 Mark Langsdorf 2004-03-17 20:05:50 UTC
Created attachment 98612 [details]
test case for UCD SNMP code

We found additional failures under further testing.  Please run this test case
for 24 hours without failure - it should flush out the bugs.

Compile with g++

Comment 4 Phil Knirsch 2004-04-15 12:21:50 UTC
Actually this is all about net-snmp, not ucd-snmp. :D

Changing the component to the proper one.

Read ya, Phil

Comment 5 Phil Knirsch 2004-07-07 15:57:47 UTC
Included patch in latest errata version for Red Hat Enterprise Linux 3
Quarterly Update 3.

Read ya, Phil

Comment 6 Mark Langsdorf 2004-07-07 16:15:28 UTC
Created attachment 101685 [details]
Patch to fix leaky file descriptors

Comment 7 Mark Langsdorf 2004-07-07 16:16:17 UTC
We found there were leaky file descriptors in all architectures.  
I've included the patch to fix the bug.  Sorry if the formatting got 
screwed by my idiot computer.

Comment 11 Jan Safranek 2010-05-06 11:08:08 UTC
According to changelog, this bug is fixed since net-snmp-5.0.9-2.30E.5 and Phil just forgot to close it -> closing.