RE: netsnmp crash in netsnmp_table_array_ext_data_helper_handler
"Gouri Singaraju" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <D08E523D6D8ADC4781765A448CEE22596134D6@nevmail03.pune.nevisnetworks.com> |
Hi,
The table_helper_handler is getting called twice and it reaches this
code
/*
* if the agent request info has a state reference, then this is a
* later pass of a set request and we can skip all the lookup stuff.
*
* xxx-rks: this might break for handlers which only handle one
varbind
* at a time... those handlers should not save data by their
handler_name
* in the netsnmp_agent_request_info.
*/
if (netsnmp_agent_get_list_data(reqinfo,
handler->next->handler_name)) {
if (MODE_IS_SET(reqinfo->mode)) {
return netsnmp_call_next_handler(handler, reginfo, reqinfo,
requests);
} else {
/** XXX-rks: memory leak. add cleanup handler? */
netsnmp_free_agent_data_sets(reqinfo);
}
And in the second pass it is getting cleaned because it is not a set
request ??
Can somebody explain "those handlers should not save data by their
handler_name" in the context of iftable.c handled via
table_array_external_data.c
Thanks in Advance
Regards
S. Gouri Sankar
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gouri
Singaraju
Sent: Wednesday, November 30, 2005 5:57 AM
To: [email protected]
Subject: RE: netsnmp crash in
netsnmp_table_array_ext_data_helper_handler
Hi,
First sorry for the copying to both the mail lists. I am running this on
linux. The if implementation is our own both interfaces and ifIndex. I
am using net-snmp-5.1 code and snmpd is linked to the correspondingly
generated netsnmp libraries.
But the compile machine shows the following even though I am not using
it
[buildcp npsnmp]net-snmp-config --configure-options
--host=i386-redhat-linux --build=i386-redhat-linux
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include/net-snmp --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --enable-static
--enable-shared --with-cflags=-O2 -march=i386 -mcpu=i686 -g
--with-sys-location=Unknown --with-logfile=/var/log/snmpd.log
--with-persistent-directory=/var/net-snmp --with-mib-modules=host agentx
smux --with-libwrap=/usr/lib --sysconfdir=/etc --enable-ipv6
--enable-ucd-snmp-compatibility --with-sys-contact=root@localhost
[build npsnmp] net-snmp-config --version
5.0.6
Regards
S. Gouri Sankar
-----Original Message-----
From: Robert Story [mailto:[email protected]]
Sent: Tuesday, November 29, 2005 11:42 PM
To: Gouri Singaraju
Cc: [email protected]
Subject: Re: netsnmp crash in
netsnmp_table_array_ext_data_helper_handler
First off, please don't cross post to both lists. Pick on or the other.
On Fri, 25 Nov 2005 15:03:34 +0530 Gouri wrote:
GS> I am getting a crash in
GS>
GS> While running snmpgetnext -v 2c -t 240 -n "" -c public 192.168.4.246
GS> ifIndex.256 ifNumber.0
What release are you using? What OS? Is this out if-mib implementation,
or
your own?
--
NOTE: messages sent directly to me, instead of the lists, will be
deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
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
bt1
(application/octet-stream, 3.6 KB) - not displayed