To give an update, it is working fine now. I applied patch
callback-v2_5-1-2.pat. I also added this line,
netsnmp_callback_clear_client_arg(s, 0, 0);
to snmp_free_session() in snmp_api.c. This made it work
static void
snmp_free_session(netsnmp_session * s)
{
if (s) {
SNMP_FREE(s->peername);
SNMP_FREE(s->community);
SNMP_FREE(s->contextEngineID);
SNMP_FREE(s->contextName);
SNMP_FREE(s->securityEngineID);
SNMP_FREE(s->securityName);
SNMP_FREE(s->securityAuthProto);
SNMP_FREE(s->securityPrivProto);
/*
* clear session from any callbacks
*/
netsnmp_callback_clear_client_arg(s, 0, 0);
free((char *) s);
}
}
From: [email protected]
To: [email protected]; [email protected]
Subject: crash when shutting down snmp (snmp_shutdown)
Date: Wed, 18 Mar 2009 16:17:01 -0400
Hi there,
I'm using NET-SNMP version: 5.2.1.2. My agentx subagent keeps crashing when it
shuts down snmp. When "snmp_shutdown()" is called.
I traced the problem and found out there is a conflect between,
snmp_call_callbacks(SNMP_CALLBACK_LIBRARY, SNMP_CALLBACK_SHUTDOWN, NULL);
and
clear_callback()
where in the first the main session is being freed. It is being freed again in
clear_callback() when freeing the "scp->sc_client_arg" which points to the main
session.
I guess this might be fixed in later versions. Any idea what patch I need to
apply to get this fix?.
Thanks.
Tell the whole story with photos, right from your Messenger window. Learn how!
_________________________________________________________________
Chat with the whole group, and bring everyone together.
http://go.microsoft.com/?linkid=9650735------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders