Red Hat Bugzilla – Bug 111319
SNMP perl module segfaults when using asynch callbacks and GETBULK requests
Last modified: 2015-03-04 20:13:10 EST
Description of problem:
Attached is a fix for SNMP perl module included with net-snmp 5.1. It
segfaults when using asynchronous callbacks and GETBULK requests.
Created attachment 96271 [details]
Diff for SNMP.xs preventing segmentation faults while using callbacks
Looks cool, will include in net-snmp-5.1-3 and later.
Read ya, Phil
describes a more complete patch in the upstream code.
Do you (Kay) have a test case that demonstrates the problem
which your patch will fix ?
Your patch looks good. For some reason I have not hit problem in
snmp_getbulk() (the second part of your patch).
Maybe because the problem still gets fixed in __snmp_xs_cb() before
returning to perl? It would be interesting to know. :)
I don't have the snippet isolating the problem anymore, sorry.