GETBULK causing Table Iterator to crash

This is a discussion on GETBULK causing Table Iterator to crash within the SNMP Coders forums, part of the Networking and Network Related category; Hi List, I just finished implementing a MIB by extending the agent using the table iterator handlers. GET, SET, GETNEXT ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-29-2005
Justin Ko
 
Posts: n/a
Default GETBULK causing Table Iterator to crash


Hi List,

I just finished implementing a MIB by extending the agent using the table
iterator handlers. GET, SET, GETNEXT work great, no memory leaks, etc. The
problem is that SNMP requests with multiple variable bindings causes the
table iterator to crash.

More specifically, the netsnmp_table_iterator_helper_handler() function in
table_iterator.c attempts to free the same chunk of memory twice during the
innermost loop (the for(request = requests) ...) when the SNMP request
carries more than one variable binding. This is down in the MODE_GETNEXT
case of the switch().

Is this a known issue? Is there a workaround? I checked the bug database
and there did not seem to be any entries concerning table iterators and
GETBULK requests. I also didn't find anything in the coder's mailing list
archive.

This is on NET-Snmp 5.1.1. I also tried code on 5.2.1.2 and it also failed
in the exact same manner, all on Windows XP Professional.

Thanks in advance.
-justin.



--
SynCom Network, Inc. (http://www.syncom.com.tw)
Tel: +886-3-553-0522
Fax: +886-3-553-0523



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0