[Pkg-net-snmp-devel] Bug#497656: #497656 libsnmp-python: Lots of segfaults when using Python snmp module

Gabriele Messineo gabriele.messineo at winext.eu
Thu Sep 4 08:46:44 UTC 2008

I think you can fix this bug by applying this patch:

--- python/netsnmp/client_intf.c
+++ python/netsnmp/client_intf.c
<               snprintf(buf,"%ld", buf_len, *var->val.integer);
>               snprintf(buf, buf_len, "%ld", *var->val.integer);

The bug has been introduced in the SVN 16962 and it's applied in the patch:

It's a simple type that cause every walk on integer MIBs to cause a segfault 
from python.

I've verified it is present in the latest experimental package (5.4.1~dfsg-9) 
and in the SVN Trunk of net-snmp (actually 17206).


Gabriele Messineo

More information about the Pkg-net-snmp-devel mailing list