[SRU] libsnmp-python segmentation fault

Bug #347361 reported by steve.horsley on 2009-03-23
Affects Status Importance Assigned to Milestone
net-snmp (Debian)
Fix Released
net-snmp (Ubuntu)
Chuck Short

Bug Description

Binary package hint: libsnmp-python

Using the snmp python bindings, I can walk the system mib (of the localhost Ubuntu machine) but I get a segmentation fault when I try to walk the hrStorage mib.
Walking the mib using snmpwalk from the command line fetches the table without any problem, so I think the problem is in the python bindings and not the net-anmp package.

Ubuntu version 8.10 (Intrepid):
package version: libsnmp-python 5.4.1~dfsg-7.1ubuntu6.1

Attached is a small python program that demonstrates the problem.
You have to install snmpd and configure it by mapping community public to readonly rather than paranoid first.

steve.horsley (steve-horsley) wrote :
LarsIvarIgesund (larsivar) wrote :

I believe that this problem has been fixed in a corresponding debian package (via a small and specific patch). It had been very nice if this could have been applied to ubuntu too - and also in Hardy (LTS) where I am encountering this issue. It makes the python bindings unusable.

Chuck Short (zulcss) wrote :

Can you attach the output of the script of the expected results and the results that you get?


Changed in net-snmp (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Chuck Short (zulcss) wrote :

Thanks for reporting this bug in Intrepid. However this bug has been fixed in the latest development release of Ubuntu. If you wish to have this bug fixed in the Intrepid please see the following: https://wiki.ubuntu.com/StableReleaseUpdates.

Changed in net-snmp (Ubuntu):
status: Incomplete → Fix Released
Chuck Short (zulcss) on 2009-09-16
summary: - libsnmp-python segmentation fault
+ [SRU] libsnmp-python segmentation fault
Changed in net-snmp (Ubuntu Hardy):
assignee: nobody → Chuck Short (zulcss)
Chuck Short (zulcss) wrote :

Statement of Impact

The python bindings for net-snmp shipped with a bug that can cause a segmentation fault when a user tries to run a python script.

How this bug has been fixed

net-snmp has a patch in their SVN tree which addresses this issue (http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=rev&revision=17207) This bug has been fixed in intrepid and above by the attached patch

How to reproduce:

1. Install snmpd, snmp, and libsnmp-python.
2. Configure snmpd
3. Run the script that was attached above

Impact: There should be no regression potential with this patch.

If you have any questions please let me know.


Martin Pitt (pitti) wrote :

Accepted net-snmp into hardy-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in net-snmp (Ubuntu Hardy):
status: New → Fix Committed
tags: added: verification-needed
Martin Pitt (pitti) wrote :

Anyone who could test the packages in hardy-proposed?

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package net-snmp - 5.4.1~dfsg-4ubuntu4.3

net-snmp (5.4.1~dfsg-4ubuntu4.3) hardy-proposed; urgency=low

  * debian/patches/101-fix-ipalias.patch: Fix flooding syslog -
    Syslog fills with hundreds of these errors if you have a network
    interface, e.g. eth2, with no IP address, but you have an alias,
    e.g. eth2:1, that does have an IP address (and netmask).
    (LP: #270713)
  * debian/patches/103-fix-ubuntu-lmsensors.patch: Point to the right
    place for /etc/sensors3.conf. (LP: #192745)
  * debian/patches/99-fix-perl-counter-in-subagent.patch: Fix for Counter64 in
    perl subagent. (LP: #406171)
  * debian/patches/53_fix_python_regression.patch: Fix python segmentation fault.
    (LP: #347361)
  * debian/patches/54_fix_registration_error.patch: Surpresses annoying
    registrations in startup. (LP: #200614)

 -- Chuck Short <email address hidden> Tue, 15 Sep 2009 14:13:51 -0400

Changed in net-snmp (Ubuntu Hardy):
status: Fix Committed → Fix Released
Changed in net-snmp (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.