5.4 snmptrapd Crashed After Forwarding

Chau T Trinh <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <OFEE60C346.AEAFCC76-ON8825726D.00822E64-8825726E.000174CF@mck.us.ray.com>
I'm running netSNMP version 5.4 on an i686 machine with Linux 2.6.16.16
kernel; in my snmptrapd.conf I used "forward" to send a specific trap to
another machine.
The trap was forwarded OK but snmptrapd seg fault right afterward. This is
a v3 trap, if I were to use a v2 trap, everything worked fine.
Here is the backtrace from the debugger:

NET-SNMP version 5.4
2007-01-24 15:37:20 <UNKNOWN> [UDP: [192.168.22.2]:32968]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42) 0:00:00.42
SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.1569.223.1.1.6.0.4
SNMPv2-SMI::enterprises.1569.223.1.1.5.2.0 = INTEGER: 2

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215118432 (LWP 21163)]
0xb79d6e84 in mallopt () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb79d6e84 in mallopt () from /lib/tls/libc.so.6
#1  0xb79d5dcb in free () from /lib/tls/libc.so.6
#2  0xb7d5c66c in usm_free_usmStateReference (old=0x80759d8) at
snmpusm.c:189
#3  0xb7d2c2b9 in _sess_process_packet (sessp=0x80aaba8, sp=0x8065068,
isp=0x8077a78, transport=0x809bd98, opaque=0x80a7bd8, olength=20,
packetptr=0x80b1778 "0\201¦\002\001\0030\021\002\004<*±@\002\003",
length=169) at snmp_api.c:5376
#4  0xb7d2d4fb in _sess_read (sessp=0x80aaba8, fdset=0x8077a78) at
snmp_api.c:5779
#5  0xb7d2dcc9 in snmp_sess_read (sessp=0x80aaba8, fdset=0x1011f170) at
snmp_api.c:5798
#6  0xb7d2c94c in snmp_read (fdset=0xbfc4e4b0) at snmp_api.c:5412
#7  0x0804cee9 in main (argc=5, argv=0xbfc4e654) at snmptrapd.c:1418

Is this a bug?

Thanks,
Chau Trinh


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.