perl_bulk_gets patch breaks some scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Net-SNMP |
New
|
Unknown
|
|||
net-snmp (Debian) |
Fix Released
|
Unknown
|
|||
net-snmp (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I upgraded from Ubuntu 16.04 to 18.04, and suddenly one of my perl snmp scripts (https:/
When switching back to SNMP v1 (which uses getnext instead of getbulk), it gives the following errors:
Use of uninitialized value $stopcond in quotemeta at /usr/lib/
Use of uninitialized value $stopcond in quotemeta at /usr/lib/
Use of uninitialized value $stopcond in quotemeta at /usr/lib/
Use of uninitialized value $stopcond in quotemeta at /usr/lib/
Use of uninitialized value $stopcond in quotemeta at /usr/lib/
After digging in the changes between net-snmp in ubuntu 16.04 and 18.04, I found out the following patch is the cause of this:
* fix_perl_
in the Perl module. (Patch 1278 in upstream patch tracker.)
When I reverted this, everything started to work fine again :)
I tried fixing the patch, and the following makes everything start working again, but still some undef warnings:
--- SNMP.pm.bak 2018-10-15 16:16:15.000000000 +0200
+++ SNMP.pm 2018-12-03 15:26:22.419130670 +0100
@@ -907,7 +907,7 @@
my @newstopconds = ();
my @newvarbinds = ();
for (my $i = 0; $i < $num_stopconds; ++$i) {
- unless ($found_eof[$i]) {
+ unless ($found_eof[$i] || !defined(
push @newstopconds, $state-
push @newvarbinds, $state-
}
So it seems like somebody with some more knowledge will need to have a look at this.
Thanks
Jean-Louis
Changed in netsnmp: | |
status: | Unknown → New |
Changed in net-snmp (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in net-snmp (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in netsnmp: | |
status: | New → Fix Released |
Changed in netsnmp: | |
importance: | Unknown → Undecided |
status: | Fix Released → New |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in net-snmp (Debian): | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in net-snmp (Debian): | |
status: | Unknown → Fix Released |
Changed in netsnmp: | |
status: | Unknown → New |
Link to mentioned patch: https:/ /sourceforge. net/p/net- snmp/patches/ 1278/