Hi,

  I have created a multithreaded application where each thread creates a
session, creates a PDU and sends it using snmp_send. If I do
snmp_close(session) after snmp_send, after a while I am getting some sort
of double free corruption message. If I remove snmp_close(session) then
after a while I am unable to open any new transport client
using netsnmp_transport_open_client.

Valgrind throws following errors

==14764== Warning: invalid file descriptor 1031 in syscall socket()
==14764== Warning: invalid file descriptor 1031 in syscall socket()
==14764== Warning: invalid file descriptor 1031 in syscall open()

Any help or right resources will be appreciated.

Best Regards,
​Nishikant
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to