I track "entry"'s address and it seems fine (entry=0x555826b818). Not
NULL at no stage.
On the other hand- when I remove the call for SNMP_FREE it does not
crash.

Naama

-----Original Message-----
From: dave.shi...@gmail.com [mailto:dave.shi...@gmail.com] On Behalf Of
Dave Shield
Sent: Monday, July 30, 2012 6:04 PM
To: Naama Bar Menachem
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: How to delete/add line from raw table?

On 30 July 2012 15:37, Naama Bar Menachem
<naama.barmenac...@novelsat.com> wrote:
> When set value to 6 (destroy) using snmpB browser, timeout error
received.

If the agent crashes before sending back a response, it's not really
very surprising that the browser request times out!


> The command "SNMP_FREE(entry);" fails and cause snmpd to crash.

The most likely cause would be if 'entry' is null when it's passed to
the free call.
   (although SNMP_FREE is meant to handle that)

Alternatively, this might happen if the 'entry' is not a valid pointer,
or has already been freed.

Try checking what value 'entry' has at this point, and what happened to
it previously.


Dave

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Reply via email to