Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6587

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.0M15
    • None
    • None
    • lunix drlvm
    • 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.

      Attachments

        1. echo
          0.0 kB
          Charles Lee
        2. HARMONY-6587.diff
          3 kB
          Charles Lee

        Activity

          People

            hindessm Mark Hindess
            littlee Charles Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: