Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4453510

64-bit Server HS1.4 throws UnsatisfiedLinkError on solsparc 2.7

XMLWordPrintable

    • sparc
    • solaris_7



      Name: egR10015 Date: 05/02/2001



      HotSpot 1.4.0beta-b62 fails to pass the following tests

      nsk/regression/b4224902
      nsk/regression/b4237950
      nsk/regression/b4252023
      nsk/regression/b4261880
      nsk/regression/b4265661
      nsk/regression/b4270668
      nsk/stress/thread/thread003
      nsk/stress/thread/thread004

      from testbase_nsk in 64-bit Server VM mode on Solsparc 2.7.
      The VM throws UnsatisfiedLinkError while trying to load a native
      library. It is probably the AWT and/or Motif native library, because
      all these tests use AWT or Swing java classes, and a printed stack
      trace points out to initial creating AWT/Swing objects in the tests.

      Note that this error is observing only in 64-bit server mode on
      Solaris/Sparc 2.7, and it never happens on Solaris/Sparc 2.8.
      I've also noticed that 32-bit version of the library libmawt.so
      for Motif 1.2 exists in <java_home>/jre/lib/sparc/motif12, but
      its 64-bit version is absent in <java_home>/jre/lib/sparcv9/motif12.

      The regression test b4237950 was put into GammaBase as example.
      To reproduce the bug run with HS1.4 on solsparc 2.7

      sh doit.sh $JAVA_HOME

      in
      /net/sqesvr.eng/export/vsn/GammaBase/Bugs/<this bug number>

      ------------- output on Solsparc 2.7 in 64-bit Server mode --------------
      $ doit.sh ~/hotspot/jdk1.4/solsparc

      SunOS novo1 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-Enterprise

      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b62)
      Java HotSpot(TM) 64-Bit Server VM (build 1.4.0-beta-b62, mixed mode)
      Exception in thread "main" java.lang.UnsatisfiedLinkError: exception occurred in
      JNI_OnLoad
              at java.lang.ClassLoader$NativeLibrary.load(Native Method)
              at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1403)
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1319)
              at java.lang.Runtime.loadLibrary0(Runtime.java:773)
              at java.lang.System.loadLibrary(System.java:830)
              at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.awt.Toolkit.loadLibraries(Toolkit.java:1399)
              at java.awt.Toolkit.<clinit>(Toolkit.java:1420)
              at b4237950.run(b4237950.java:14)
              at b4237950.main(b4237950.java:10)
      exit code = 1
      -------------------------------------------------------------------------

      ------------- output on Solsparc 2.8 in 64-bit Server mode --------------
      $ doit.sh ~/hotspot/jdk1.4/solsparc

      WARNING: this is not Solaris 2.7

      SunOS novo175 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-60

      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b62)
      Java HotSpot(TM) 64-Bit Server VM (build 1.4.0-beta-b62, mixed mode)
      exit code = 95
      -------------------------------------------------------------------------

      ======================================================================

            azeemj Azeem Jiva
            eugsunw Eug Eug (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: