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

WIN64: Appletviewer Crashes on Win-64, when used -debug option.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      itanium
    • OS:
      windows_xp

      Description

      On Itanium Windows XP-Prof. Edition(64-bit) Appletviewer crashes when used with
      -debug option.

      Following is the Testcase [ Test.java and Test.html ].

      goldeneye:/net/sqindia/export/disk03/tools/surendra/av-test 138 % cat Test.java
      import java.applet.*;
      import java.awt.*;
      import java.awt.event.*;


      public class Test extends Applet
      {
              public void init()
              {
                      test0();
              }

              private void test0()
              {
                      URL url = getCodeBase ();
                      System.out.println ("getCodeBase is : " + getCodeBase() );
                      System.out.println ("getDocumentBase is : " + getDocumentBase() );
              }
      }

      goldeneye:/net/sqindia/export/disk03/tools/surendra/av-test 139 %
      goldeneye:/net/sqindia/export/disk03/tools/surendra/av-test 139 %
      goldeneye:/net/sqindia/export/disk03/tools/surendra/av-test 139 % cat Test.html
      <html>
      <body>
      This is testing an applet.
      <applet code=Test.class width="10" height="10">
      </applet>
      </body>
      </html>


      goldeneye:/net/sqindia/export/disk03/tools/surendra/av-test 140 %



      ===============================================================================
      Following is the output which I get, when run on Itanium Windows-XP Prof Edition...

      [Y:/disk03/tools/surendra/av-test] java -version
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
      Java HotSpot(TM) 64-Bit Core VM (build 1.4.1-beta-b14, interpreted mode)


      [Y:/disk03/tools/surendra/av-test] appletviewer -J-showversion Test.html
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
      Java HotSpot(TM) 64-Bit Core VM (build 1.4.1-beta-b14, interpreted mode)

      getCodeBase is : file:/Y:/disk03/tools/surendra/av-test/
      getDocumentBase is : file:/Y:/disk03/tools/surendra/av-test/Test.html

      [Applet Window pops up and I/user closed it].

      [Y:/disk03/tools/surendra/av-test]
      [Y:/disk03/tools/surendra/av-test]
      [Y:/disk03/tools/surendra/av-test]


      [Y:/disk03/tools/surendra/av-test] appletviewer -J-showversion -debug Test.html
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
      Java HotSpot(TM) 64-Bit Core VM (build 1.4.1-beta-b14, interpreted mode)

      Initializing jdb ...
      > run
      run sun.applet.Main Test.html
      Error creating shared memory, rc = -1
      java.io.IOException: shmemBase_listen failed, error code = -1
              at com.sun.tools.jdi.SharedMemoryTransport.startListening0(Native Method
      )
              at com.sun.tools.jdi.SharedMemoryTransport.startListening(SharedMemoryTr
      ansport.java:48)
              at com.sun.tools.jdi.SharedMemoryTransport.startListening(SharedMemoryTr
      ansport.java:55)
              at com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLaunche
      r.java:105)
              at com.sun.tools.example.debug.tty.VMConnection.launchTarget(VMConnectio
      n.java:322)
              at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:1
      66)
              at com.sun.tools.example.debug.tty.Commands.commandRun(Commands.java:522
      )
              at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:299)
              at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:539)
              at com.sun.tools.example.debug.tty.TTY.main(TTY.java:830)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at sun.applet.Main.invokeDebugger(Main.java:296)
              at sun.applet.Main.run(Main.java:125)
              at sun.applet.Main.main(Main.java:80)

      Fatal error:
      Unable to launch target VM.
      [Y:/disk03/tools/surendra/av-test]

      CRASH !!!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: