Issue in starting the snmpd daemon for net-snmp 5.4.
"Rajendra, Singh" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
> Hi all, > I have compiled the net-snmp 5.4.1 without perl & embedded perl support. > But when I try to run it on my target > Machine the snmpd service is not starting. I tried starting the snmpd > service with the debug flags enabled but that > Also invain. I am attaching the outputs I collected from the terminal. > Also FYI, net-snmp5.3.0.1 runs fine on this machine. > Apprectaing your help in this regard. > > OS information : > Lnux version 2.6.9-34.ELsmp ([email protected]) (gcc > version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Feb 24 16:54:53 EST > 2006 > > Output with -f-Le flags > ./snmpd -f -Le > netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 > netsnmp_subtree_load() > netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 > netsnmp_subtree_load() > netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 > netsnmp_subtree_load() > error on subcontainer 'ia_addr' insert (-1) > couldn't map value 0 for ipAddressAddrType > NET-SNMP version 5.4.1 > error on subcontainer 'ia_addr' insert (-1) > error on subcontainer '' insert (-1) > Segmentation fault (core dumped) > > > > GDB output > > gdb snmpd > GNU gdb Red Hat Linux (6.3.0.0-1.96rh) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-redhat-linux-gnu"...Using host > libthread_db library "/lib/tls/i686/libthread_db.so.1". > > (gdb) run -f -Le > Starting program: /usr/sbin/snmpd -f -Le > netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 > netsnmp_subtree_load() > netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 > netsnmp_subtree_load() > netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 > netsnmp_subtree_load() > error on subcontainer 'ia_addr' insert (-1) > couldn't map value 0 for ipAddressAddrType > NET-SNMP version 5.4.1 > error on subcontainer 'ia_addr' insert (-1) > error on subcontainer '' insert (-1) > > Program received signal SIGSEGV, Segmentation fault. > netsnmp_remove_list_node (realhead=0x940abb0, name=0x751ba0 > "ioctl_extras") > at data_list.c:205 > 205 if (head->name && strcmp(head->name, name) == 0) { > (gdb) bt > > error on subcontainer 'ia_addr' insert (-1) > couldn't map value 0 for ipAddressAddrType > NET-SNMP version 5.4.1 > error on subcontainer 'ia_addr' insert (-1) > error on subcontainer '' insert (-1) > > Program received signal SIGSEGV, Segmentation fault. > netsnmp_remove_list_node (realhead=0x940abb0, name=0x751ba0 > "ioctl_extras") > at data_list.c:205 > 205 if (head->name && strcmp(head->name, name) == 0) { > (gdb) bt > #0 netsnmp_remove_list_node (realhead=0x940abb0, name=0x751ba0 > "ioctl_extras") > at data_list.c:205 > #1 0x00726605 in netsnmp_ioctl_ipaddress_entry_cleanup (entry=0x940ab90) > at ip-mib/data_access/ipaddress_ioctl.c:86 > #2 0x00723fd5 in netsnmp_arch_ipaddress_entry_cleanup (entry=0x940abb0) > at ip-mib/data_access/ipaddress_linux.c:61 > #3 0x00723956 in netsnmp_access_ipaddress_entry_free (entry=0x940ab90) > at ip-mib/data_access/ipaddress_common.c:189 > #4 0x006d8aae in ipAddressTable_release_data (data=0x940abb0) > at ip-mib/ipAddressTable/ipAddressTable.c:287 > #5 0x006d8c17 in ipAddressTable_rowreq_ctx_cleanup (rowreq_ctx=0x941a210) > at ip-mib/ipAddressTable/ipAddressTable.c:160 > #6 0x007047f7 in ipAddressTable_release_rowreq_ctx (rowreq_ctx=0x941a210) > at ip-mib/ipAddressTable/ipAddressTable_interface.c:569 > #7 0x00708d3a in _add_new_entry (ipaddress_entry=0x940ab90, > container=0x93b47c8) > at ip-mib/ipAddressTable/ipAddressTable_data_access.c:275 > #8 0x004c4f52 in _ba_for_each (container=0x93cfb98, > f=0x708b6a <_add_new_entry>, context=0x93b47c8) > at container_binary_array.c:342 > #9 0x00708efb in ipAddressTable_container_load (container=0x93b47c8) > at ip-mib/ipAddressTable/ipAddressTable_data_access.c:355 > #10 0x00707d2f in _cache_load (cache=0x93b3f88, vmagic=0x93b47c8) > ---Type <return> to continue, or q <return> to quit--- > at ip-mib/ipAddressTable/ipAddressTable_interface.c:1912 > #11 0x0023cd4b in _cache_load (cache=0x93b3f88) at cache_handler.c:537 > #12 0x004ab7bd in run_alarms () at snmp_alarm.c:252 > #13 0x0804bd13 in main (argc=3, argv=0xbffeade4) at snmpd.c:1210 > #14 0x002efdce in __libc_start_main () from /lib/tls/i686/libc.so.6 > #15 0x08049d51 in _start () > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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