Hi All, I am using the *snmp_synch_response()* api to sync with response whenever I create a SNMP_INFORM pdu . Whenever I call the api snmp_synch response ,I get an address Sanitizer issue. I am attaching the code snippet & stack trace of the address Sanitizer. Can someone help me on this 😞?
-Himanshu *netsnmp_session session , *ss = NULL;netsnmp_pdu * pdu = NULL, *response = NULL;* *snmp_sess_init(&session);* *pdu = snmp_pdu_create(SNMP_MSG_INFORM);* *// fill up all session & pdu structure as required* session.timeout = 100; session.retries = 5; *snmp_synch_response(ss, pdu, &response);* ///Address Sanitizer error prints ==1513==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0xb22fbac0 in thread T20 (Interpreter9104) #0 0xb72e8eac in free (/usr/lib/libasan.so.4+0xdfeac) #1 0x9c94b0db in snmp_free_pdu (/usr/lib/libnetsnmp.so.35+0x4e7030db) #2 0x9c94ca1e in snmp_sess_timeout (/usr/lib/libnetsnmp.so.35+0x4e704a1e) #3 0x9c94cad8 in snmp_timeout (/usr/lib/libnetsnmp.so.35+0x4e704ad8) #4 0x9c940975 in snmp_synch_response_cb (/usr/lib/libnetsnmp.so.35+0x4e6f8975) #5 0x9c940b06 in snmp_synch_response (/usr/lib/libnetsnmp.so.35+0x4e6f8b06) SUMMARY: AddressSanitizer: bad-free (/usr/lib/libasan.so.4+0xdfeac) in free ==1513==ABORTING
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users