You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2010/07/16 16:30:51 UTC
[jira] Resolved: (HARMONY-6587) [drlvm] Maybe we should give one
more try on the file given to a process.
[ https://issues.apache.org/jira/browse/HARMONY-6587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess resolved HARMONY-6587.
-----------------------------------
Fix Version/s: 5.0M15
Resolution: Fixed
I've applied your patch at r964805. It makes the assumption that the first exec attempt has validated the permissions but that seems like a reasonable assumption.
Please confirm (by closing this JIRA) that your patch has been applied as expected.
> [drlvm] Maybe we should give one more try on the file given to a process.
> -------------------------------------------------------------------------
>
> Key: HARMONY-6587
> URL: https://issues.apache.org/jira/browse/HARMONY-6587
> Project: Harmony
> Issue Type: Bug
> Environment: lunix drlvm
> Reporter: Li Jing Qin
> Assignee: Mark Hindess
> Priority: Minor
> Fix For: 5.0M15
>
> Attachments: echo, HARMONY-6587.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.