harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-116) strange exec behaviour with harmony vme/classlib
Date Wed, 22 Feb 2006 17:28:42 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-116?page=all ]

Mark Hindess updated HARMONY-116:

    Attachment: ExecWithEnvTest.java

Narrowed this down to a simpler test case.  On RI I get:

bash$ sun java ExecWithEnvTest
java version "1.4.2_05"
java version "1.4.2_05"

and on Harmony I get:

bash$ hy java ExecWithEnvTest
java version 1.4.2 (subset)
java.io.IOException: Unable to start program
        at com.ibm.oti.lang.SystemProcess.create(SystemProcess.java:153)
        at java.lang.Runtime.exec(Runtime.java:100)
        at java.lang.Runtime.exec(Runtime.java:69)
        at ExecWithEnvTest.run(ExecWithEnvTest.java:24)
        at ExecWithEnvTest.main(ExecWithEnvTest.java:7)

> strange exec behaviour with harmony vme/classlib
> ------------------------------------------------
>          Key: HARMONY-116
>          URL: http://issues.apache.org/jira/browse/HARMONY-116
>      Project: Harmony
>         Type: Bug
>  Environment: Linux, VME v1, classlib r379730
>     Reporter: Mark Hindess
>  Attachments: ExecWithEnvTest.java, exec-path-broken.tar.gz
> I'm seeing very odd behaviour from ant exec tasks that set environment variables - such
as the one in the security natives.  The exec is failing with failed to execute command. 
Worse still if I create a matching executable in the basedir then that gets executed even
if basedir is not in the path.  This would be a potential security problem in other situations.
 I'll attach a test case shortly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message