I am trying to get a subagent to work after moving from net-snmp 5.8 to 5.9, but it keeps segfaulting for me. I have tracked down that it is failing when trying to sort the table due to the structure not being what it should be. It is using table_container to store the tables that are causing issues. If I switch them to linked_list, they work fine, and no more bad pointer accesses. The bad pointer accesses are showing as trying to compare oids where the length is in fact one of the pointers rather than the actual length of the oid, so it makes sense to be crashing when that happens. The code has not really changed in years and has been working with many versions of net-snmp so far, but 5.9 for reasons I have failed to figure out is different in some way. Nothing in the changelogs or diff'ing the header files have pointed me in the right direction. I don't think switching to linked_list is the right thing to do since that might make it quite a bit slower.
Does anyone have any idea where I should have a look to try and narrow down where the data structure is ending up wrong when using table_container (aka binary_array)? Thanks. -- Len
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders