Dear net-snmp-coders,

I found a problem in RowStatus type template generated by mib2c.mfd.conf or
mib2c. container.conf. The current template will cause segmentation fault
when getting a not yet created entry after _mfd_xxx_get_value and
_mfd_xxx_get_column.

It seems function _mfd_dot1qVlanStaticTable_object_lookup will create a new
entry no matter the incoming request is get or set. It works fine to create
a new entry when set RowStatus to createAndGo, however, it should return
SNMP_NOSUCHINSTANCE when attempting to get an nonexistent instance.

If it's possible to differentiate request mode get from set inside
_mfd_dot1qVlanStaticTable_object_lookup,  there is a way to do that. Any
advice?

Thanks for your support.
Emi Yanagi

Debug log:
   internal:dot1qVlanStaticTable:_mfd_dot1qVlanStaticTable_object_lookup:
   called
   verbose:dot1qVlanStaticTable:dot1qVlanStaticTable_index_from_oid: called
   internal:dot1qVlanStaticTable:dot1qVlanStaticTable_allocate_rowreq_ctx:
   called
   internal:dot1qVlanStaticTable:_dot1qVlanStaticTable_check_indexes:
   called
   verbose:dot1qVlanStaticTable:dot1qVlanStaticTable_dot1qVlanIndex_check_index:
 called
   verbose:dot1qVlanStaticTable:dot1qVlanStaticTable_validate_index: called
   modify:dot1qVlanStaticTable:rsys_netsnmp_dot1qVlanStaticTable_validate_index:
 valid vlan id = 2.
   internal:dot1qVlanStaticTable:_mfd_dot1qVlanStaticTable_get_values:
   called
   netsnmp_assert ((void *)0) != rowreq_ctx failed
   dot1qVlanStaticTable_interface.c:752
   _mfd_dot1qVlanStaticTable_get_values()
   internal:dot1qVlanStaticTable:_mfd_dot1qVlanStaticTable_get_column:
   called
   netsnmp_assert ((void *)0) != rowreq_ctx failed
   dot1qVlanStaticTable_interface.c:672 _dot1qVlanStaticTable_get_column()


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to