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

multi-dimensional arrays broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.0
    • 1.0
    • hotspot
    • 1.0alpha
    • sparc
    • generic
    • Not verified

      The Aspen library causes oaki to SEGV because of this declaration:

          byte buffers[][] = new byte[nscreens][];

      in fp/old/Screen.oak

      go into $build/solaris/contrib/aspen and "make" libaspen
      then go into $build/solaris:

      setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/openwin/server/lib:`pwd`/lib
      setenv CLASSPATH `pwd`/classes
      setenv OAK_PATH_ROOT `pwd`
      setenv ASPEN_MEDIA_DIR `pwd`/media
      setenv XSCREEN_BESTCOLOR
      set path=(`pwd`/bin $path)

      oaki fp.demo.coke

      produces:

      Scene: Using XScreen display.
      XScreen: setup_color_cube: installed 256 colors...
      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_ACCERR [addr: 0x28]

      stackbase=EFFFF33C, stackpointer=EFFFE7C0

      Full thread dump:
          "Thread-2" (0x2be558): priority=5
      fp.old.X11Server.run(X11Server.oak:193)
          "Sound Player" (0x2bde18): priority=10
      oak.lang.Object.wait(Object.oak)
      fp.old.Player.pause(Player.oak:240)
      fp.old.Player.run(Player.oak:286)
          "Async Garbage Collector" (0x2bdb38): priority=1
          "Idle thread" (0x2bdae0): priority=0
          "clock handler" (0x2bdad0): priority=11
          "main" (0x2bdac8): priority=5 *current thread*
      fp.old.XScreen.<init>(XScreen.oak:207)
      fp.old.Scene.<init>(Scene.oak:126)
      fp.demo.coke.main(coke.oak:272)
      Monitor Cache Dump
          unknown key (key=0x382fc8): monitor owner: "Async Garbage Collector" (0x382fc8)
          fp.old.Player@2BDE18/581C0 (key=0x2bde18): unowned
      Waiting to be notified:
      "Sound Player" (0x2bde18): priority=10
      registered monitor dump:
          Thread queue lock: unowned
          Class resolution lock: unowned
          Code rewrite lock: unowned
          Heap lock: unowned
          Monitor registry: monitor owner: "main" (0x371c98)
          Monitor cache lock: unowned
          Event monitor: unowned
          I/O monitor: unowned
          Alarm monitor: uno...

      This was working as of a few weeks ago.

            fyellinsunw Frank Yellin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: