All,

I'm having issues within my environment in some areas where net-snmp 5.4.1 
isn't starting up correctly.  Once in awhile it will start up correctly but 
more often then not it dies within a minute of starting it up with a seg fault.

Seeing the following in the snmpd.log:


error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
couldn't map value 13 for ipAddressAddrType
NET-SNMP version 5.4.1
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
error on subcontainer '' insert (-1)
error on subcontainer '' insert (-1)
couldn't map value 1 for ipAddressAddrType
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)


I have attached the ifconfig output as well as the log file with the debug 
turned on.
Any ideas?

The last few lines of the strace are included:

20500 ioctl(9, SIOCGIFCONF, {256, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, 
{"eth0", {AF_INET, inet_addr("x")}}, {"eth4", {AF_INET, inet_addr("x")}}, 
{"bond0", {AF_INET, inet_addr("x")}}, {"bond0:0", {AF_INET, inet_addr("y")}}, 
{"bond0:1", {AF_INET, inet_addr("y")}}, {"eth8", {AF_INET, inet_addr("y")}}, 
{"eth8", {AF_INET, inet_addr("y")}}}}) = 0
20500 ioctl(9, SIOCGIFCONF, {288, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, 
{"eth0", {AF_INET, inet_addr("x")}}, {"eth4", {AF_INET, inet_addr("y")}}, 
{"bond0", {AF_INET, inet_addr("z")}}, {"bond0:0", {AF_INET, inet_addr("x")}}, 
{"bond0:1", {AF_INET, inet_addr("x")}}, {"eth8", {AF_INET, inet_addr("y")}}, 
{"eth8", {AF_INET, inet_addr("z")}}, {"eth8:0", {AF_INET, inet_addr("y")}}}}) = 0
20500 ioctl(9, SIOCGIFCONF, {288, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, 
{"eth0", {AF_INET, inet_addr("x")}}, {"eth4", {AF_INET, inet_addr("y")}}, 
{"bond0", {AF_INET, inet_addr("a")}}, {"bond0:0", {AF_INET, inet_addr("z")}}, 
{"bond0:1", {AF_INET, inet_addr("a")}}, {"eth8", {AF_INET, inet_addr("x")}}, 
{"eth8", {AF_INET, inet_addr("x")}}, {"eth8:0", {AF_INET, inet_addr("a")}}}}) = 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="lo", ifr_index=1}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="lo", ifr_netmask={AF_INET, 
inet_addr("255.0.0.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="lo", 
ifr_flags=IFF_UP|IFF_LOOPBACK|IFF_RUNNING}) = 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="eth0", ifr_index=2}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="eth0", ifr_netmask={AF_INET, 
inet_addr("255.255.254.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="eth0", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_NOARP|IFF_SLAVE|IFF_MULTICAST}) 
= 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="eth4", ifr_index=6}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="eth4", ifr_netmask={AF_INET, 
inet_addr("255.255.254.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="eth4", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_SLAVE|IFF_MULTICAST}) = 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="bond0", ifr_index=10}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="bond0", ifr_netmask={AF_INET, 
inet_addr("255.255.254.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="bond0", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MASTER|IFF_MULTICAST}) = 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="bond0", ifr_index=10}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="bond0", ifr_netmask={AF_INET, 
inet_addr("255.255.254.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="bond0", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MASTER|IFF_MULTICAST}) = 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="bond0", ifr_index=10}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="bond0", ifr_netmask={AF_INET, 
inet_addr("255.255.254.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="bond0", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MASTER|IFF_MULTICAST}) = 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="eth8", ifr_index=11}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="eth8", ifr_netmask={AF_INET, 
inet_addr("255.255.255.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="eth8", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="eth8", ifr_index=11}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="eth8", ifr_netmask={AF_INET, 
inet_addr("255.255.255.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="eth8", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0
20500 write(2, "error on subcontainer \'ia_addr\' "..., 44) = 44
20500 write(3, "error on subcontainer \'ia_addr\' "..., 44) = 44
20500 ioctl(9, SIOCGIFINDEX, {ifr_name="eth8", ifr_index=11}) = 0
20500 ioctl(9, SIOCGIFNETMASK, {ifr_name="eth8", ifr_netmask={AF_INET, 
inet_addr("255.255.255.0")}}) = 0
20500 ioctl(9, SIOCGIFFLAGS, {ifr_name="eth8", 
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0
20500 write(2, "error on subcontainer \'ia_index\'"..., 45) = 45
20500 write(3, "error on subcontainer \'ia_index\'"..., 45) = 45
20500 close(9)                          = 0
20500 gettimeofday({1193745682, 575339}, NULL) = 0
20500 gettimeofday({1193745682, 575415}, NULL) = 0
20500 write(2, "couldn\'t map value 13 for ipAddr"..., 44) = 44
20500 write(3, "couldn\'t map value 13 for ipAddr"..., 44) = 44
20500 gettimeofday({1193745682, 575680}, NULL) = 0
20500 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
20633 <... read resumed> "", 4096)      = 0
20633 close(0)                          = 0
20633 munmap(0xf61fe000, 4096)          = 0
20633 unlink("/tmp/p2xtmp-20633/Util.so") = 0
20633 rmdir("/tmp/p2xtmp-20633")        = 0
20633 munmap(0xf61fd000, 4096)          = 0
20633 exit_group(0)                     = ?

Jayson



_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
bond0     Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:f4  
          inet addr:1.2.3.4  Bcast:1.2.3.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:132927365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78590440 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2024327592 (1930.5 Mb)  TX bytes:3456778869 (3296.6 Mb)

bond0:0   Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:f4  
          inet addr:1.2.3.5  Bcast:1.2.3.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

bond0:1   Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:f4  
          inet addr:1.2.3.5  Bcast:1.2.3.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

eth0      Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:f4  
          inet addr:1.2.3.4  Bcast:1.2.3.255  Mask:255.255.254.0
          UP BROADCAST RUNNING NOARP SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:41027665 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:16056207 (15.3 Mb)  TX bytes:1621890 (1.5 Mb)
          Base address:0x3000 Memory:fe100000-fe120000 

eth1      Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:E5  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22155427 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5103334 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1852547769 (1766.7 Mb)  TX bytes:432749575 (412.7 Mb)
          Base address:0x3040 Memory:fe120000-fe140000 

eth2      Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:E6  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x3080 Memory:fe140000-fe160000 

eth3      Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:E7  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x30c0 Memory:fe160000-fe180000 

eth4      Link encap:Ethernet  HWaddr 00:0E:0C:7E:22:f4  
          inet addr:1.2.3.4  Bcast:1.2.3.255  Mask:255.255.254.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:91899700 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78565120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:2008271385 (1915.2 Mb)  TX bytes:3455156979 (3295.0 Mb)
          Base address:0x4000 Memory:fe200000-fe220000 

eth5      Link encap:Ethernet  HWaddr 00:0E:0C:7E:26:D1  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22132193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5103852 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1848283681 (1762.6 Mb)  TX bytes:432867883 (412.8 Mb)
          Base address:0x4040 Memory:fe220000-fe240000 

eth6      Link encap:Ethernet  HWaddr 00:0E:0C:7E:26:D2  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x4080 Memory:fe240000-fe260000 

eth7      Link encap:Ethernet  HWaddr 00:0E:0C:7E:26:D3  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x40c0 Memory:fe260000-fe280000 

eth8      Link encap:Ethernet  HWaddr 00:09:3D:11:CE:76  
          inet addr:1.2.3.7  Bcast:1.2.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:98404034 errors:0 dropped:0 overruns:0 frame:0
          TX packets:193524723 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2659796308 (2536.5 Mb)  TX bytes:577478317 (550.7 Mb)
          Interrupt:25 

eth8:0    Link encap:Ethernet  HWaddr 00:09:3D:11:CE:76  
          inet addr:1.2.3.6  Bcast:1.2.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:25 

eth9      Link encap:Ethernet  HWaddr 00:09:3D:11:CE:77  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:26 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:23903345 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23903345 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1173891171 (1119.5 Mb)  TX bytes:1173891171 (1119.5 Mb)
o log handling enabled - turning on stderr logging
registered debug token ipAddressTable, 1
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
ipAddressTable:access: creating new entry
ipAddressTable:access: creating new entry
ipAddressTable:access: creating new entry
couldn't map value 13 for ipAddressAddrType
ipAddressTable:access: creating new entry
ipAddressTable:access: creating new entry
ipAddressTable:access: creating new entry
ipAddressTable:access: creating new entry
ipAddressTable:access: creating new entry
ipAddressTable:init_ipAddressTable: Registering ipAddressTable as a 
mibs-for-dummies table.
/etc/snmp/snmpd.conf: line 28: Error: WARNING: This output format is not valid, 
and is only retained for backward compatibility - Please consider using the 
'extend' directive instead
Turning on AgentX master support.
/opt/net-snmp//share/snmp/snmpd.conf: line 28: Error: WARNING: This output 
format is not valid, and is only retained for backward compatibility - Please 
consider using the 'extend' directive instead
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
netsnmp_assert !"registration != duplicate" failed agent_registry.c:536 
netsnmp_subtree_load()
Turning on AgentX master support.
duplicate table data attempted to be entered. row exists
duplicate table data attempted to be entered. row exists
net-snmp: 2 error(s) in config file(s)
[init_smux] bind failed: Cannot assign requested address
NET-SNMP version 5.4.1
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
ipAddressTable:access: removing missing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
error on subcontainer remove (-1)
ipAddressTable:access: creating new entry
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
netsnmp_assert (((void *)0) != lhs) && (((void *)0) != rhs) failed 
ip-mib/data_access/ipaddress_ioctl.c:103 netsnmp_ioctl_ipaddress_entry_copy()
arch ipaddress copy failed
ipAddressTable:access: removing missing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
ipAddressTable:access: updating existing entry
error on subcontainer remove (-1)
ipAddressTable:access: creating new entry
error on subcontainer '' insert (-1)
ipAddressTable:access: container insert failed for new entry
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
ipAddressTable:access: updating existing entry
Segmentation fault
-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to