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

JDI: shmemBase_listen failed: Cannot create a file when that file already exists

XMLWordPrintable

    • sparc
    • solaris_8

      On windows 2000 platform, a lot of NSK tests failed with following message.
      "java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists"

      This occur with server VM only, it passed with client VM. It also passed with
      server VM in int mode.

      Here is how to reproduce the failure:
      1. MAP \\vmsqe.sfbay.sun.com\export to Y: (on windows 2000 machine)
      2. cd y:/Bugs/4905551
      3. ksh run.ksh [Location to your java] [vmopts for debugger]
      Example:
      ksh run.ksh y:/pit/tiger/JDK/b13/win/bin/java -server -Xmixed

      #java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists
      #
      # at com.sun.tools.jdi.SharedMemoryTransportService.startListening0(Native Method)
      # at com.sun.tools.jdi.SharedMemoryTransportService.startListening(SharedMemoryTransportService.java:96)
      # at com.sun.tools.jdi.SharedMemoryTransportService.startListening(SharedMemoryTransportService.java:101)
      # at com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:145)
      # at nsk.share.jdi.Binder.localDefaultLaunchDebugee(Binder.java:250)
      # at nsk.share.jdi.Binder.bindToDebugeeNoWait(Binder.java:156)
      # at nsk.share.jdi.Binder.bindToDebugee(Binder.java:219)
      # at nsk.share.jdi.Debugee.prepareDebugee(Debugee.java:441)
      # at nsk.jdi.VirtualMachine.redefineClasses.redefineclasses011.run(redefineclasses011.java:100)
      # at nsk.jdi.VirtualMachine.redefineClasses.redefineclasses011.main(redefineclasses011.java:85)

      #nsk.share.Failure: Cought exception while launching debugee VM:
      # java.io.IOException: shmemBase_listen failed: Cannot create a file when that file already exists
      #
      # at nsk.share.jdi.Binder.localDefaultLaunchDebugee(Binder.java:259)
      # at nsk.share.jdi.Binder.bindToDebugeeNoWait(Binder.java:156)
      # at nsk.share.jdi.Binder.bindToDebugee(Binder.java:219)
      # at nsk.share.jdi.Debugee.prepareDebugee(Debugee.java:441)
      # at nsk.jdi.VirtualMachine.redefineClasses.redefineclasses011.run(redefineclasses011.java:100)
      # at nsk.jdi.VirtualMachine.redefineClasses.redefineclasses011.main(redefineclasses011.java:85)

      ###@###.### 2003-08-13

      Jim reported another failure mode with Server VM -Xmixed on Win2000:

      #command: Y:\pit\tiger\JDK\latest\win\jre\bin\java -server -Xmixed -XX:-ShowMessageBoxOnError -DHANGINGJAVA5440 -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,server=y,address=nskjpdatestchannel nsk.jdi.AttachingConnector.attach.attach002t
      #Connector name=com.sun.jdi.SharedMemoryAttach
      # description=Attaches by shared memory to other VMs
      # transport=dt_shmem
      # argument name=address
      # value=
      # argument name=timeout
      # value=
      # argument name=name
      # value=nskjpdatestchannel
      #Connection attempt #0 failed: java.io.IOException: shmemBase_attach failed: The system cannot find the file specified

            dcubed Daniel Daugherty
            fhsusunw Francis Hsu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: