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

jp2launcher.exe is not calling createprocess() with quotes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 7u6
    • 6u10
    • deploy
    • x86
    • windows_vista

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.6.0_12-b04)


      ADDITIONAL OS VERSION INFORMATION :
      java version "1.6.0_12"
      Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
      Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
      Vista enterprise edition with sp1

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      java installed in c:\program files\....
      having a program called c:\program.exe


      A DESCRIPTION OF THE PROBLEM :
      Please refer to Bug ID: 6808063. I believe it was closed incorrectly (but I don't know of a way to reopen it)

      I have memory capture below to show that indeed a path with space is not properly quoted: as you can see, argument to CreateProcessA is at 009727a0, and examing 009727a0 reveals that the path is not quoted. Please take a second look at it cause this something that can cause problem in some specific setups.

      0012f964 6aa91b55 00000000 009727a0 00000000 kernel32!CreateProcessA
      0012fa1c 00401617 00000000 009727a0 00000000 AcLayers!NS_ElevateCreateProcess::APIHook_CreateProcessA+0xde
      WARNING: Stack unwind information not available. Following frames may be wrong.
      0012fed0 0040165c 009727a0 00970ce8 00192312 jp2launcher+0x1617
      0012ff88 75be4911 7ffdf000 0012ffd4 771be4b6 jp2launcher+0x165c
      0012ff94 771be4b6 7ffdf000 6f3a86ef 00000000 kernel32!BaseThreadInitThunk+0xe
      0012ffd4 771be489 004029ac 7ffdf000 00000000 ntdll!__RtlUserThreadStart+0x23
      0012ffec 00000000 004029ac 7ffdf000 00000000 ntdll!_RtlUserThreadStart+0x1b


      009727a0 43 3a 5c 50 72 6f 67 72 61 6d 20 46 69 6c 65 73 5c 4a 61 76 61 5c 6a C:\Program Files\Java\j
      009727b7 72 65 36 5c 62 69 6e 5c 6a 61 76 61 2e 65 78 65 20 2d 44 5f 5f 6a 76 re6\bin\java.exe -D__jv
      009727ce 6d 5f 6c 61 75 6e 63 68 65 64 3d 34 30 33 34 35 36 32 32 34 37 37 36 m_launched=403456224776
      009727e5 20 22 2d 58 62 6f 6f 74 63 6c 61 73 73 70 61 74 68 2f 61 3a 43 3a 5c "-Xbootclasspath/a:C:009727fc 5c 50 52 4f 47 52 41 7e 31 5c 5c 4a 61 76 61 5c 5c 6a 72 65 36 5c 5c \PROGRA~1\\Java\\jre6\00972813 6c 69 62 5c 5c 64 65 70 6c 6f 79 2e 6a 61 72 3b 43 3a 5c 5c 50 52 4f lib\\deploy.jar;C:\\PRO
      0097282a 47 52 41 7e 31 5c 5c 4a 61 76 61 5c 5c 6a 72 65 36 5c 5c 6c 69 62 5c GRA~1\\Java\\jre6\\lib00972841 5c 6a 61 76 61 77 73 2e 6a 61 72 3b 43 3a 5c 5c 50 52 4f 47 52 41 7e \javaws.jar;C:\\PROGRA~
      00972858 31 5c 5c 4a 61 76 61 5c 5c 6a 72 65 36 5c 5c 6c 69 62 5c 5c 70 6c 75 1\\Java\\jre6\\lib\\plu
      0097286f 67 69 6e 2e 6a 61 72 22 20 22 2d 44 6a 61 76 61 2e 63 6c 61 73 73 2e gin.jar" "-Djava.class.
      00972886 70 61 74 68 3d 43 3a 5c 5c 50 52 4f 47 52 41 7e 31 5c 5c 4a 61 76 61 path=C:\\PROGRA~1\\Java
      0097289d 5c 5c 6a 72 65 36 5c 5c 63 6c 61 73 73 65 73 22 20 22 2d 44 73 75 6e \\jre6\\classes" "-Dsun
      009728b4 2e 70 6c 75 67 69 6e 32 2e 6a 76 6d 2e 61 72 67 73 3d 2d 44 5f 5f 6a .plugin2.jvm.args=-D__j
      009728cb 76 6d 5f 6c 61 75 6e 63 68 65 64 3d 34 30 33 34 35 36 32 32 34 37 37 vm_launched=40345622477
      009728e2 36 20 5c 22 2d 58 62 6f 6f 74 63 6c 61 73 73 70 61 74 68 2f 61 3a 43 6 \"-Xbootclasspath/a:C
      009728f9 3a 5c 5c 5c 5c 50 52 4f 47 52 41 7e 31 5c 5c 5c 5c 4a 61 76 61 5c 5c :\\\\PROGRA~1\\\\Java\00972910 5c 5c 6a 72 65 36 5c 5c 5c 5c 6c 69 62 5c 5c 5c 5c 64 65 70 6c 6f 79 \\jre6\\\\lib\\\\deploy
      00972927 2e 6a 61 72 3b 43 3a 5c 5c 5c 5c 50 52 4f 47 52 41 7e 31 5c 5c 5c 5c .jar;C:\\\\PROGRA~1\\\0097293e 4a 61 76 61 5c 5c 5c 5c 6a 72 65 36 5c 5c 5c 5c 6c 69 62 5c 5c 5c 5c Java\\\\jre6\\\\lib\\\00972955 6a 61 76 61 77 73 2e 6a 61 72 3b 43 3a 5c 5c 5c 5c 50 52 4f 47 52 41 javaws.jar;C:\\\\PROGRA
      0097296c 7e 31 5c 5c 5c 5c 4a 61 76 61 5c 5c 5c 5c 6a 72 65 36 5c 5c 5c 5c 6c ~1\\\\Java\\\\jre6\\\\l
      00972983 69 62 5c 5c 5c 5c 70 6c 75 67 69 6e 2e 6a 61 72 5c 22 20 5c 22 2d 44 ib\\\\plugin.jar\" \"-D
      0097299a 6a 61 76 61 2e 63 6c 61 73 73 2e 70 61 74 68 3d 43 3a 5c 5c 5c 5c 50 java.class.path=C:\\\\P
      009729b1 52 4f 47 52 41 7e 31 5c 5c 5c 5c 4a 61 76 61 5c 5c 5c 5c 6a 72 65 36 ROGRA~1\\\\Java\\\\jre6
      009729c8 5c 5c 5c 5c 63 6c 61 73 73 65 73 5c 22 20 2d 2d 22 20 73 75 6e 2e 70 \\\\classes\" --" sun.p
      009729df 6c 75 67 69 6e 32 2e 6d 61 69 6e 2e 63 6c 69 65 6e 74 2e 50 6c 75 67 lugin2.main.client.Plug
      009729f6 69 6e 4d 61 69 6e 20 77 72 69 74 65 5f 70 69 70 65 5f 6e 61 6d 65 3d inMain write_pipe_name=
      00972a0d 6a 70 69 32 5f 70 69 64 33 37 34 30 5f 70 69 70 65 33 2c 72 65 61 64 jpi2_pid3740_pipe3,read
      00972a24 5f 70 69 70 65 5f 6e 61 6d 65 3d 6a 70 69 32 5f 70 69 64 33 37 34 30 _pipe_name=jpi2_pid3740
      00972a3b 5f 70 69 70 65 32 00 00 00 00 00 00 00 84 cb 7a c8 0b be 00 00 c4 00 _pipe2.........z.......


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Please refer to Bug ID: 6808063

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Please refer to Bug ID: 6808063
      ACTUAL -
      Please refer to Bug ID: 6808063

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Please refer to Bug ID: 6808063

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Please refer to Bug ID: 6808063
      ---------- END SOURCE ----------

            ccheung Calvin Cheung
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: