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<[EMAIL PROTECTED]",
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

Reply via email to