Harmony
  1. Harmony
  2. HARMONY-6587

[drlvm] Maybe we should give one more try on the file given to a process.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M15
    • Component/s: None
    • Labels:
      None
    • Environment:
      lunix drlvm
    • Patch Info:
      Patch Available

      Description

      Given a simple test case below:

      String[] cmmds = new String[]

      {"echo"}

      ; [0]
      ProcessBuilder pb = new ProcessBuilder(cmmds);
      Process p = pb.start();
      p.waitFor();
      System.out.println(p.exitValue());

      harmony + drlvm returns different from RI.

      The basic reason is:
      1. echo file does not contain the #! interpreter at the beginning
      2. drlvm return ENOEXEC because "An executable is not in a recognized format".

      Maybe we should give it another try: using '/bin/sh' to run the file.

      [0] echo is a simple file which contains a command. It will be attached.

      1. echo
        0.0 kB
        Li Jing Qin
      2. HARMONY-6587.diff
        3 kB
        Li Jing Qin

        Activity

        Li Jing Qin made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Hindess made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0M15 [ 12315054 ]
        Resolution Fixed [ 1 ]
        Mark Hindess made changes -
        Assignee Mark Hindess [ hindessm ]
        Li Jing Qin made changes -
        Field Original Value New Value
        Attachment echo [ 12449620 ]
        Attachment HARMONY-6587.diff [ 12449621 ]
        Li Jing Qin created issue -

          People

          • Assignee:
            Mark Hindess
            Reporter:
            Li Jing Qin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development