Hi everyone,

After upgrading netsnmp package from 5.4 to 5.4.1 snmpd daemon on my linux ruter/firewall started to die in less than 30sec after startup (with SIGSEGV). I did some investigation and found that trigger was the same IP address on 2 interfaces - ethX and ipsecY (ipsec device on linux 2.4.x + XxxS/WAN (Openswan in my case) inherits address from underlaying physical device). When I stopped openswan snmpd stays alive, starting openswan caused snmpd SEGV. The problem is not related to openswan - the same effect can be achieved by configuring dummy interface with ip/netmask same as on the another existing network device.

Earlier versions (<=5.4) complained about duplicated table entries, but worked...

Below there is stack backtrace, I can also send -Dxxx output.

Program received signal SIGSEGV, Segmentation fault.
0x401dbb04 in snmp_oid_compare (in_name1=0x20677541, len1=1043804732,
   in_name2=0x81487d0, len2=1) at snmp_api.c:6332
6332            if (*(name1) != *(name2)) {
(gdb) where
#0  0x401dbb04 in snmp_oid_compare (in_name1=0x20677541, len1=1043804732,
   in_name2=0x81487d0, len2=1) at snmp_api.c:6332
#1 0x40214cc8 in netsnmp_compare_netsnmp_index (lhs=0x81488a8, rhs=0x20677541)
   at container.c:430
#2  0x40215a64 in binary_search (val=0x8121460, c=0x8147ad0, exact=0)
   at container_binary_array.c:139
#3  0xffffffff in ?? ()
#4  0x00000007 in ?? ()
#5  0x00000007 in ?? ()
#6  0x4022a2f8 in __JCR_LIST__ ()
  from /usr/src/trustix/build/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so.15
#7  0x08121460 in ?? ()
#8  0x08147ad0 in ?? ()
#9  0x00000000 in ?? ()
#10 0x402154be in netsnmp_binary_array_remove (c=0xffffffff, key=0x81479d8,
   save=0xffffffff) at container_binary_array.c:307
#11 0x40215d31 in _ba_remove (container=0x80cbe38, data=0x40215d16)
   at container_binary_array.c:531
#12 0x4011c337 in _check_entry_for_updates (rowreq_ctx=0xe, magic=0x80ad1f8)
   at container.h:388
#13 0x402162af in netsnmp_binary_array_for_each (c=0xe, fe=0x81479d8,
   context=0xbffff740, sort=1075928489) at container_binary_array.c:342
#14 0x4016ffb4 in __JCR_LIST__ ()
from /usr/src/trustix/build/net-snmp-5.4.1/agent/.libs/libnetsnmpmibs.so.15
#15 0x080c8b28 in ?? ()
#16 0x00000001 in ?? ()
#17 0x4016ffb4 in __JCR_LIST__ ()
from /usr/src/trustix/build/net-snmp-5.4.1/agent/.libs/libnetsnmpmibs.so.15
#18 0x080c8b28 in ?? ()
#19 0x081479d8 in ?? ()
#20 0x08147ad0 in ?? ()
#21 0x40215da9 in _ba_for_each (container=0x80c8b28, f=0x80c99a8,
   context=0x80c8ae8) at container_binary_array.c:551
---Type <return> to continue, or q <return> to quit---
#22 0x4011bb87 in ipAddressTable_container_load (container=0x80c8b28)
   at ip-mib/ipAddressTable/ipAddressTable_data_access.c:349
#23 0x4011b60c in _cache_load (cache=0x80c8ae8, vmagic=0x80c99a8)
   at ip-mib/ipAddressTable/ipAddressTable_interface.c:1912
#24 0x08064d20 in ?? ()
#25 0xbffff7a8 in ?? ()
#26 0x4022a2f8 in __JCR_LIST__ ()
  from /usr/src/trustix/build/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so.15
#27 0x40071184 in __JCR_LIST__ ()
from /usr/src/trustix/build/net-snmp-5.4.1/agent/helpers/.libs/libnetsnmphelpers.so.15
#28 0x080c8b28 in ?? ()
#29 0x080c99a8 in ?? ()
#30 0x080c8ae8 in ?? ()
#31 0x4005c779 in _cache_load (cache=0x4011b59c) at cache_handler.c:537
#32 0x46c16eeb in ?? ()
#33 0x0005b08e in ?? ()
#34 0xffffffff in ?? ()
#35 0x4022a2f8 in __JCR_LIST__ ()
  from /usr/src/trustix/build/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so.15
#36 0x40225835 in ?? ()
  from /usr/src/trustix/build/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so.15
#37 0x080c99a8 in ?? ()
#38 0x00000004 in ?? ()
#39 0x401fee8a in run_alarms () at snmp_alarm.c:252
#40 0x46c16eeb in ?? ()


--
Lukasz Engel

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
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