Agent Shutdown problem

sanjaykumar <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

I am running the netsnmp 5.4.2.1 as thread

1 :

I am facing the problem while my application reboot so snmp thread
should also

Most of shutdown problem is occurs in mib module

Basically when application reboot then it facing problem in "init_mib_modules()"

and it crash.

Backtrace show that most of crash come after "netsnmp_container_get_ct"

I run the valgrind and getting most of the same problem

Could anybody suggest what could be reason of this crash ???

One of Backtrace for the reference :

***********************************************************************

#0 0x0811f416 in netsnmp_container_get_ct (type=0x82b63e8
"udpEndpointTable") at container.c:189

#1 0x0811f489 in netsnmp_container_find_ct (type_list=0x81c57dc
"udpEndpointTable:table_container") at container.c:208

#2 0x0811f539 in netsnmp_container_find (type=0x81c57dc
"udpEndpointTable:table_container") at container.c:240

#3 0x0810c717 in _udpEndpointTable_container_init (if_ctx=0x81e6fc0)

at udp-mib/udpEndpointTable/udpEndpointTable_interface.c:1031

#4 0x0810b9a9 in _udpEndpointTable_initialize_interface
(reg_ptr=0x82b6460, flags=0)

at udp-mib/udpEndpointTable/udpEndpointTable_interface.c:191

#5 0x080ee798 in shutdown_table_udpEndpointTable () at
udp-mib/udpEndpointTable/udpEndpointTable.c:130

#6 0x080ee743 in shutdown_udpEndpointTable () at
udp-mib/udpEndpointTable/udpEndpointTable.c:76

#7 0x080df91f in init_mib_modules () at ./mib_module_inits.h:100

#8 0x080d5448 in snmpd (args=0x82b6498) at snmpd.c:1016

#9 0xb7d7f1b3 in start_thread () from /lib/libpthread.so.0

#10 0xb7e6103e in clone () from /lib/libc.so.6

************************************************************************

2 :

While application shutdown "
snmp_shutdown(app_name)" getting called

what about the " shutdown_master_agent() and
shutdown_agent()"

How the respective functionalities achieved by AGENT as in code it
maintained that

it cause the broken code

respective code for the reference :

*******************************

snmp_shutdown(app_name);

#ifdef SHUTDOWN_AGENT_CLEANLY /* broken code */

/* these attempt to free all known memory, but result in double
frees */

shutdown_master_agent();

shutdown_agent();

#endif

**********************************************************

Thanks and best regards,

Sanjay Kumar

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.