SpectroSERVER crash when processing SNMPv2c traps (Legacy KB ID CNC TS32257 )

Document ID : KB000051776
Last Modified Date : 14/02/2018
Show Technical Document Details
This issue was first addressed in the SPECTRUM HotFix (H04). Installing the latest SPECTRUM HotFix or Service Pack will resolve this issue. The following is the Release Note entry for this issue:

Resolved possible SpectroSERVER crash when handling SNMPv2c traps.
(H04, swbug022011, CallT0000227929, 17837507-1)

Related Issues/Questions:
SpectroSERVER crash when processing SNMPv2c traps

Problem Environment:
SNMPV2c traps
adb stack trace from Solaris core file:

SIGSEGV: Segmentation Fault
cn0BLchar_traits4Cc__n0BJallocator4Cc_____+0x74(f8ffbeec, 2, 0, fe13b8cc, 0, 0)
f8ffbe78 libhpse.so.1`__1cSCsHPSETrapReceiverGDoTask6M_v_+0x478(5e77a8,
197fe40, 66666667, 66666400, f8ffbefb, fe13b8cc)
f8ffbf30 libhpse.so.1`__1cKCsHPSETaskJthreadRun6Fpv_1_+0x40(5e77a8, 0, 5e77b0,
fe129a6c, febed3ec, 1)
f8ffbfa0 libthread.so.1`_lwp_start(0, 0, 0, 0, 0, 0)

gdb trace from Linux core file:

warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at
Core was generated by `/apps/nm/spectrum/SS/SpectroSERVER'.
Program terminated with signal 11, Segmentation fault.
#0  0xf6fcc522 in CsHPSESnmpVarbind::FormatOIDAsString ()
   from /opt/SPECTRUM/lib/../SS/libhpse.so.1
(gdb) info stack
#0  0xf6fcc522 in CsHPSESnmpVarbind::FormatOIDAsString ()
   from /opt/SPECTRUM/lib/../SS/libhpse.so.1
#1  0xf6fcda32 in CsHPSETrapReceiver::DoTask ()
from /opt/SPECTRUM/lib/../SS/libhpse.so.1
#2  0xf6fccef7 in CsHPSETask::threadRun ()
from /opt/SPECTRUM/lib/../SS/libhpse.so.1
#3  0x00c2d45b in start_thread () from /lib/libpthread.so.0
#4  0x00bb424e in clone () from /lib/libc.so.6

Causes of this problem:
SNMPV2 trap processing not handling 0 length or NULL varbind values.

(Legacy KB ID CNC TS32257 )