Calling SNMP.pm from snmptrapd using embedded perl
"Peter Hicks" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <38370.193.203.86.163.1143719132.squirrel@tufnell.london.poggs.net> |
All,
I have the need to make SNMP requests from within a traphandler called
from snmptrapd and using embedded perl.
Every time, without fail, I get a
** glibc detected *** double free or corruption (!prev): 0x0883e6f8 ***
error in the following code:
my $snmp_handle = new SNMP::Session(
DestHost =>
$device_info->{'ip_address'},
Community =>
$device_info->{'passwords'}->{$community_string_type'},
Version =>
$device_info->{'snmp_version'}
);
Everything else works fine.
Am I doing something wrong, or is SNMP.pm not suitable for calling under
embedded perl?
Peter.
--
Peter Hicks | e: [email protected] | g: 0xE7C839F4 | w: www.poggs.com
A: Because it destroys the flow of the conversation
Q: Why is top-posting bad?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users