SPECTRUM 9.0 HotFix/Service Pack install fails running mibtools.cus on Solaris (Legacy KB ID CNC TS30903 )

Document ID : KB000051763
Last Modified Date : 14/02/2018
Show Technical Document Details
This will be address in SPECTRUM 9.1


Symptom:

On Solaris, Java would crash when trying to import the mibs during install.

Resolution:

On Solaris, install will no longer crash Java when importing the mib files during install.



Related Issues/Questions:
SPECTRUM 9.0 HotFix/Service Pack install fails running mibtools.cus on Solaris.


The following error is in the post install log file from the install:


running Custom Script Install-Tools/CUS/mibtools.cus
Database "mibtools" dropped
Error(s) occured. Please see /spectrum/Install- Tools/LOGS/9.0.01.02.17_20090119/mibtools.log. Script Install-Tools/CUS/mibtools.cus has FAILED


The following error is in the mibtools.log file from he install:


   Compiling : CISCO-CLASS-BASED-QOS-MIB
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfeb8da4c, pid=7932, tid=71
#
# Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode solaris-sparc)
# Problematic frame:
# V  [libjvm.so+0x38da4c]
#
# An error report file with more information is saved as:
# /spectrum/mysql/hs_err_pid7932.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/spectrum/MibDatabase/scripts/BulkMibCompile.sh[16]: 7932 Abort(coredump)
**^G Error during /spectrum/MibDatabase/scripts/BulkMibCompile.sh -
d /spectrum/MibDatabase -skip_search


MIBTools database already exists, an upgrade will be performed. Mibs that have
been shipped with SPECTRUM will take precedence over the mibs imported by a
user. If you want to re-import the previously imported mibs,
run '/spectrum/MibDatabase/scripts/BulkMibCompile.sh -
d /spectrum/MibDatabase.backup --skip_search'.
Copying existing MIBs to MibDatabase.backup
MySQL authentication success.


The following error is in the hs_err_pid<PID>.log file that is noted in the  mibtools.log file:


#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfeb8da4c, pid=7932, tid=71
#
# Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode solaris-sparc)
# Problematic frame:
# V  [libjvm.so+0x38da4c]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


---------------  T H R E A D  ---------------


Current thread (0x00524000):  JavaThread "CompilerThread0" daemon
[_thread_in_native, id=71, stack(0xd3480000,0xd3500000)]


siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR),
si_addr=0x00000000


Registers:
 O0=0x00000000 O1=0xd34fec54 O2=0x01cdffa8 O3=0x00a04d50
 O4=0xffffffef O5=0xffffffec O6=0xd34fe938 O7=0xfeb8da44
 G1=0x00000000 G2=0xfe8d528c G3=0x00000000 G4=0x00000002
 G5=0x0000009e G6=0x00000000 G7=0xfe3d2a00 Y=0x00000000
 PC=0xfeb8da4c nPC=0xfeb8da50



Top of Stack: (sp=0xd34fe938)
0xd34fe938:   d34fedd8 00a04d18 01ddbe4c 01446c10
0xd34fe948:   0057c370 ff0ed854 01446c48 00a04d18
0xd34fe958:   000013c2 00000001 d34fed8c ff0ea000
0xd34fe968:   00000002 ffffffff d34fe9a0 fe986ef8
0xd34fe978:   d34fe9a0 fe986eec 00000000 ff0ea000
0xd34fe988:   000002ea fffffff8 ff10f090 00000005
0xd34fe998:   00000001 d34fede8 00a5e2f8 0002fdd8
0xd34fe9a8:   d34fec74 d34feca0 ff10a354 00020354


Instructions: (pc=0xfeb8da4c)
0xf.eb8da3c:   ee 24 e0 18 ac 04 e0 38 9f c0 80 00 90 10 00 11
0xfeb8da4c:   d8 02 20 00 ae 10 00 08 d6 04 e0 38 c4 04 e0 3c


Stack: [0xd3480000,0xd3500000],  sp=0xd34fe938,  free space=506k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x38da4c]
V  [libjvm.so+0x186f00]
V  [libjvm.so+0x189eb8]
V  [libjvm.so+0x3d30ac]
V  [libjvm.so+0x1a73dc]
V  [libjvm.so+0x1a8170]
V  [libjvm.so+0x22506c]
V  [libjvm.so+0x71767c]
V  [libjvm.so+0x66d150]



Current CompileTask:
C2:382  !   com.adventnet.snmp.mibs.LeafSyntax.readType
(Lcom/adventnet/snmp/mibs/mibparser/BaseSyntax;Ljava/lang/Object;Lcom/adventnet/
snmp/mibs/MibModule;)Lcom/adventnet/snmp/mibs/LeafSyntax; (915 bytes)

.

Problem Environment:
SPECTRUM 09.00.00.00
mibtools.cus
CallT0000228933
CallT0000228284
swbug022025
BulkMibCompile.sh
Work Around:


A work around is to use a newer version of java. Version 1.6.0_12 and above has been shown to resolve this issue. After installing a newer version of java, modify the $SPECROOT/MibDatabase/scripts/BulkMibCompile.sh file. Change the "JAVA_PATH" line to point to the newer version of java. For example, if the new java was installed in the /usr/java directory, change the "JAVA_PATH" to read as follows:



JAVA_PATH=/usr/java


Then, rerun the $SPECROOT/MibDatabase/scripts/BulkMibCompile.sh as follows:


1. Login to the SpectroSERVER system as the SPECTRUM owner user
2. cd to the $SPECROOT/MibDatabase/scripts directory
3. Enter the following command:


./BulkMibCompile.sh -d ../contrib -skip_search -skip_user_save



Causes of this problem:
The root cause is the version of java installed with SPECTRUM. By default, the following:


java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode)




(Legacy KB ID CNC TS30903 )